Skip to content

Commit

Permalink
auto-increment independent parts
Browse files Browse the repository at this point in the history
  • Loading branch information
janfrederik committed Jul 1, 2023
1 parent bc95374 commit 693bade
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bumpversion/version_part.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@ def bump(self, part_name, order):
if label == part_name:
new_values[label] = self._values[label].bump()
bumped = True
elif bumped and not self._values[label].is_independent():
elif self._values[label].is_independent():
new_values[label] = self._values[label].bump()
elif bumped:
new_values[label] = self._values[label].null()
else:
new_values[label] = self._values[label].copy()
Expand Down

0 comments on commit 693bade

Please sign in to comment.