Commit message incrementing precedence #4372
-
Hello, We have been using GitVersion for a while, for what mostly resembles a trunk based branching strategy, using Azure pipelines and making use of the GitTools ADO extension. Now we are attempting to do 2 things; upgrade to version 6 (been running 5.12) and make some small improvements to our configuration. We are observing some behaviour and aren't quite sure if this is expected behaviour or not and so would like some input. Given the below GitVersion configuration, noting the main branch has a default increment of Note - this is not the entire config for brevity.
Is this as per design? Is there a way we can override for desired behaviour? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Well you have set the Just to notice: This property is Link[1]: https://gitversion.net/docs/reference/configuration#snippet-/docs/workflows/TrunkBased/preview1.yml |
Beta Was this translation helpful? Give feedback.
-
Ok thanks for your reply. That's interesting, I think if I understand that particular configuration item's purpose, I would wonder then why To the second part of my question, my desired behaviour is I am unclear as to the combination of configuration properties to achieve this. Simply setting |
Beta Was this translation helpful? Give feedback.
Well you have set the
prevent-increment-of-merged-branch
property tofalse
. Thus the answer is yes. Set it totrue
.Just to notice: This property is
true
in theTrunkBased/preview1
workflow per default.Link[1]: https://gitversion.net/docs/reference/configuration#snippet-/docs/workflows/TrunkBased/preview1.yml