Skip to content

Fix: Only update branch alias on major releases#225

Merged
swissspidy merged 3 commits intomainfrom
copilot/fix-branch-alias-updates
Mar 17, 2026
Merged

Fix: Only update branch alias on major releases#225
swissspidy merged 3 commits intomainfrom
copilot/fix-branch-alias-updates

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 17, 2026

Branch alias was being bumped on every release (e.g. v2.2.62.3.x-dev), when it should only change on major releases and use the {MAJOR}.x-dev format.

Changes

  • Guard clause: Skip alias update for any release where MINOR != 0 or PATCH != 0
  • Alias format: Changed from ${MAJOR}.${NEXT_MINOR}.x-dev${MAJOR}.x-dev
  • Validation: Extended numeric check to include PATCH (consolidated duplicate IFS read)
  • README: Updated documentation to correctly describe the {MAJOR}.x-dev format and that only major releases (vX.0.0) trigger a branch-alias update

Behavior

Release Before After
v2.2.6 Updates alias to 2.3.x-dev Skips — no update
v2.3.0 Updates alias to 2.4.x-dev Skips — no update
v3.0.0 Updates alias to 3.1.x-dev Updates alias to 3.x-dev
Original prompt

This section details on the original issue you should resolve

<issue_title>Don't update branch alias for minor or patch releases</issue_title>
<issue_description>When releasing for example v2.2.6 of a package, the branch alias should stay at 2.x-dev, not be bumped to 2.3.x or something.

Only when releasing v3.0 should it then be changed to 3.x-dev</issue_description>

Comments on the Issue (you are @copilot in this section)


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix branch alias for minor and patch releases Fix: Only update branch alias on major releases Mar 17, 2026
Copilot AI requested a review from swissspidy March 17, 2026 21:36
@swissspidy swissspidy marked this pull request as ready for review March 17, 2026 21:41
@swissspidy swissspidy requested a review from a team as a code owner March 17, 2026 21:41
Copilot AI review requested due to automatic review settings March 17, 2026 21:41

This comment was marked as resolved.

@swissspidy

This comment was marked as resolved.

Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>

This comment was marked as resolved.

Copilot AI requested a review from swissspidy March 17, 2026 21:50
@swissspidy swissspidy merged commit 0252b4e into main Mar 17, 2026
11 checks passed
@swissspidy swissspidy deleted the copilot/fix-branch-alias-updates branch March 17, 2026 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request scope:meta

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Don't update branch alias for minor or patch releases

3 participants