We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3919c9 commit 78946d1Copy full SHA for 78946d1
commitizen/cz/conventional_commits/conventional_commits.py
@@ -185,11 +185,27 @@ def schema(self) -> str:
185
)
186
187
def schema_pattern(self) -> str:
188
+ change_types = (
189
+ "build",
190
+ "bump",
191
+ "chore",
192
+ "ci",
193
+ "docs",
194
+ "feat",
195
+ "fix",
196
+ "perf",
197
+ "refactor",
198
+ "revert",
199
+ "style",
200
+ "test",
201
+ )
202
return (
203
r"(?s)" # To explicitly make . match new line
- r"(build|ci|docs|feat|fix|perf|refactor|style|test|chore|revert|bump)" # type
- r"(\(\S+\))?!?:" # scope
- r"( [^\n\r]+)" # subject
204
+ r"(" + "|".join(change_types) + r")" # type
205
+ r"(\(\S+\))?" # scope
206
+ r"!?"
207
+ r": "
208
+ r"([^\n\r]+)" # subject
209
r"((\n\n.*)|(\s*))?$"
210
211
0 commit comments