-
I would like to use GitVersion for a rather simple versioning scheme based on trunk based development with branch for release strategy. An example could look like this: ---
config:
theme: default
gitGraph:
mainBranchName: 'trunk'
---
gitGraph:
commit id: "0.1.0-rc.0"
commit id: "0.1.0-rc.1"
branch release/1.0.0
checkout trunk
commit id: "1.1.0-rc.1"
checkout release/1.0.0
commit id: "1.0.0-rc.1"
commit id: "1.0.0-rc.2 " tag: "v1.0.0"
commit id: "1.0.1-rc.1"
commit id: "1.0.1-rc.2" tag: "v1.0.1"
checkout trunk
commit id: "1.1.0-rc.2" tag: "v1.1.0"
branch release/1.1.0
checkout trunk
commit id: "1.2.0-rc.1"
checkout release/1.1.0
commit id: "1.1.1-rc.1"
commit id: "1.1.1-rc.2" tag: "1.1.1"
commit id: "1.1.2-rc.1"
commit id: "1.1.2-rc.2" tag: "1.1.2"
checkout trunk
commit id: "1.2.0-rc.2"
branch release/1.2.0
checkout trunk
commit id: "1.3.0-rc.1"
checkout release/1.2.0
commit id: "1.2.0-rc.3"
commit id: "1.2.0-rc.4" tag: "1.2.0"
commit id: "1.2.1-rc.1"
commit id: "1.2.1-rc.2" tag: "1.2.1"
checkout trunk
commit id: "1.3.0-rc.2" tag: "1.3.0"
commit id: "1.4.0-rc.1"
TrunkThere are 3 different sources for the version on
*) this is an optional requirement that would allow the deletion of outdated release branches. ReleaseThere are 2 different sources for the version on
Always the highest determined version from all sources dominates. The release tags (non-prerelease) would be created manually and would not have to be calculated by GitVersion. Is it possible to configure GitVersion to get such a behavior? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Your workflow has nothing to do with the workflow: GitFlow/v1
branches:
develop:
regex: ^trunk$
label: rc
increment: Patch
release:
label: rc |
Beta Was this translation helpful? Give feedback.
You could also use the main (name as trunk) and support (name as release) branch configuration. It is not necessary to put the version into the branch name. I have no clue. what do you mean with it would be not consistent?
See: https://gitversion.net/docs/learn/branching-strategies/gitflow/examples#support-branches