-
Prerequisites
GitVersion packageAzureDevops task GitVersion version6.3.0 Operating systemWindows What are you seeing?When we upgraded to the new
What is expected?It was expected that the SemVer and other versioning variables set by the gitversion/execute@3 are controlled and directly representing what is set by the developer with +semver: in the commit . Steps to Reproduceazure-pipelines.yml
GitVersion.yml
The above described behavior is seen only on some merge types . In Azure DevOps there are 4 merge types settings available.
Example :
Using Basic merge Main is on 1.0.0 . A commit is made with +semver: Minor. The new build is versioned with 1.1.0 Using Basic merge Main is on 1.0.0 . A commit is made with +semver: Patch. The new build is versioned with 1.0.1
Using Basic merge Release/branch is on 1.0.0 . A commit is made with +semver: Minor. The new build is versioned with 1.1.0 Using Basic merge Release/branch is on 1.0.0 . A commit is made with +semver: Patch. The new build is versioned with 1.0.1 RepositoryFixture TestNo response Output log or link to your CI build (if appropriate). |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi there. I'm moving this to the discussion section because this is probably a configuration issue. We have docent of integrations tests which ensures your scenario: MainlineScenariosWithAGitHubFlow:
If you are missing some tests please feel free and extend the integration tests. Cheers. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your response. After some testing and going through the configuration as you suggested , I found what was causing this behavior.
In the configuration documents there is this description: As my configuration was incorrectly set to MergeMessageOnly it appears that the tool was acting as if it was set to Disabled . This was causing the commit message to be ignored on the some of the merge types and default increments to be loaded. It was only able to collect the < +semver: change > when the commit message was retailed fully , such as what happens in Basic merge Best Regards |
Beta Was this translation helpful? Give feedback.
Thank you for your response.
After some testing and going through the configuration as you suggested , I found what was causing this behavior.
In the configuration documents there is this description:
commit-message-incrementing
Sets whether it should be possible to increment the version with special syntax in the commit message. See the -version-bump-message options above for details on the syntax. Default set to Enabled; set to Disabled to disable.
As my configuration was incorrectly set to MergeMessageOnly it appears that the tool was acting as if it was set to Disabled . This was causing the commit message to be ignored on the some of the…