Skip to content

Gitversion bases the version on the branch name #3839

Answered by HHobeck
rodrigoarnold asked this question in Q&A
Discussion options

You must be logged in to vote

In the breaking changes notes you will find the following:

A new configuration property with name version-in-branch-pattern has been introduced. This setting only applies on branches where the option is-release-branch is set to true. Please notice that the branch name needs to be defined after the version number by default (instead of support/lts-2.0.0 please name the branch like support/2.0.0-lts).

The default regular expression for version in branch pattern is (?<version>[vV]?\d+(\.\d+)?(\.\d+)?).*

This configuration has been introduces in release 6.0.0-beta.2:

Happy Branching.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rodrigoarnold
Comment options

Answer selected by rodrigoarnold
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants