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 a9cd957 commit cdec1a0Copy full SHA for cdec1a0
commitizen/cz/conventional_commits/conventional_commits.py
@@ -174,11 +174,27 @@ def schema(self) -> str:
174
)
175
176
def schema_pattern(self) -> str:
177
+ change_types = (
178
+ "build",
179
+ "bump",
180
+ "chore",
181
+ "ci",
182
+ "docs",
183
+ "feat",
184
+ "fix",
185
+ "perf",
186
+ "refactor",
187
+ "revert",
188
+ "style",
189
+ "test",
190
+ )
191
return (
192
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
193
+ r"(" + "|".join(change_types) + r")" # type
194
+ r"(\(\S+\))?" # scope
195
+ r"!?"
196
+ r": "
197
+ r"([^\n\r]+)" # subject
198
r"((\n\n.*)|(\s*))?$"
199
200
0 commit comments