Replies: 2 comments
-
It's not clear for me what you are trying to do. Generally starting a discussion like Gitversion does not generate correct version with docent of use cases is not so ideal. Please isolate your problem and create a separate discussion or issue. Anyway I would recommend you to migrate to the preview version 6.0.0-rc.2 and start using the supported GitFlow examples -> Create release branch with version
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Latest v6 resolved the issue. |
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
-
Hello!
I am trying to set up a GitHub Action pipeline that supports the GitFlow branching strategy and want to use GitVersion to automate version generation and tagging based on branch names and existing tags.
However, it seems like I am having issues or cannot figure out how to configure GitVersion correctly for my use case.
I have just added a public repository that shows my issues: https://github.com/dbelyaev/gitversion-and-gitflow
The flow is simple, we have two branches:
develop
main
Where the pipeline looks like this:
On push to develop
On new pull request (opened, synchronize, reopened) from
release/vX.X.X
orhotfix/vX.X.X
tomain
vX.X.X
)rc
suffix to get something likevX.X.X-rcY
On pull request to
main
close and mergedOn push to
main
develop
to sync branchesrc
tags and merge commit message withMerge of release/vX.X.X
)vX.X.X
main
branchCurrent issue
Looks like gitversion is not calculating version using release branch name, but activate pull-request related versioning:
v0.0.1
develop
and started a new release branchrelease/0.2.4
release/0.2.4
targetingmain
0.1.0-PullRequest0006.9
while I expect it to be0.2.4-rc1
(see step "Display Semver" in this job output)So, I expect gitversion to use
Version in branch name
from original release branch as source and not an internal GitHub pr related branch name.My gitVersion.yml looks like this:
Any help on how to correctly configure gitversion?
Beta Was this translation helpful? Give feedback.
All reactions