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 fb04e28 commit 1a1fdc6Copy full SHA for 1a1fdc6
commitizen/commands/bump.py
@@ -215,11 +215,13 @@ def __call__(self) -> None:
215
raise NotAllowed("--local-version cannot be combined with --build-metadata")
216
217
if get_next:
218
- # if trying to use --get-next, we should not allow --changelog or --changelog-to-stdout
219
- if self.changelog_flag or self.changelog_to_stdout:
220
- raise NotAllowed(
221
- "--changelog or --changelog-to-stdout is not allowed with --get-next"
222
- )
+ for value, option in (
+ (self.changelog_flag, "--changelog"),
+ (self.changelog_to_stdout, "--changelog-to-stdout"),
+ ):
+ if value:
223
+ raise NotAllowed(f"{option} cannot be combined with --get-next")
224
+
225
# --get-next is a special case, taking precedence over config for 'update_changelog_on_bump'
226
self.changelog_config = False
227
# Setting dry_run to prevent any unwanted changes to the repo or files
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments