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

Uh oh!
There was an error while loading. Please reload this page.
-
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:
developmainWhere the pipeline looks like this:
On push to develop
On new pull request (opened, synchronize, reopened) from
release/vX.X.Xorhotfix/vX.X.XtomainvX.X.X)rcsuffix to get something likevX.X.X-rcYOn pull request to
mainclose and mergedOn push to
maindevelopto sync branchesrctags and merge commit message withMerge of release/vX.X.X)vX.X.XmainbranchCurrent issue
Looks like gitversion is not calculating version using release branch name, but activate pull-request related versioning:
v0.0.1developand started a new release branchrelease/0.2.4release/0.2.4targetingmain0.1.0-PullRequest0006.9while 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 namefrom 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