From 3f314d60dc7a335a33567bde34eafb3bbd879351 Mon Sep 17 00:00:00 2001 From: laurenziello Date: Mon, 23 Oct 2023 12:12:19 +0200 Subject: [PATCH 1/2] Create greetings.yml --- .github/workflows/greetings.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .github/workflows/greetings.yml diff --git a/.github/workflows/greetings.yml b/.github/workflows/greetings.yml new file mode 100644 index 0000000..e03ed32 --- /dev/null +++ b/.github/workflows/greetings.yml @@ -0,0 +1,12 @@ +name: Greetings + +on: [pull_request_target, issues] + +jobs: + greeting: + runs-on: ubuntu-latest + steps: + - uses: actions/first-interaction@v1 + with: + issue-message: "Thank you ${{ github.event.pull_request.user.login }} for bringing up this issue to help enhance our project even further! We'll review it soon. 🙌❤️" + pr-message: "Thank you for opening a pull request ${{ github.event.pull_request.user.login }}. We'll will review it as soon as possible 🙌❤️" From b4982f89bfc34260ff459256172d3b5975975663 Mon Sep 17 00:00:00 2001 From: laurenziello Date: Mon, 23 Oct 2023 12:42:49 +0200 Subject: [PATCH 2/2] Update greetings.yml --- .github/workflows/greetings.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/greetings.yml b/.github/workflows/greetings.yml index e03ed32..c388e4e 100644 --- a/.github/workflows/greetings.yml +++ b/.github/workflows/greetings.yml @@ -5,8 +5,12 @@ on: [pull_request_target, issues] jobs: greeting: runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write steps: - uses: actions/first-interaction@v1 with: + repo-token: ${{ secrets.GITHUB_TOKEN }} issue-message: "Thank you ${{ github.event.pull_request.user.login }} for bringing up this issue to help enhance our project even further! We'll review it soon. 🙌❤️" pr-message: "Thank you for opening a pull request ${{ github.event.pull_request.user.login }}. We'll will review it as soon as possible 🙌❤️"