Repository navigation
feat: track prerelease tags on unversioned release branches - #5192
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
The updated docs for tracks-release-branches contain an incorrect one-line description that should be corrected to avoid misleading users.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review details
- Files reviewed: 5/5 changed files
- Comments generated: 2
- Review effort level: Lite
44d1698 to
43b7b1a
Compare
There was a problem hiding this comment.
🟡 Changes recommended
The new release-tracking flow should defensively ignore release branches with no merge base (unrelated history), otherwise versioned release branches from unrelated roots can still affect develop versioning.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review details
- Files reviewed: 5/5 changed files
- Comments generated: 2
- Review effort level: Lite
|
Tick the box to add this pull request to the merge queue (same as
|
43b7b1a to
eee4ff4
Compare
|
|
Thank you @arturcic for your contribution! |



Description
Allow
TrackReleaseBranchesto identify an unversioned release branch from its highest eligible semantic prerelease tag. For example,releases/R2301tagged1.0.0-RC.1lets develop advance to1.1.0-beta.1after its next commit.Versioned release names retain precedence. Tag selection respects release labels, tag prefixes, parsing and ignore settings, using release first-parent history outside main first-parent history. Eligibility uses current release refs consistently for tip and historical calculations. The existing branch-aware merge base supplies commit counts.
Related Issue
Resolves #3149
Motivation and Context
Develop currently tracks release versions encoded in branch names but misses equivalent prerelease tags on unversioned release branches. This extends that capability, including sibling release branches. Tests also cover retaining the same develop version after develop advances and after the release is merged into main.
GitFlow hotfixes are release branches too: the existing non-Mainline hotfix scenario now counts from the recognized release branch point, matching the versioned-hotfix control.
How Has This Been Tested?
git diff --checkpass; configuration documentation regenerated withmdsnippets.new-clitree.Checklist