feat(bump): add --version-files-only and deprecate --files-only by 2509abhi · Pull Request #1659 · commitizen-tools/commitizen

@2509abhi

This PR implements the changes requested in #1658.

Implements the historical recommendations described in #1640 (comment).

New Feature

  • Added a new CLI flag: --version-files-only
  • Updates only the files in version_files without creating a commit or tag

Deprecation

  • Marked --files-only as deprecated (to be removed in v5)
  • Added CLI and docs deprecation notices

Configuration Handling

  • Supported legacy config key files_only if present
  • Ensured backward compatibility until v5

Documentation Updates

  • Updated bump.md to document --version-files-only
  • Added deprecation note for --files-only
  • Added historical note about old filesversion_files

Closes #1658

@2509abhi

@bearomorphism

pls run though our pr checklist (you should see it upon PR creation) to pass the PR pipeline.

just quickly scanned through your changes, looks like you didn't run poetry lint or poetry format

bearomorphism

@2509abhi

@Lee-W

All commit messages must meet our requirements. Run poetry all locally to identify any issues. Thanks :)

Lee-W


create_file_and_commit("feat: another new feature")
testargs = ["cz", "bump", "--yes", "--files-only"]
testargs = ["cz", "bump", "--yes", "--files-only","--version-files-only"]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

testargs = ["cz", "bump", "--yes", "--files-only","--version-files-only"]
testargs = ["cz", "bump", "--yes", "--files-only", "--version-files-only"]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should also have --version-files-only cases

@Lee-W Lee-W changed the base branch from master to v4-11-0

November 20, 2025 01:11

@bearomorphism