-
Hello, we are using GitVersion 6.0.0-beta.7 in our Azure DevOps environment and have configured it as follows: workflow: GitHubFlow/v1
tag-prefix: '[vV]?'
update-build-number: true
strategies:
- MergeMessage
- TaggedCommit
- TrackReleaseBranches
- VersionInBranchName
branches:
main:
regex: ^master$|^main$
label: 'ci'
prevent-increment:
of-merged-branch: true
release:
regex: ^release(s)?[/-](?<BranchName>.+)
label: 'rc'
is-release-branch: true
prevent-increment:
of-merged-branch: true
when-current-commit-tagged: false
unknown:
increment: Inherit
regex: (?<BranchName>.+)
ignore:
sha: [] Let's assume we create release branches following this format: If we choose Is there any reason for the MergeMessage to expect 2 parent commits and / or is there any workaround to increment the main version as defined in the release branch despite of using Squash merges? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
Hi there. Actually, this is a good question. Maybe at the time gitversion was created, squash merges were not so common. Could you give me an example how the history of git will look like after you have merged it? |
Beta Was this translation helpful? Give feedback.
-
Thanks, here's the release branch (2 commits on readme): And here after merge (Version generated is 12.x.x instead of 14.0.0, as shown in the logs below): The MergeMessage strategy just finds an old release, that I've merged using the
|
Beta Was this translation helpful? Give feedback.
-
For testing reasons, I've tried to overcome the single At least for my use case it worked, however I'm way too new into this repository to really make sure it's an appropriate solution. My main concern is the workaround of the As a second approach, I extended the |
Beta Was this translation helpful? Give feedback.
-
Implemented with #3984, thanks for helping me out here! |
Beta Was this translation helpful? Give feedback.
Implemented with #3984, thanks for helping me out here!