Repository navigation
fix(previews): reap unlabelled stages and stop skipped runs cancelling teardown - #1586
Merged
Merged
Maple Review Bot / Maple / review
succeeded
Oct 19, 2026 in 31s
Confidence 10/10 · No issues found
🟢 Confidence 10/10 · safe to merge
The one change since the last review, actions: read, is exactly the scope the stage sweep's workflow-run lookup needs, and nothing else calls it.
no findings · tests covered · risk medium
Preview sweeps now treat "open but unlabelled" as retired, skipped preview runs get their own concurrency group so they cannot cancel a teardown, and the live cap drops to 3. Safe to merge: the earlier 403 is fixed by actions: read.
previewStateOfreturnsretiredfor an open PR without thepreviewlabeldeploy-pr-previewconcurrency group is per-PR only for runs that deploy or tear downcleanup-preview-orphansgrantsactions: readso the stage sweep can list preview runs
What was checked
actions: readcoversGET /repos/{repo}/actions/workflows/deploy-pr-preview.yml/runs(pr-state.ts:38), and onlypreview-stage-orphan-sweep.ts:304callshasActivePreviewRun- The concurrency test matches the job
ifforclosed,unlabeledand labelled pushes; a missinglabel.nameyields false, not an error - CI's plan-tests step runs
pr-state.test.tsunderbun:test, and its assertions matchpreviewStateOf
87c2df6 · Updated on every push. Reply "won't fix" to dismiss a finding, or mention @maple-review-bot to ask about one.
Loading