Skip to content

Commit 6685282

Browse files
committed
refactor(bump): nit
1 parent 9cacfcb commit 6685282

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)