Commit dd93974
committed
fix(auto-merge): wait for codex + copilot reviews before enabling
Previous trigger fired on pull_request: [opened], which raced ahead of
asynchronous bot reviews — auto-merge enabled within 9 seconds, required
CI completed in 2 minutes, but Copilot/codex reviews arrived later. PRs
merged before any review existed (PR 417 confirmed; PR 204 hit the same
path on AgentLint).
Switch to on: pull_request_review: [submitted] and gate auto-merge
enablement on both required bot reviewers having submitted at least one
review. Idempotent — re-firing on later reviews skips when auto-merge is
already enabled.1 parent e3ad8a6 commit dd93974
1 file changed
Lines changed: 38 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
3 | 12 | | |
4 | | - | |
5 | | - | |
| 13 | + | |
| 14 | + | |
6 | 15 | | |
7 | 16 | | |
8 | 17 | | |
| |||
11 | 20 | | |
12 | 21 | | |
13 | 22 | | |
14 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
15 | 26 | | |
| 27 | + | |
16 | 28 | | |
17 | | - | |
| 29 | + | |
18 | 30 | | |
19 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
0 commit comments