Merge pull request #23 from phil-man-git-hub/feature/issue-23-antigra… #3
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: Conventional Commit Title Check | |
| on: | |
| pull_request: | |
| types: [opened, edited, synchronize] | |
| push: | |
| branches: | |
| - prod-2027.0.0 | |
| - release-* | |
| jobs: | |
| commit-title-lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Validate PR title (Conventional Commits) | |
| if: github.event_name == 'pull_request' | |
| uses: amannn/action-semantic-pull-request@v5 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| types: |- | |
| feat | |
| fix | |
| docs | |
| style | |
| refactor | |
| perf | |
| test | |
| build | |
| ci | |
| chore | |
| revert | |
| scopes: '' | |
| requireScope: false | |
| subjectPattern: '^[A-Z].*' | |
| wip: false | |
| - name: Validate commit messages (Conventional Commits) | |
| if: github.event_name == 'push' | |
| uses: wagoid/commitlint-github-action@v6 | |
| with: | |
| configFile: .github/commitlint.config.js |