Skip to content

Wait for GitHub mergeability - #9

Merged
timkpaine merged 1 commit into
mainfrom
agent/wait-for-mergeability
Aug 11, 2026
Merged

timkpaine merged 1 commit into
mainfrom
agent/wait-for-mergeability

Conversation

@timkpaine

Copy link
Copy Markdown
Member

Fixes batch automerge when an earlier pull request changes the base branch.

PRs timkpaine/jupyterlab-iframe#207 and #209 were approved and green, but became behind main after #208 merged. Their test merge refs were generated only when the App evaluated them. GitHub calculates that mergeability asynchronously and initially returns mergeable: null; the App immediately attempted the merge and GitHub rejected it.

This change polls pull request state once per second until GitHub reports mergeability, with a 10-second cap that leaves room for the existing label grace period inside Cloudflare's background-processing limit. Conflicting pull requests remain open. Check gating, label cancellation, and SHA-pinned merge requests are unchanged.

Validated with npm run check, npm run format:check, npm test (44 tests), and npm run build.

Signed-off-by: Tim Paine <3105306+timkpaine@users.noreply.github.com>
@timkpaine
timkpaine marked this pull request as ready for review August 11, 2026 21:09
@timkpaine
timkpaine merged commit 97fe371 into main Aug 11, 2026
1 check passed
@timkpaine
timkpaine deleted the agent/wait-for-mergeability branch August 11, 2026 21:09
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