I am running GitVersion with GitFlow in Continuous Deployment mode with practically all default settings.
This is my GitVersion.yaml:
mode: ContinuousDeployment
continuous-delivery-fallback-tag: ''
branches:
master:
tracks-release-branches: true
merge-message-formats: {}
ignore:
sha: []
These are the steps I am taking:
1.0.0 on the master branchdevelop branch off of master (GitVersion shows this as 1.1.0, which is great, this is what I want)feature/myfeature branch off of developfeature/myfeaturefeature/myfeature -> develop1.1.0, and this makes complete sense to me.release branch off of develop1.1.0, again, this makes sense to me.release -> master1.0.1. Why is GitVersion not recognizing the history that I just pulled from the release branch?The only thing that I can do to solve the issue is to manually generate a tag on my release branch, which GitVersion will then use to determine the next version. I do not want to create the tag until I pull into master, at which point I will generate a new build and set a tag on my master branch automatically via my pipelines in Azure.
I was able to fix the problem by setting these configs in my GitVersion.yml:
branches:
main:
increment: None
tracks-release-branches: true
mode: ContinuousDeployment
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With