From fd81182e0189afd67d1700f8c73ee63a0a71dc5a Mon Sep 17 00:00:00 2001 From: swastikyadav-7 Date: Sat, 19 Jul 2025 20:24:11 +0000 Subject: [PATCH 1/2] Add GitHub Action to welcome new contributors --- .github/workflows/first-interaction.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/first-interaction.yml diff --git a/.github/workflows/first-interaction.yml b/.github/workflows/first-interaction.yml new file mode 100644 index 0000000..4ba1ac1 --- /dev/null +++ b/.github/workflows/first-interaction.yml @@ -0,0 +1,23 @@ +name: 'Welcome New Contributors' + +on: + issues: + types: [opened] + pull_request: + types: [opened] + +jobs: + welcome: + runs-on: ubuntu-latest + steps: + - name: 'Welcome new users' + uses: actions/first-interaction@v1 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + issue-message: | + 👋 Hello and welcome! Thank you for opening your first issue. + We're happy to have you here — feel free to ask any questions if you're unsure about anything. + + pr-message: | + 🎉 Thanks for your first pull request! + We appreciate your contribution and look forward to reviewing it. From 521540973e2b10def64ca7f3c0e2796c8787f5b6 Mon Sep 17 00:00:00 2001 From: swastikyadav-7 Date: Sun, 20 Jul 2025 13:17:54 +0530 Subject: [PATCH 2/2] Update .github/workflows/first-interaction.yml Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- .github/workflows/first-interaction.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/first-interaction.yml b/.github/workflows/first-interaction.yml index 4ba1ac1..b425851 100644 --- a/.github/workflows/first-interaction.yml +++ b/.github/workflows/first-interaction.yml @@ -8,6 +8,9 @@ on: jobs: welcome: + permissions: + issues: write # allow posting on issues + pull-requests: write # allow posting on PRs runs-on: ubuntu-latest steps: - name: 'Welcome new users'