We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec97453 commit bdc9086Copy full SHA for bdc9086
commitizen/commands/bump.py
@@ -190,17 +190,13 @@ def __call__(self) -> None: # noqa: C901
190
if get_next:
191
raise NotAllowed("--get-next cannot be combined with MANUAL_VERSION")
192
193
- if major_version_zero:
194
- if not current_version.release[0] == 0:
195
- raise NotAllowed(
196
- f"--major-version-zero is meaningless for current version {current_version}"
197
- )
+ if self.bump_settings["major_version_zero"] and current_version.release[0]:
+ raise NotAllowed(
+ f"--major-version-zero is meaningless for current version {current_version}"
+ )
198
199
- if build_metadata:
200
- if is_local_version:
201
202
- "--local-version cannot be combined with --build-metadata"
203
+ if build_metadata and is_local_version:
+ raise NotAllowed("--local-version cannot be combined with --build-metadata")
204
205
206
# if trying to use --get-next, we should not allow --changelog or --changelog-to-stdout
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments