Skip to content

Commit 8debb52

Browse files
committed
fix: support ! in cz check command
Closes #283
1 parent 019fc94 commit 8debb52

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

commitizen/cz/conventional_commits/conventional_commits.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def schema(self) -> str:
178178

179179
def schema_pattern(self) -> str:
180180
PATTERN = (
181-
r"(build|ci|docs|feat|fix|perf|refactor|style|test|chore|revert|bump)"
181+
r"(build|ci|docs|feat|fix|perf|refactor|style|test|chore|revert|bump)!?"
182182
r"(\(\S+\))?:(\s.*)"
183183
)
184184
return PATTERN

tests/commands/test_check_command.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
'Revert "fix(pre-commit): set pre-commit check stage to commit-msg"\n'
4545
"This reverts commit afc70133e4a81344928561fbf3bb20738dfc8a0b."
4646
),
47+
"feat!: add user stuff",
4748
]
4849

4950

0 commit comments

Comments
 (0)