KW Test PR #22
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: 'Commit Message Check' | |
| on: | |
| push: | |
| branches: [ "next", "next_stage" ] | |
| pull_request: | |
| branches: [ "next", "next_stage" ] | |
| jobs: | |
| check-commit-message: | |
| name: Check Commit Message | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check Title | |
| uses: gsactions/commit-message-checker@v2 | |
| with: | |
| pattern: '[a-z0-9\/]+([^\s])' | |
| error: 'Your first line has to contain a soc and module like "am64x: i2c: add support for intr priority".' | |
| excludeDescription: 'true' | |
| checkAllCommitMessages: 'true' | |
| accessToken: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Check Line Length | |
| uses: gsactions/commit-message-checker@v2 | |
| with: | |
| pattern: '^[^#].{5,72}$' | |
| error: 'The maximum line length of 72 characters is exceeded.' | |
| excludeDescription: 'true' | |
| checkAllCommitMessages: 'true' | |
| accessToken: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Check for Fixes | |
| uses: gsactions/commit-message-checker@v2 | |
| with: | |
| pattern: 'Fixes: [A-Z\-_]*-\d*(, [A-Z\-_]*-\d*)*' | |
| error: 'You need at mention fixes like "Fixes: SITSW-1234" line.' | |
| excludeTitle: 'true' | |
| checkAllCommitMessages: 'true' | |
| accessToken: ${{ secrets.GITHUB_TOKEN }} |