Skip to content

Commit 92614d5

Browse files
test(changelog): add --no-incremental regression test, address review feedback
- Add test_changelog_no_incremental_overrides_config_with_revision covering --no-incremental combined with a rev_range when changelog_incremental=true is set in config. - Clarify the comment in Changelog.__init__ to explicitly reference the --no-incremental flag needed to opt out. - Regenerate the stale docs/images/cli_help/cz_changelog___help.svg screenshot to include the new --no-incremental option. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent b15598c commit 92614d5

3 files changed

Lines changed: 143 additions & 101 deletions

File tree

‎commitizen/commands/changelog.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ def __init__(self, config: BaseConfig, arguments: ChangelogArgs) -> None:
8181
# `--incremental`/`--no-incremental` on the CLI always takes precedence over
8282
# the `changelog_incremental` setting. When neither flag is passed, the
8383
# argument is `None` and we fall back to the config value. This lets a
84-
# one-off invocation (e.g. `cz changelog <rev_range>`) opt out of an
85-
# incremental default enabled in the configuration.
84+
# one-off invocation (e.g. `cz changelog --no-incremental <rev_range>`) opt
85+
# out of an incremental default enabled in the configuration.
8686
incremental_arg = arguments.get("incremental")
8787
self.incremental = (
8888
incremental_arg

0 commit comments

Comments
 (0)