File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Require semantic PR title
2+
3+ on :
4+ pull_request_target :
5+ types :
6+ - opened
7+ - edited
8+ - synchronize
9+
10+ concurrency :
11+ group : ${{ github.workflow }}-${{ github.head_ref || github.sha }}
12+ cancel-in-progress : true
13+
14+ jobs :
15+ check :
16+ runs-on : ubuntu-latest
17+ steps :
18+ # Accepted types: https://github.com/commitizen/conventional-commit-types/blob/master/index.json
19+ 20+ env :
21+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
22+ with :
23+ # Reason from action docs:
24+ # When using "Squash and merge" on a PR with only one commit, GitHub
25+ # will suggest using that commit message instead of the PR title for the
26+ # merge commit, and it's easy to commit this by mistake. Enable this option
27+ # to also validate the commit message for one commit PRs.
28+ validateSingleCommit : true
You can’t perform that action at this time.
0 commit comments