Possible to set a max limit for branchname? #4456
-
We have a bunch of branch rules in our gitversion config, most are variations of Is it possible to limit BranchName's length ala |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I would honestly not want to add this type of features into GitVersion, we should keep the tool only for computing the version from the git history, anything not related should be either set as input or computed as output by the user of the tool. |
Beta Was this translation helpful? Give feedback.
Why not just changing the regular expression to e.g.
^features?[\/-](?<BranchName>.{8})
? I have implemented this feature of named grouping to have the flexibility.