-
-
Notifications
You must be signed in to change notification settings - Fork 282
Add ability to create changelog on bump by default #290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi, thanks for the suggestion. However, I'm a bit against this idea. I think when a user enters |
Ah, I missed one detail. I think introducing |
Yes, I'm not suggesting to always create a changelog but to keep the current default in place (no changelog) but to give an option to do it. I'm working on a project where our release cycle should contain a single commit for changelog update and version bumping. That's where I'd want to set that |
I'm not very fond of this change, |
You are absolutely right, the ultimate goal should be to automate this step entirely in CI. Unfortunately, while adopting commitizen to a long-running project with a considerable amount of established processes it is not (immediately) feasible to automate this. Furthermore it might not be desired by all projects to bump versions every time when feat/fix commits are merged to the main branch. I can imagine a case in which a minor release is only created after multiple non-breaking feature merges for example. And in that case the |
Most CI's have a manual trigger. Here's an example of github actions, Jenkins and gitlab-ci also support prompts or "buttons". I'm not sure, I totally think it makes a job less readable, but on the other hand if it helps adoption. I'll let @Lee-W decide. |
@woile I think the users are supposed to know what they're doing when they add a new configuration. Thus, I'm okay with the idea of |
I add the command |
Thank you for both of your input here! I will adjust the (admittedly premature 😬) PR accordingly |
This issue is closed by #293 . Thanks for your contribution 😃 |
Description
I'd love for commitizen to configurable to have the
--changelog
flag set by default onbump
. This would reduce friction in adopting commitizen by avoiding a missing updated changelog on version bumps.Possible Solution
update_changelog_on_bump
(defaulting to False to mimic current behavior), that when set to True would have the same effect as providing the--changelog
flag.--changelog
(e.g.--no-changelog
) to disable changelog generation for one version bump.If this is something the maintainers agree is a useful feature, I'd be happy to implement it and provide a PR for it. 👋
The text was updated successfully, but these errors were encountered: