-
Hi Folks, Hope I can explain myself clearly enough as to how I've configured and use GitVersion within our organization. We use a Short-Lived Feature Branches workflow akin to GitHub Flow described in the documentation through Azure DevOps. Given we don't continuously deploy into production everyday, we felt the default Continuous Delivery mode was the right approach for us as we merge into main through PRs and our main branch is protected by branch policies that prevent direct pushes or merges. Our mode: ContinuousDelivery
continuous-delivery-fallback-tag: CI
major-version-bump-message: '\+semver:\s?(breaking|major)'
minor-version-bump-message: '\+semver:\s?(feature|minor)'
patch-version-bump-message: '\+semver:\s?(fix|patch|bug)'
no-bump-message: '\+semver:\s?(none|skip)'
commit-message-incrementing: MergeMessageOnly
branches: {}
ignore:
sha: []
merge-message-formats: {} The problem I've experienced is that despite explicit PR merge messages like After scanning the GitVersion documentation, I found it is configured by default where main/master and support/* branches are defined as mainline and therefore I performed the following:
Unfortunately this has just pushed the same issue forward to v1.34.1. Looking through the gitversion task's logs, the following warnings seem to be relevant to understanding why:
The git fetching seems like an important part for getting the latest tags, commits and potentially pruning?
This is what confuses me most, I'm not sure what exactly is causing it to have multiple base versions that can produce v1.34.1? Is it the following 2 commits since v1.34.0?
Here you can see the divergence in the commits. At one point when it was stuck at v1.1.1, there was about 30-40 commits found between the last tagged commit and the latest commit. This is more than likely that the issue exists between the computer and the chair but if anyone can help it would be great!
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
It may be that |
Beta Was this translation helpful? Give feedback.
It may be that
mode: Mainline
is more suitable to your use-case. Removenext-version
if you have it, changemode
toMainline
and let me know how you fare.