Commit 28c25f3
ci: add silent-close shim to altimate-qa watchdog (#1930)
Cross-repo notification shim that fires a `repository_dispatch` to
AltimateAI/altimate-qa whenever a PR closes here, so the silent-close
watchdog can react in seconds instead of waiting up to 5 minutes for
its cron tick.
What this is
------------
- Triggers on `pull_request: closed` events.
- Sends `event_type=pr-closed` with `{repo, pr_number, closed_by,
was_merged, title}` payload to AltimateAI/altimate-qa.
- Self-disables (warning, exit 0) if `AUTOPILOT_DISPATCH_TOKEN` is
not set on this repo. Never fails the PR.
Why
---
Reference incident: 2026-04-29 12:24 UTC silent bulk-close (47 PRs in
90s, 6 fix PRs lost). The watchdog already existed but ran on a 5-min
cron — up to 5 minutes of fix-PR loss before the reopener fired. This
shim closes that gap to ~20s end-to-end.
The receiving end is altimate-qa PR #366
(feat/silent-close-webhook-shims): adds a `repository_dispatch`
trigger to silent-close-watchdog.yml and a `--single-pr` fast path in
the reopener script.
Setup needed
------------
After merge: add `AUTOPILOT_DISPATCH_TOKEN` (PAT or App token with
`repo` scope on AltimateAI/altimate-qa) to this repo's Actions
secrets at github.com/AltimateAI/<repo>/settings/secrets/actions.
Until that's done the workflow runs but exits early — no harm.
Test plan
---------
- [ ] After merge + secret set: force-close a test PR here, observe
a dispatch run on altimate-qa within ~20s
- [ ] Confirm the cron sweep on altimate-qa still runs (5-min
schedule unchanged) so partial rollouts don't break detection
Reference: AltimateAI/altimate-qa templates/cross-repo-shims/README.md
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent d8ebb4e commit 28c25f3
1 file changed
Lines changed: 67 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
0 commit comments