File tree Expand file tree Collapse file tree 5 files changed +700
-0
lines changed Expand file tree Collapse file tree 5 files changed +700
-0
lines changed Original file line number Diff line number Diff line change 5252 - recursive: true
5353 args: [--frozen-lockfile, --strict-peer-dependencies]
5454
55+ - name : Validate PR commits with commitlint
56+ if : github.event_name == 'pull_request'
57+ run : pnpm commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose
58+
5559 - name : Setup Python
5660 uses : actions/setup-python@v5
5761 with :
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env sh
2+ . " $( dirname -- " $0 " ) /_/husky.sh"
3+
4+ pnpm commitlint --edit ${1}
Original file line number Diff line number Diff line change 1+ import type { UserConfig } from "@commitlint/types" ;
2+
3+ const config : UserConfig = {
4+ extends : [ "@commitlint/config-conventional" ]
5+ } ;
6+
7+ export default config ;
Original file line number Diff line number Diff line change 1616 "prepare" : " husky install"
1717 },
1818 "devDependencies" : {
19+ "@commitlint/types" : " ^19.8.0" ,
20+ "@commitlint/cli" : " ^19.8.0" ,
21+ "@commitlint/config-conventional" : " ^19.8.0" ,
1922 "eslint" : " ^8.57.0" ,
2023 "husky" : " ^8.0.3" ,
2124 "lint-staged" : " ^15.2.7" ,
You can’t perform that action at this time.
0 commit comments