Skip to content

feat: track prerelease tags on unversioned release branches - #5192

Merged
arturcic merged 1 commit into
GitTools:mainfrom
arturcic:codex/3149-track-release-tags
Sep 9, 2026
Merged

arturcic merged 1 commit into
GitTools:mainfrom
arturcic:codex/3149-track-release-tags

Conversation

@arturcic

@arturcic arturcic commented Sep 8, 2026

Copy link
Copy Markdown
Member

Description

Allow TrackReleaseBranches to identify an unversioned release branch from its highest eligible semantic prerelease tag. For example, releases/R2301 tagged 1.0.0-RC.1 lets develop advance to 1.1.0-beta.1 after 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?

  • macOS arm64, .NET SDK 10.0.400.
  • 33 focused cases pass with each of the managed and libgit2 backends.
  • Full core suite: 36,290 passed, zero failures or skips on each backend.
  • Regression confirmed to fail before the same-SHA fix for the unversioned release, while the versioned-name control passed.
  • Formatting verification and git diff --check pass; configuration documentation regenerated with mdsnippets.
  • Tests ran before rebasing onto current main; the only intervening upstream change updates Scriban in the separate new-cli tree.

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing core tests passed.

@arturcic
arturcic requested a review from HHobeck September 8, 2026 20:05
@arturcic
arturcic marked this pull request as ready for review September 8, 2026 20:05
Copilot AI lite review requested due to automatic review settings September 8, 2026 20:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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

@arturcic
arturcic force-pushed the codex/3149-track-release-tags branch from 44d1698 to 43b7b1a Compare September 8, 2026 22:40
Copilot AI review requested due to automatic review settings September 8, 2026 22:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@arturcic
arturcic requested a lite review from Copilot September 8, 2026 22:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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

@mergify

mergify Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

Copilot AI review requested due to automatic review settings September 9, 2026 07:36
@arturcic
arturcic force-pushed the codex/3149-track-release-tags branch from 43b7b1a to eee4ff4 Compare September 9, 2026 07:36

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@arturcic
arturcic enabled auto-merge September 9, 2026 07:37
@sonarqubecloud

sonarqubecloud Bot commented Sep 9, 2026

Copy link
Copy Markdown

@arturcic
arturcic merged commit a1a26a0 into GitTools:main Sep 9, 2026
39 checks passed
@arturcic
arturcic deleted the codex/3149-track-release-tags branch September 9, 2026 07:55
@mergify

mergify Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Thank you @arturcic for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Version is not incrementing on develop after creating the release branch

3 participants