diff --git a/.github/workflows/comment.yaml b/.github/workflows/comment.yaml new file mode 100644 index 00000000..d47043b8 --- /dev/null +++ b/.github/workflows/comment.yaml @@ -0,0 +1,32 @@ +name: auto comment +on: + pull_request: + types: [opened] + branches: [main] +jobs: + comment: + runs-on: ubuntu-latest + permissions: + pull-requests: write + steps: + - uses: actions/github-script@v7 + with: + github-token: ${{secrets.GITHUB_TOKEN}} + script: | + github.rest.issues.createComment({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + body: `Hi there! 👋 + + Thank you for your contribution to the FIP Guide! 🚀 + We appreciate your effort in making rail staff travel information more accessible. 🚄 + + ## Checklist before merging: + + - [ ] Added a description to the Pull Request + - [ ] Checked the License of new pictures (non-commercial use without attribution) + - [ ] Modified content in English + - [ ] Modified content in German + - [ ] Modified content in French` + })