File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3434 with :
3535 go-version-input : ' ~1.22.0'
3636 check-latest : true
37+
38+ commitlint :
39+ runs-on : ubuntu-latest
40+ steps :
41+ - uses : actions/checkout@v3
42+ with :
43+ fetch-depth : 0
44+
45+ - name : Install NodeJS
46+ uses : actions/setup-node@v4
47+ with :
48+ node-version : 18
49+
50+ - name : Install commitlint and convention
51+ run : |
52+ npm install commitlint@latest @commitlint/config-conventional
53+
54+ - name : Validate current commit (last commit) with commitlint
55+ if : github.event_name == 'push'
56+ run : npx commitlint --from HEAD~1 --to HEAD --verbose
57+
58+ - name : Validate PR commits with commitlint
59+ if : github.event_name == 'pull_request'
60+ run : npx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose
Original file line number Diff line number Diff line change 1+ module . exports = { extends : [ '@commitlint/config-conventional' ] }
You can’t perform that action at this time.
0 commit comments