Post-merge cascading rebase runs when merging from the PR page, but not via the merge-async API — intended? #463
carrotRakko
started this conversation in
Feedback
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
TL;DR: After a partial merge (merging only the bottom PR of a stack), the automatic cascading rebase of the remaining PRs appears to depend on how the merge was performed: merging from the PR page triggers it; calling
PUT /repos/{o}/{r}/pulls/{n}/merge-asyncdirectly does not. Is this intended?What we observed (2026-08-22, private preview, 2-3 PR test stacks, squash merge)
Setup: stack
main <- PR-A <- PR-B(each PR adds a separate file, so no textual conflicts).Case 1 — merge bottom PR via the PR page ("Only this pull request will be merged"):
automatic_base_change_succeededfollowed byhead_ref_force_pushed.git rebase --onto), diff is clean, mergeable. 👏 This matches the FAQ: "the remaining stack is automatically rebased so the next PR targets your base branch directly."Case 2 — merge bottom PR via the
merge-asyncAPI (same stack shape,merge_method=squash, poll untilmerged):mainand the merged branch is deleted — but no cascading rebase runs (head SHA unchanged, checked over several minutes).This asymmetry seems to explain opposite reports in this forum: users merging from the UI experience automatic rebases (#458 asks to opt out, #460 reports approval dismissal), while API-driven workflows (ours is fully scripted around
merge-async) never see the auto-rebase and hit the stale-base state instead.Ask
merge-async. Given Don't automatically rebase #458 asks for the opposite (opt-out on the UI path), an explicit setting covering both paths consistently would serve everyone.Thanks for the preview — the atomic stack merge and the server-side rebase itself work beautifully; this is about making the two entry points consistent.
✍️ Author: Claude Code with @carrotRakko (AI-written, human-approved)
All reactions