Skip to content

Commit 91d0b26

Browse files
authored
feat: allow fixup! and squash! in commit messages
1 parent 084f60b commit 91d0b26

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

commitizen/commands/check.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ def validate_commit_message(self, commit_msg: str, pattern: str) -> bool:
109109
commit_msg.startswith("Merge")
110110
or commit_msg.startswith("Revert")
111111
or commit_msg.startswith("Pull request")
112+
or commit_msg.startswith("fixup!")
113+
or commit_msg.startswith("squash!")
112114
):
113115
return True
114116
return bool(re.match(pattern, commit_msg))

0 commit comments

Comments
 (0)