Skip to content

Commit 4f96b62

Browse files
committed
ci(github): allow dash in commit scope
1 parent d1b2a00 commit 4f96b62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/commit_message_check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Check Commit Type And Scope
1313
uses: gsactions/commit-message-checker@v1
1414
with:
15-
pattern: '^[a-z]+(?:\([a-z]+\))?: .+(?:\n(?:\n.+)+)?(?:\n\n.+)?$'
15+
pattern: '^[a-z]+(?:\([a-z\-]+\))?: .+(?:\n(?:\n.+)+)?(?:\n\n.+)?$'
1616
error: 'Your message must have the correct format "<type>(<scope>): <subject>" with an optional body and footer separated by blank lines.'
1717
- name: Check Line Length
1818
uses: gsactions/commit-message-checker@v1

0 commit comments

Comments
 (0)