File tree 6 files changed +32353
-5256
lines changed
6 files changed +32353
-5256
lines changed Original file line number Diff line number Diff line change @@ -10,11 +10,11 @@ jobs:
10
10
build : # make sure build/ci work properly
11
11
runs-on : ubuntu-latest
12
12
steps :
13
- - uses : actions/checkout@v3
14
- - name : Set Node.js 16 .x
15
- uses : actions/setup-node@v3
13
+ - uses : actions/checkout@v4
14
+ - name : Set Node.js 20 .x
15
+ uses : actions/setup-node@v4
16
16
with :
17
- node-version : 16 .x
17
+ node-version : 20 .x
18
18
- name : Install
19
19
run : |
20
20
npm install
29
29
test : # make sure the action works on a clean machine without building
30
30
runs-on : ubuntu-latest
31
31
steps :
32
- - uses : actions/checkout@v3
32
+ - uses : actions/checkout@v4
33
33
- uses : ./
34
34
with :
35
35
pattern : ' \[(BUGFIX|DOCS|FEATURE|TASK)\] .+$'
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ More information about `pattern` and `flags` can be found in the
24
24
` flags ` is optional and defaults to ` gm ` .
25
25
26
26
` excludeDescription ` , ` excludeTitle ` and ` checkAllCommitMessages ` are optional.
27
- Default behavior is to include the description and title and not check pull
27
+ The default behavior is to include the description and title and not check pull
28
28
request commit messages.
29
29
30
30
### Example Workflow
@@ -55,13 +55,13 @@ jobs:
55
55
runs-on : ubuntu-latest
56
56
steps :
57
57
- name : Check Commit Type
58
- uses : gsactions/commit-message-checker@v2
58
+ uses : gsactions/commit-message-checker@v3
59
59
with :
60
60
pattern : ' \[[^]]+\] .+$'
61
61
flags : ' gm'
62
62
error : ' Your first line has to contain a commit type like "[BUGFIX]".'
63
63
- name : Check Line Length
64
- uses : gsactions/commit-message-checker@v2
64
+ uses : gsactions/commit-message-checker@v3
65
65
with :
66
66
pattern : ' ^[^#].{74}'
67
67
error : ' The maximum line length of 74 characters is exceeded.'
70
70
checkAllCommitMessages : ' true' # optional: this checks all commits associated with a pull request
71
71
accessToken : ${{ secrets.GITHUB_TOKEN }} # github access token is only required if checkAllCommitMessages is true
72
72
- name : Check for Resolves / Fixes
73
- uses : gsactions/commit-message-checker@v2
73
+ uses : gsactions/commit-message-checker@v3
74
74
with :
75
75
pattern : ' ^.+(Resolves|Fixes): \#[0-9]+$'
76
76
error : ' You need at least one "Resolves|Fixes: #<issue number>" line.'
Original file line number Diff line number Diff line change @@ -27,9 +27,9 @@ inputs:
27
27
accessToken :
28
28
description : ' you must provide GITHUB_TOKEN to this input if checkAllCommitMessages is true'
29
29
required : false
30
- default : ' false'
30
+ default : ' false'
31
31
runs :
32
- using : node16
32
+ using : node20
33
33
main : dist/index.js
34
34
branding :
35
35
icon : ' check'
You can’t perform that action at this time.
0 commit comments