-
-
Notifications
You must be signed in to change notification settings - Fork 276
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
Allow bump calculate the next version from git log #1374
Comments
Hi @pablodgonzalez , I don't quite understand. Could you please provide an example for helping us understand? Thanks! |
Sure, My team use commitizen for the wizard to prepare the commit message, to check the commit message and to do the bump version. - repo: local
hooks:
- id: cz-bump
name: "📝 commitizen · Bump version"
entry: bash -c 'cz bump --increment PATCH --files-only --yes && git add .cz.toml CHANGELOG.md main/settings/base.py'
language: system
pass_filenames: false
always_run: true
stages:
- commit-msg rigth now, we force a PATCH bump, because the bump use the tag version to check the last version and calculate what kind of increment to do. |
Can you share your configuration? Have you tried building your own version provider? |
this is our configuration, I didn't tried with a version provider [tool.commitizen]
name = "cz_conventional_commits"
version = "1.0.2"
version_provider = "commitizen"
update_changelog_on_bump = true
changelog_incremental = true
tag_format = ""
version_files = [
"main/settings/base.py"
]
search = "VERSION = \"v{version} - VERSION DEV\""
replace = "VERSION = \"v{new_version} - VERSION DEV\"" |
can you share the list of commits? I assume you must have a |
Exactly, that's is the reason my proposal is get the last log (or las commit) in terms of we are a little team so the idea is the devs update de versión based in their works, an any issue with the versioning is solved manually (we always make a rebase before make a PR) so, we control the flow of commit over the integration branch. In summary, I want to the devs can to do a solid commit message, and update the version based in the message of those commits. each time they make a commit. the versión conflicts can solve easy while do the rebase. |
I don't see this feature moving forward.
It seems very very niche for us to maintain. Unless we can really provide some valid points, that can be generally applicable to many other teams. What do the other maintainers think? @Lee-W @noirbizarre ? For me there are a bunch of questions to be answered:
|
Agree with it. But, if we can bump based on a certain commit instead of |
Description
Currently, when skip commits and no using tags at all (in my use case, I bump the version with each commit) always get a MAYOR bump, but my commit is not a BREAKING CHANGES.
Possible Solution
When sip using tags at all, use the git log to read the commit messages and calculate the next version in bump
Additional context
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: