Replies: 1 comment
-
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.
-
Prerequisites
GitVersion package
GitVersion.MsBuild
GitVersion version
v6
Operating system
Windows
What are you seeing?
Under some scenarios, merging a hotfix branch back to develop prior to merging into main causes the prerelease number of the commits on develop to regress.
#4501 discussed a very similar issue, however the resolution there was limited to version numbers being sourced from commit messages, whereas we are reliant on conventional commits to determine our numbers in our case.
Some additional notes:
Is this behaving as intended? The behaviouir's dependence on order of merges seems to indicate an issue to me, but if there isn't, is there a way to configure our way around the problem?
What is expected?
develop
's commits' prerelease numbers should monotonically increase.Steps to Reproduce
Make a merge from a hotfix branch to develop prior to merging to main and tagging a release using GitFlow.
RepositoryFixture Test
Note this is using a variant of the
AssertFullSemver
method to provide debug graphs without asserting, but these can easily be swapped out for assertions or removed.Output log or link to your CI build (if appropriate).
Beta Was this translation helpful? Give feedback.
All reactions