Skip to content

Commit 87d307c

Browse files
authored
Update commit-checker.yml
1 parent 708794c commit 87d307c

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/commit-checker.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,18 @@ jobs:
4343
subject_limit: 60
4444
# Optionally set the body character limit (default `72`)
4545
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.'

0 commit comments

Comments
 (0)