Skip to content

GitVersion does not calculate the next version correctly #4243

Discussion options

You must be logged in to vote

The reason was that I wasn't aware of version 6 of GitVersion. I upgraded it and the issue still remained. But I found a solution: the problem was that the built in configuration for "develop" was always applied because it is internally the first configuration that is processed and it matched the name of my "main" branch called dev. So I changed the GitVersion.yml like this and then it worked:

major-version-bump-message: "(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\\([\\w\\s-,/\\\\]*\\))?(!:|:.*\\n\\n((.+\\n)+\\n)?BREAKING CHANGE:\\s.+)"
minor-version-bump-message: "(feat)(\\([\\w\\s-,/\\\\]*\\))?:"
patch-version-bump-message: "(fix|perf|revert|docs|chore|test)(\\([\\w…

Replies: 1 comment 1 reply

Comment options

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

Answer selected by ChristiansAntrago
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