Skip to content

fix(release-candidate): reuse a hotfix branch at its tip - #50

Merged
Troublor merged 1 commit into
mainfrom
mega-putin/fix/release-candidate-reuse-hotfix-tip
Sep 30, 2026
Merged

Troublor merged 1 commit into
mainfrom
mega-putin/fix/release-candidate-reuse-hotfix-tip

Conversation

@mega-putin

@mega-putin mega-putin Bot commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

Summary

When base_commit is set and release-vX.Y.Z already exists ahead of that commit (hotfix PRs merged), propose used to fail (branch already exists) or, on exact-SHA reuse, git checkout -B reset the job back to base_commit and dropped those commits.

Now:

  • Reuse if the branch tip is base_commit or a descendant of it; sit on the tip.
  • If the version file already reads the requested version, skip bump / bump_command / changelog (no empty candidate PR).
  • Still refuse a branch that does not contain base_commit, and refuse trunk-first when the branch already exists.

Test plan

  • actions-test.yml: same-SHA reuse still works; different non-descendant still refused; descendant tip is checked out
  • action_docs.py --check

If release-vX.Y.Z already moved past base_commit, propose from the tip
instead of failing or resetting. Skip the version bump when the file
already reads the requested version.
@Troublor
Troublor merged commit f01b9fa into main Sep 30, 2026
9 checks passed
@Troublor
Troublor deleted the mega-putin/fix/release-candidate-reuse-hotfix-tip branch September 30, 2026 01:37
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