diff --git a/.github/workflows/comment.yaml b/.github/workflows/comment.yaml new file mode 100644 index 00000000..3e796c46 --- /dev/null +++ b/.github/workflows/comment.yaml @@ -0,0 +1,28 @@ +name: auto comment +on: + pull_request: + types: [opened] + branches: [main] +jobs: + comment: + runs-on: ubuntu-latest + 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: `👋 @{{ author }} + Thank you for raising your pull request. + + # Checklist before merging + + - [ ] Add description to the Pull Request + - [ ] Check the License of new pictures (non-commercial use without attribution) + - [ ] Modify content in English + - [ ] Modify content in German + - [ ] Modify content in French` + })