-
Hi All, I'm having a bit of trouble trying to achieve something and I'm wondering if anyone has any pointers on what to try. Background: I am using a GitHub style flow, and would like to be able to have specific version bumps without any code changing. Example: I have my main branch: This is what my config looks like: mode: Mainline
legacy-semver-padding: 1
build-metadata-padding: 1
commits-since-version-source-padding: 1
commit-message-incrementing: Disabled
tag-prefix: ''
increment: Patch
branches:
main:
tag: alpha When GitVersion computes the version rather than incrementing to |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
A slightly less edge case example of bumping without changes. Is bumping from patch to new minor: mode: Mainline
legacy-semver-padding: 1
build-metadata-padding: 1
commits-since-version-source-padding: 1
commit-message-incrementing: Disabled
tag-prefix: ''
increment: Minor
branches:
main:
tag: '' |
Beta Was this translation helpful? Give feedback.
-
Please see the following discussion: and feature: Same version computed on different branches #3453 I'm not sure how it fits to the version mode mainline because in manline alias trunk based workflow you are normally not using tags. BTW you should switch to the preview version of git version if you want to have the discussion to be at the latest stage. |
Beta Was this translation helpful? Give feedback.
-
Okay thank you for outlining it. It gives me a better understanding for what you want. :)
GitVersion is a tool to determine the semantic version based on the current state of the repository. If you have no changes in the repository then the same configuration yields to the same result (deterministic). The pre-release number reflects the number of commits which have been made from the base version of the previous release. Without additional commits the pre-release number will be remain the same even if you change the next-version number. The only way I can think of is:
|
Beta Was this translation helpful? Give feedback.
Okay thank you for outlining it. It gives me a better understanding for what you want. :)
GitVersion is a tool to determine the semantic version based on the current state of the repository. If you have no changes in the repository then the same configuration yields to the same result (deterministic). The pre-release number reflects the number of commits which have been made from the base version of the previous release. Without additional commits the pre-release number will be remain the same even if you change the next-version number. The only way I can think of is: