-
-
Notifications
You must be signed in to change notification settings - Fork 198
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
Add option for not bump major version #677
Comments
Thanks for opening your first issue at git-cliff! Be sure to follow the issue template! ⛰️ |
Hello, thanks for reporting this! 🐻
|
Hi, I'm truly sorry, but I'm not keen to add this option. It seems like a very unique use case, and I don't want to complicate the codebase to add it. Again, sorry! |
Orhun, if you want to implement this feature in git-cliff, I'm happy to help. E.g. if git-cliff has the |
I think the best way would be to have this functionality in
How can we check if the returned version is major bump etc? |
I think it would make the most sense if the default behavior would be according to: https://doc.rust-lang.org/cargo/reference/semver.html
The option |
Could we maybe reuse the mechanism of MarcoIeni/release-plz@0a97ba4 Eg we specify For breaking changes there could be something similar 🤔🤔 (I know it's very similar to what was proposed in this issue 😅). Btw Orhun, I'm on mobile, so I'm not sure how you invoke next_version. But to check if a major has been updated, you could simply compare the two major versions (before and after the bump). The next_version crate exposes some functionalities to do the bump manually. Have a look at:
mbodmer, the behavior you described is already the default 👍 |
do you think adding a flag to specify the bump version type to use i come from standard-version and wonder if there is anything equivalent to |
You can already do this without adding another option. Check out the links I posted above. |
Sorry. Do you mean there is already a way to specify bump type in git-cliff? I saw your link to next_version and release-plz. I must be missing something here. |
No, I'm talking about the next_version library. I didn't get your request was for git cliff 👍 |
thanks, i made use of the api and made a pr in #744 |
Is there an existing issue or pull request for this?
Feature description
Hi,
first of all: thanks for this tool, i love it!
I'm trying to briefly explain my needs:
in some scenario i have two version of a library (one for a language version and one for another), in this case i simply use master to advance and a branch
release-1.x
to keep the versioning for the old language and i want to keep1.x.x
semver.So it could be very helpful to have an option like
features_never_bump_major
andbreaking_never_bump_major
or something else to assure that the bump is never for majorDesired solution
add some option to avoid major bumping
Alternatives considered
i could add some enforcing on ci or git hooks to avoid commit description with potential major bump, but is cumbersome and error prone
Additional context
No response
The text was updated successfully, but these errors were encountered: