Skip to content

Commit 8ba39b3

Browse files
committed
refactor(bump): nit
1 parent 1f3785c commit 8ba39b3

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
@@ -254,8 +254,8 @@ def __call__(self) -> None:
254254
)
255255

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

260260
new_version = current_version.bump(
261261
increment,

0 commit comments

Comments
 (0)