Replies: 1 comment
-
You need to do one of the following points:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey, I have a problem configuring GitVersion the way that wouldn't require my teammates to create tags on main :-) Not sure if it's even possible (however I can't see the reason why not).
We work in rather simple GitFlow strategy, so we branch our
features
off thedevelop
, squash-merge them back todevelop
and when the fine amount of features is collected ondevelop
we do a normal-merge -no-ff tomain
. Sometimes we do hotfixes on main but it's a rare situation.GitVersion on develop works like charm, I'm getting 1.1.0-alpha1, 1.1.0-alpha2, 1.1.0-alpha3 and so on for each squash-merged feature.
However, when develop is merged to main:
main
gets version 1.0.1develop
get versions 1.1.0-alpha4, 1.1.0-alpha5, 1.1.0-alpha6What I expect after merge is:
main
gets version 1.1.0 (becaue the prerelease tag should just be removed from the version being prepared on develop)develop
get versions 1.2.0-alpha1, 1.2.0-alpha2, 1.2.0-alpha3 (because version is bumped after merge to main.Of course setting a v1.1.0 tag on the merge commit helps but it requires some manual work which my colleagues aren't happy with. Any ideas how can I achieve my expectations using GitVersion?
Beta Was this translation helpful? Give feedback.
All reactions