| name: PR Checklist | |
| on: | |
| pull_request: | |
| types: | |
| - opened | |
| - edited | |
| - reopened | |
| - labeled | |
| - unlabeled | |
| jobs: | |
| check-pr-template: | |
| if: > | |
| !contains(github.event.pull_request.labels.*.name, 'skip PR template check') | |
| name: Check PR template | |
| runs-on: ubuntu-slim | |
| permissions: {} | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Check PR body | |
| env: | |
| PR_BODY: ${{ github.event.pull_request.body }} | |
| PR_USER_LOGIN: ${{ github.event.pull_request.user.login }} | |
| PR_NUMBER: ${{ github.event.pull_request.number }} | |
| run: bash .github/scripts/check_pr_template.sh |