How to increment version from commit/merge message ONLY? #4338
Unanswered
v1ferrarij
asked this question in
Q&A
Replies: 1 comment 4 replies
-
For this you need to use the mainline version strategy which is included in the workflow: TrunkBased/preview1
mode: ContinuousDeployment
major-version-bump-message: '(major|breaking)[\/\\]'
minor-version-bump-message: '(minor|feature)[\/\\]'
patch-version-bump-message: '(fix|patch)[\/\\]'
commit-message-incrementing: MergeMessageOnly
branches:
main:
increment: None Link[1]: |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am looking to use GitVersion to version our modules.
I basically only want GitVersion to bump the version depending on the LAST COMMIT/MERGE message.
For example, when we merge a PR, the default message will contain the branch name
Merged PR 54: feature/example
All I want Gitversion to do is read this and then increment the version, in the example above the next version would be
0.1.0
I currently have this setup but it is not performing as expected.
How can this be done, is it even possible?
Many Thanks!
Beta Was this translation helpful? Give feedback.
All reactions