Skip to content

Commit 0d2c499

Browse files
bearomorphismLee-W
authored andcommitted
refactor(bump): nit
1 parent f916b8c commit 0d2c499

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

commitizen/commands/bump.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,8 @@ def __call__(self) -> None:
255255
)
256256

257257
# we create an empty PATCH increment for empty tag
258-
if increment == VersionIncrement.NONE and allow_no_commit:
259-
increment = VersionIncrement.PATCH
258+
if allow_no_commit:
259+
increment = max(increment, VersionIncrement.PATCH)
260260

261261
new_version = current_version.bump(
262262
increment,

0 commit comments

Comments
 (0)