File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed
Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change 1+ export default {
2+ extends : [ "@gimoji/commitlint-config-gimoji" ] ,
3+ } ;
Original file line number Diff line number Diff line change 1+ # https://commitlint.js.org/guides/ci-setup.html
2+
3+ name : commitlint
4+
5+ on : [push, pull_request]
6+
7+ permissions :
8+ contents : read
9+
10+ jobs :
11+ commitlint :
12+ runs-on : ubuntu-latest
13+ steps :
14+ - uses : actions/checkout@v6
15+ with :
16+ fetch-depth : 0
17+ - name : Setup node
18+ uses : actions/setup-node@v6
19+ with :
20+ node-version : lts/*
21+
22+ - name : Validate PR commits with commitlint
23+ if : github.event_name == 'pull_request'
24+ run : npm exec --package @commitlint/cli --package @gimoji/commitlint-config-gimoji --package @gimoji/commitlint-plugin-gimoji --yes -- commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose
You can’t perform that action at this time.
0 commit comments