CI: add PR size and commit message quality checks #2
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: PR hygiene checks | |
| on: | |
| pull_request: | |
| types: [assigned, opened, synchronize, reopened] | |
| branches: | |
| - main | |
| merge_group: | |
| types: [checks_requested] | |
| jobs: | |
| check-pr-size: | |
| name: Check PR size | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Verify PR is not too large | |
| run: > | |
| .github/scripts/pr-hygiene/check-pr-size.sh | |
| "${{ github.event.pull_request.base.sha }}" | |
| check-commit-messages: | |
| name: Check commit messages | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Check title length | |
| run: > | |
| .github/scripts/pr-hygiene/check-title-length.sh | |
| "${{ github.event.pull_request.base.sha }}" | |
| - name: Check no fixup/WIP commits | |
| run: > | |
| .github/scripts/pr-hygiene/check-no-fixup.sh | |
| "${{ github.event.pull_request.base.sha }}" | |
| - name: Check commit body on large changes | |
| run: > | |
| .github/scripts/pr-hygiene/check-commit-body.sh | |
| "${{ github.event.pull_request.base.sha }}" |