File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ # Make sure commit subject and description follow the Conventional Commits spec.
2+ # See https://www.conventionalcommits.org/
3+
4+ name : " commitlint"
5+
6+ on :
7+ pull_request : {}
8+
9+ concurrency :
10+ group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
11+ cancel-in-progress : true
12+
13+ permissions :
14+ pull-requests : read
15+
16+ jobs :
17+ commitlint :
18+ runs-on : lab
19+
20+ steps :
21+ - name : Checkout repository
22+ uses : " actions/checkout@v4"
23+ with :
24+ fetch-depth : 0
25+ persist-credentials : " false"
26+
27+ - name : Run commitlint on Pull Request's commits
28+ uses : opensource-nepal/commitlint@v1
29+ with :
30+ verbose : true
31+
32+ - name : Block Merge Commits
33+ if : ${{ always() }}
34+ 35+ with :
36+ repo-token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments