diff --git a/.github/workflows/first-interaction.yml b/.github/workflows/first-interaction.yml new file mode 100644 index 0000000..b425851 --- /dev/null +++ b/.github/workflows/first-interaction.yml @@ -0,0 +1,26 @@ +name: 'Welcome New Contributors' + +on: + issues: + types: [opened] + pull_request: + types: [opened] + +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' + 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.