This repository was archived by the owner on Aug 20, 2026. It is now read-only.
Commit bdd906d
committed
fix(ci): wait for a real check-run to register before requesting auto-merge
The App-token fix made this repo's own ci.yml pull_request checks genuinely
cascade, but gh pr merge --auto still ran immediately after opening the PR --
before GitHub had actually registered any check-run against it. GitHub's
enablePullRequestAutoMerge mutation rejects a PR it considers already
'clean', which a brand-new PR with zero registered checks trivially is,
regardless of whether checks are about to start. Confirmed happening in
production even with the App-token fix already live. This polls for
ci.yml's own Test check-run to actually appear (bounded at 90s) before
calling gh pr merge --auto, closing the race for real.1 parent 544de5e commit bdd906d
1 file changed
Lines changed: 16 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
63 | 78 | | |
64 | 79 | | |
65 | 80 | | |
| |||
0 commit comments