Skip to content

fix(github): merge PRs in a native stack through the async endpoint - #6

Merged
mhvelplund merged 1 commit into
mainfrom
github-async-merge
Oct 25, 2026
Merged

mhvelplund merged 1 commit into
mainfrom
github-async-merge

Conversation

@mhvelplund

@mhvelplund mhvelplund commented Oct 25, 2026 •

Copy link
Copy Markdown
Owner

GitHub refuses PUT /pulls/{n}/merge for a PR in a native stack ("Merging
stacked PRs via this endpoint is not supported"), so git stack merge
failed on every stack that submit had registered. Merge now checks
whether the PR is in a stack and, if so, submits it to the async merge
endpoint and polls until GitHub reports it merged, enqueued or failed.

🤖 Generated with Claude Code

https://claude.ai/code/session_01K2ffjZ98kNMDjtSLJKwF2t


Stack (managed by git stack)

@mhvelplund
mhvelplund added this pull request to stack #5 October 25, 2026 09:32
@mhvelplund
mhvelplund marked this pull request as ready for review October 25, 2026 09:41
@mhvelplund
mhvelplund force-pushed the github-async-merge branch 2 times, most recently from c6be4b5 to 9442b62 Compare October 25, 2026 09:42
Base automatically changed from cz-release to main October 25, 2026 09:43
GitHub refuses PUT /pulls/{n}/merge for a PR in a native stack ("Merging
stacked PRs via this endpoint is not supported"), so `git stack merge`
failed on every stack that `submit` had registered. Merge now checks
whether the PR is in a stack and, if so, submits it to the async merge
endpoint and polls until GitHub reports it merged, enqueued or failed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01K2ffjZ98kNMDjtSLJKwF2t
@mhvelplund
mhvelplund merged commit 08cbf8e into main Oct 25, 2026
1 check passed
@mhvelplund
mhvelplund deleted the github-async-merge branch October 25, 2026 09:43
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