Skip to content

Commit a4d6eaa

Browse files
committed
docs(bump_rule): add todo
1 parent 88efb61 commit a4d6eaa

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

commitizen/bump_rule.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,17 @@ def get_increment(
136136
self.bump_map_major_version_zero if major_version_zero else self.bump_map
137137
)
138138

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+
139150
found_keyword = m.group(1)
140151
for match_pattern, increment in bump_map.items():
141152
if re.match(match_pattern, found_keyword):

0 commit comments

Comments
 (0)