-
Notifications
You must be signed in to change notification settings - Fork 654
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
Develop minor version is bumped when merging a feature branch with a major version number #1519
Comments
@DOMZE I believe the problem here may be down to the usage of the version number in the feature branch. Can you try the above again without using |
@gep13 The idea behind the flow I mentioned was that I was hoping to increase a major version through a feature branch but I understand that one can do that with a commit message (+semver: major) If this is not the intended behavior, do you think the tool should be fixed accordingly (a.k.a not allow that) as it can result to a really mix up of versioning |
This issue has been automatically marked as stale because it has not had recent activity. After 30 days from now, it will be closed if no further activity occurs. Thank you for your contributions. |
Bump |
This issue has been automatically marked as stale because it has not had recent activity. After 30 days from now, it will be closed if no further activity occurs. Thank you for your contributions. |
This has been hanging in for a while. Is this something that may be fixed (ignore versions in feature branch names) or should this issue be closed? |
Didn't #1541 fix this? |
ah cool then didn't see that PR :-) thanks! |
Hello,
I have a question on GitVersion. In the scenario shown in the diagram below, how come the minor version is bumped when the feature branch is merged back into develop?
I would expect the version in develop to stay the same as there's no release branches associated with 2.0.0 and no tags in develop with 2.0.0
Does the tool automatically update the minor version on the next commit when it is tracking a release branch (regardless of the version)?
For information this is my GitVersion.yml
mode: ContinuousDeployment branches: {} ignore: sha: []
Using GitVersion 4.0.0
Git commands to reproduce the behavior:
git init
gitversion init (selecting, 5,2,0)
git add GitVersion.yml; git commit -m "Initial commit"; git checkout -b develop;
git commit -m "First commit in develop" --allow-empty
git checkout -b release/1.0.0
git commit -m "bugfix in release/1.0.0" --allow-empty
git checkout develop; git checkout -b feature/2.0.0;
git commit -m "first commit in feature/2.0.0" --allow-empty;
git checkout develop
git merge feature/2.0.0 --no-ff
Thank you!
The text was updated successfully, but these errors were encountered: