File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -180,13 +180,17 @@ def get_increment(
180
180
if not (m := self .bump_pattern .search (commit_message )):
181
181
return None
182
182
183
- bump_map = (
183
+ effective_bump_map = (
184
184
self .bump_map_major_version_zero if major_version_zero else self .bump_map
185
185
)
186
186
187
187
try :
188
188
if ret := SemVerIncrement .get_highest (
189
- (increment for name , increment in bump_map .items () if m .group (name )),
189
+ (
190
+ increment
191
+ for name , increment in effective_bump_map .items ()
192
+ if m .group (name )
193
+ ),
190
194
):
191
195
return ret
192
196
except IndexError :
@@ -195,7 +199,7 @@ def get_increment(
195
199
196
200
# Fallback to old school bump rule
197
201
found_keyword = m .group (1 )
198
- for match_pattern , increment in bump_map .items ():
202
+ for match_pattern , increment in effective_bump_map .items ():
199
203
if re .match (match_pattern , found_keyword ):
200
204
return increment
201
205
return None
You can’t perform that action at this time.
0 commit comments