File tree 5 files changed +662
-11
lines changed
5 files changed +662
-11
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "extends" : [" ./node_modules/cz-ls-commits/commitlint" ]
3
+ }
Original file line number Diff line number Diff line change
1
+ name : commitlint
2
+ on : [push, pull_request]
3
+
4
+ jobs :
5
+ commitlint :
6
+ runs-on : ubuntu-latest
7
+
8
+ steps :
9
+ - name : Checkout repository
10
+ uses : actions/checkout@v4
11
+ with :
12
+ fetch-depth : 0
13
+
14
+ - name : Use Node.js
15
+ uses : actions/setup-node@v4
16
+ with :
17
+ cache : yarn
18
+ node-version-file : .nvmrc
19
+
20
+ - name : Install dependencies
21
+ run : yarn
22
+
23
+ - name : Lint commit message
24
+ run : yarn commitlint --from=HEAD~1
Original file line number Diff line number Diff line change
1
+ yarn commitlint --edit $1
Original file line number Diff line number Diff line change 28
28
"lodash.isobject" : " ^3.0.2"
29
29
},
30
30
"devDependencies" : {
31
+ "@commitlint/cli" : " ^19.2.1" ,
31
32
"@react-native-picker/picker" : " ^2.4.0" ,
32
33
"@types/react-native" : " ^0.60.22" ,
33
34
"babel-jest" : " ^23.6.0" ,
34
35
"babel-preset-react-native" : " ^4.0.1" ,
36
+ "cz-ls-commits" : " ^1.1.0" ,
35
37
"enzyme" : " ^3.7.0" ,
36
38
"enzyme-adapter-react-16" : " ^1.7.0" ,
37
39
"enzyme-to-json" : " ^3.3.5" ,
You can’t perform that action at this time.
0 commit comments