Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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.NONEandallow_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)

AltStyle によって変換されたページ (->オリジナル) /