File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 43
43
subject_limit : 60
44
44
# Optionally set the body character limit (default `72`)
45
45
body_limit : 100
46
+
47
+ - name : Check Commit Type
48
+ uses : gsactions/commit-message-checker@v1
49
+ with :
50
+ pattern : ' \[(BUGFIX|DOCS|FEATURE|TASK)\] .+$'
51
+ error : ' Your first line has to contain a commit type like "[BUGFIX]".'
52
+ checkAllCommitMessages : ' true'
53
+ accessToken : ${{ secrets.GITHUB_TOKEN }}
54
+ excludeDescription : ' true'
55
+
56
+ - name : Check for Resolves / Fixes
57
+ uses : gsactions/commit-message-checker@v1
58
+ with :
59
+ pattern : ' \s*(Implements|Contributes|Resolves|Fixes)\s*:?\s*(#\d+|github\.com\/axe007\/[a-z-.]*#\d+)'
60
+ error : ' You need at least one "Implements|Contributes|Resolves|Fixes: #<issue number>" line.'
You can’t perform that action at this time.
0 commit comments