-
Notifications
You must be signed in to change notification settings - Fork 653
Add version bumping strategy 'commit message' #137
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
I like both, regarding the second how about adding a gv: or gitversion: just to make sure we don't bump by mistake. eg.
|
I'd vote for using One thing to think about though would be the difference in applying a breaking change to the version for version numbers below 1.0, because in that case I'd expect a breaking change to also bump the minor version and not the major version. Mainly because the change from pre-1.0 to 1.0 is a decision that is hard to make automatically. |
I like the That said since we're actually talking about a semver breaking change should we consider: |
+1 for the +semver:breaking option. Maybe the other option should then also be +semver:feature? |
Why not make this configurable.
:) |
Yea,
at least as the default option :) |
So what about major-version-bump-message: (\+semver:.?breaking|breaking:)
minor-version-bump-message: (\+semver:.?(feature|minor)|(feature|minor):) This will match And minor can be |
+1
|
Updated issue description. It is up for grabs so anyone can grab it :) |
Great idea!
|
Are there any special rules around using this? I've tried an empty commit against develop (local), a commit with a change to the readme.md in a feature branch (also local) and I still see the existing versioning scheme. I've tried with commit messages of
and then tried
Still no joy. Are there special conditions that cause this comment to be actioned? My GitVersion.yml is
I've also tried making the following change to the GitVersion.yml (on disk change only, no commit) but it still builds a 2.3.0 release.
|
Hmmm, I think this is my lack of understanding. I'm trying to bump minor on a develop branch after I have created a release-2.3 branch which is going through a release candidate phase. The last known version source on the develop branch was a v2.2.9 tag. The develop builds were correctly building 2.3.0 builds based on the 2.2.9 tag. I had assumed that adding a commit message to bump minor would have taken 2.3.0 to 2.4.0. I guess it doesn't because it is bumping from the 2.2.9 tag and coming up with the 2.3.0 version again. I can't tag 2.3.0 anywhere because it hasn't been finalised in the release-2.3 branch. I am assuming that my only option is to put a next-version: 2.4.0 into the GitVersion.yml in the develop branch to get the desired result. |
I would like to bump the major or minor by having certain keywords in my commit message..
It would be done via two configuration properties, both accepting a RegEx value with the keys and their default values being:
The match should be case insensitive.
This will match
Api change doing blah +semver: breaking
andbreaking: Api change doing blah
And minor can be
new feature description +semver: feature
orfeature: new feature description
The text was updated successfully, but these errors were encountered: