Skip to content

ci: auto-open release/vX.Y on a new minor/major line#18

Merged
julian-goldstein merged 1 commit into
masterfrom
auto-release-branch
Jun 19, 2026
Merged

ci: auto-open release/vX.Y on a new minor/major line#18
julian-goldstein merged 1 commit into
masterfrom
auto-release-branch

Conversation

@julian-goldstein

Copy link
Copy Markdown
Contributor

What

After a publish on master, if it cut a new line (vX.Y.0), CI forks release/vX.Y at the same lock commit — so a back-port always has a branch to land on. Patches (vX.Y.Z, Z>0) and flavor builds don't open a line; existing branches are untouched.

This is only safe because of the earlier branch-creation guard — the auto-created branch's creation push is ignored by detect, so it can't cut a spurious release.

Also in this PR

  • Re-applies the versions.env comment fix that was dropped when ci: no publish on branch creation / empty commit range #17 merged (master still said "bumps it by 0.1").
  • README: documents auto-creation and corrects the back-patch section to "name-based" scoping (it still said "reachable on that branch").

Self-demonstrating

Merging this cuts v0.8.0 (unmarked → minor) and the new step then auto-opens release/v0.8.

After publishing, if master cut a new line (vX.Y.0), fork release/vX.Y at the
same lock commit so back-ports have a home. Patches (Z>0) and flavor builds
don't open a line; existing branches are left alone. Safe because the
branch-creation push is ignored by the detect guard (no spurious release).

Also re-applies the versions.env comment fix that was dropped when #17 merged,
and updates the README back-patch section (auto-creation + name-based scoping).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@julian-goldstein julian-goldstein added this pull request to the merge queue Jun 19, 2026
@julian-goldstein julian-goldstein removed this pull request from the merge queue due to a manual request Jun 19, 2026
@julian-goldstein julian-goldstein merged commit 0cf6515 into master Jun 19, 2026
1 check passed
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.

1 participant