Need help with configuring gitversion (6rc1) #4065
-
Hi, We have a simple workflow based on GitHubFlow but I am struggling to configure gitversion to do what I want. Our main branch is
I have stripped almost everything from the default GitHubFlow config to get to the following file GitVersion.yml
My git history
And the output of
I would expect If this is not possible it is not a major issue, it does however mean I won't be able to rebuild a specific version if needed. Any help or suggestions will be appreciated |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Please keep in mind that your are inheriting from the default workflow which is in your example the branches:
develop:
regex: ^dev(elop)?(ment)?$
...
development:
regex: ^development$
...
... Saying: First comes first servers. To the
What you want is propably to define your configuration from scratch: workflow: ''
assembly-versioning-scheme: MajorMinorPatch
assembly-file-versioning-scheme: MajorMinorPatch
tag-prefix: '[vV]?'
version-in-branch-pattern: (?<version>[vV]?\d+(\.\d+)?(\.\d+)?).*
... |
Beta Was this translation helpful? Give feedback.
Please keep in mind that your are inheriting from the default workflow which is in your example the
GitFlow/v1
workflow. Because you choice development instead of develop, you are not overriding but defining a second definition for the development branch:Saying: First comes first servers.
To the
workflow
property you will find the following documentation: