Skip to content

Not possible to use --get-next when changelog is enabled #1640

Closed

Description

@woile

Description

It's not possible to properly use --get-next when setting update_changelog_on_bump = true (is true).

Steps to reproduce

  1. Create a .cz.toml with
version = "0.0.1"
version_scheme = "semver2"
update_changelog_on_bump = true
  1. Create a commit and bump normally cz bump --yes
  2. Add a new commit:
touch foo.txt
git add foo.txt
git commit -m "fix: foobar"
  1. Try to get next version cz bump --get-next
  2. Observe error
--changelog or --changelog-to-stdout is not allowed with --get-next

This would be fine, if there was a way to say --changelog=false or --no-changelog. But there's not. So this requires the user to "temporarly" set the flag in the .cz.toml to false, which in a CI it's painful.

Current behavior

There's no way to get the next version if the user has enabled update_changelog_on_bump in their settings

Desired behavior

I see 2 options, to discuss:

  1. Do not block on this setting when it's enabled
  2. Add a new flag --no-changelog that forcefully marks changelog=false

What do you think @Lee-W @noirbizarre ?

Screenshots

No response

Environment

Commitizen Version: 3.31.0
Python Version: 3.12.11 (main, Jun 3 2025, 15:41:47) [GCC 14.3.0]
Operating System: Linux

Activity

  1. bearomorphism commented on Nov 12, 2025

    @bearomorphism
    Collaborator

    Agree, that makes sense.
    The current bump command is a little bloated to me. It would be great if we can move some of the instructions to other commands.

  2. woile commented on Nov 12, 2025

    @woile
    MemberAuthor

    If you'll agree, we can start shipping these features to cz version under v4. Although, we should isolate some functionality on bump so it could be reused on version first. And for v5 we could deprecate --get-next

  3. bearomorphism commented on Nov 18, 2025

    @bearomorphism
    Collaborator

    You can assign this feature to me. This will probably be 4.11 or later.

  4. woile commented on Nov 18, 2025

    @woile
    MemberAuthor

    Wanna create a new ticket?

    I'll work on the setup-cz action 👍🏻

  5. bearomorphism commented on Nov 18, 2025

    @bearomorphism
    Collaborator

    Sounds good

  6. modified the milestones: 4.10.1, 4.11.0 on Nov 19, 2025
  7. Lee-W commented on Nov 19, 2025

    @Lee-W
    Member

    Sounds like a sound plan. Do we want to deprecate the original --get-next and remove it in v5?

  8. added theissue type on Nov 19, 2025
  9. woile commented on Nov 19, 2025

    @woile
    MemberAuthor

    It depends, I would say yes, but only if it really makes bump leaner. If it's just 2 lines it's not a problem.
    Also, it would be nice to review bump and see if there's anything else we can remove

  10. bearomorphism commented on Nov 19, 2025

    @bearomorphism
    Collaborator

    Maybe we can rename the option --files-only to --version-files-only

  11. Lee-W commented on Nov 19, 2025

    @Lee-W
    Member

    Maybe we can rename the option --files-only to --version-files-only

    sounds like a good idea

  12. woile commented on Nov 20, 2025

    @woile
    MemberAuthor

    I've built the setup-cz action, can you take a look? 🙏🏻

    commitizen-tools/setup-cz#1

  13. woile commented on Nov 21, 2025

    @woile
    MemberAuthor
  14. Lee-W commented on Nov 30, 2025

    @Lee-W
    Member

    now the action is there and #1645 is merged. I think we can close this one

  15. woile commented on Nov 30, 2025

    @woile
    MemberAuthor

    I think the issue persists and cz version -p --next doesn't exist. Shall I create a new ticket for cz version -p --next instead?
    Because the idea is to deprecate --get-next

  16. reopened this on Nov 30, 2025
  17. Lee-W commented on Nov 30, 2025

    @Lee-W
    Member

    Shall I create a new ticket for cz version -p --next instead?

    yep, it would be better and more clear this way

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions