Replies: 2 comments 5 replies
-
Please start with the following configuration (preview 6.0.0-beta.3): workspace: GitFlow/v1
next-version: 3.3.0
branches:
feature:
increment: Minor
hotfix:
increment: Patch Sequence diagrams: Inherited configuration (GitFlow/v1): |
Beta Was this translation helpful? Give feedback.
-
Have you tried this? mode: Mainline
branches:
feature:
increment: Minor
hotfix:
increment: Patch Please don't use next-version with Mainline mode. It's not compatible. It might be also a problem that you are not using the beta version. I know that alot of things has been done in the pre-release version 6.x. Happy branching! |
Beta Was this translation helpful? Give feedback.
-
I'm struggling to get GitVersion to do what I want. I'm sure it's user error, but I can't quite make sense of it.
My branch strategy looks like this:
Releases are done from the master branch. Any pull request into master triggers a build (releases are triggered manually). New builds for testing are triggered from any pull request into dev (basically we do a feature branch, merge into dev, that goes out to testing automatically). Once dev is at a good place, a pull request from dev -> master is done which triggers the next build, and release is triggered manually.
If a hotfix is required, a hotfix branch is created (e.g. hotfix-bug#1111) and this gets merged into master. Latterly we do a merge from master back to dev to pull across any hotfixes.
I'm trying to get it so that any pull request into master advances
Minor
and setsPatch
to 0, except when it's from a hotfix branch, then it should advance thePatch
. For example 3.4.0 goes to 3.4.1 upon hotfix, but 3.4.1 goes to 3.5.0 upon pull request from dev.At the moment my master branch ends up with a version like this:
Update build number to 3.4.1+2 for build 222
. I don't understand why I'm getting a commit count when the master branch is set to advance Patch.Any help would be much appreciated.
Below is my GitVersion.yml, but it's a bit of a mess as I've been trying various different things to get this working.
Beta Was this translation helpful? Give feedback.
All reactions