-
Hi, I am trying to find a way to make GitVersion increment the version, depending on which type of branch I am using when merging to my master branch (I am using Git-flow). Examples of how I want it to be: Merge release branch into master - Increment minor I have already tried to add Here is my branches:
develop:
regex: dev(elop)?(ment)?$
mode: ContinuousDelivery
tag: beta
feature:
regex: features?[/-]
mode: ContinuousDelivery
tag: alpha.{BranchName}
release:
regex: releases?[/-]
mode: ContinuousDelivery
tag: beta
hotfix:
regex: hotfix(es)?[/-]
mode: ContinuousDelivery
tag: beta
master:
mode: ContinuousDeployment |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Since branches are ephemeral (they are usually deleted after they are merged), there is not really anything in Git that preserves what branch the commits in a merge commit came from. The merge message may contain that information, but it's not guaranteed. Therefore, GitVersion uses |
Beta Was this translation helpful? Give feedback.
Since branches are ephemeral (they are usually deleted after they are merged), there is not really anything in Git that preserves what branch the commits in a merge commit came from. The merge message may contain that information, but it's not guaranteed. Therefore, GitVersion uses
git tag
as the persistent and consistent way to indicate the version number on non-ephemeral branches such asmain
anddevelop
.