diff --git a/.github/workflows/welcome.yml b/.github/workflows/welcome.yml new file mode 100644 index 0000000..3c514e5 --- /dev/null +++ b/.github/workflows/welcome.yml @@ -0,0 +1,15 @@ +name: Post welcome comment +on: + pull_request: + types: [opened] +permissions: + pull-requests: write +jobs: + welcome: + name: Post welcome comment + runs-on: ubuntu-latest + steps: + - run: gh pr comment "$PR_URL" --body "Welcome to the repository!" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PR_URL: ${{ github.event.pull_request.html_url }}