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 88efb61 commit a4d6eaaCopy full SHA for a4d6eaa
commitizen/bump_rule.py
@@ -136,6 +136,17 @@ def get_increment(
136
self.bump_map_major_version_zero if major_version_zero else self.bump_map
137
)
138
139
+ # TODO: need more flexibility for the pattern
140
+ # "refactor!: drop support for Python 2.7" => MAJOR
141
+ # bump_pattern = r"^((?P<major>major)|(?P<minor>minor)|(?P<patch>patch))(?P<scope>\(.+\))?(?P<bang>!)?:"
142
+ # bump_map = {
143
+ # "major": "MAJOR",
144
+ # "bang": "MAJOR",
145
+ # "minor": "MINOR",
146
+ # "patch": "PATCH",
147
+ # }
148
+ # bump_map_major_version_zero = { ... }
149
+
150
found_keyword = m.group(1)
151
for match_pattern, increment in bump_map.items():
152
if re.match(match_pattern, found_keyword):
0 commit comments