Pm 37565#7639
Draft
addisonbeck wants to merge 2 commits into
Draft
Conversation
PM-37565 requires hotfix-rc branch cuts never produce .0 patch versions. When the calendar month rolls over, version-next normally bumps to the new month's .0 -- which is wrong for hotfix branches. The fix adds a dedicated hotfix version calculation step using shell arithmetic to increment only the patch segment of the current version. The existing version-next-based calculate and bump steps are gated to skip when branch == hotfix-rc. A parallel hotfix-specific bump step for Directory.Build.props and a matching branch in set-final-version- output wire the new version into the release pipeline. Refs: PM-37565
PM-37565 requires hotfix-rc branch cuts never produce .0 patch versions. When the calendar month rolls over, version-next normally bumps to the new month's .0 -- which is wrong for hotfix branches. The fix adds a dedicated hotfix version calculation step using shell arithmetic to increment only the patch segment of the current version. Conditions previously gating on exact `== 'hotfix-rc'` equality are replaced with `contains(..., 'hotfix')` so future hotfix-N variants are covered automatically. A new resolve-branch-name step in cut_branch appends the calculated version to any hotfix branch name (e.g., `hotfix-rc-2026.5.1`) before the branch existence check and push. A parallel hotfix-specific bump step for Directory.Build.props and a matching branch in set-final-version-output wire the new version into the release pipeline. Refs: PM-37565
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7639 +/- ##
==========================================
+ Coverage 59.83% 59.85% +0.02%
==========================================
Files 2120 2121 +1
Lines 93377 93401 +24
Branches 8284 8285 +1
==========================================
+ Hits 55868 55903 +35
+ Misses 35527 35518 -9
+ Partials 1982 1980 -2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



🎟️ Tracking
📔 Objective
📸 Screenshots