File tree 2 files changed +28
-0
lines changed
2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : PR Title Check
2
+
3
+ on :
4
+ pull_request :
5
+ branches : [main]
6
+ types : [opened, edited, synchronize]
7
+
8
+ jobs :
9
+ title_check :
10
+ runs-on : ubuntu-latest
11
+ permissions :
12
+ pull-requests : read
13
+
14
+ steps :
15
+ - name : Checkout
16
+ uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
17
+ with :
18
+ fetch-depth : 0
19
+
20
+ - name : Setup Node.js
21
+ uses : actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
22
+
23
+ - name : Install commitlint
24
+ run : npm install --save-dev @commitlint/{config-conventional,cli}
25
+
26
+ - name : Lint PR title
27
+ run : echo "${{ github.event.pull_request.title }}" | npx commitlint
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