You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(queue): stop the reopen-reclose webhook pass on actuation-lock contention
maybeRecloseDisallowedReopen returned a plain false on lock contention,
which the caller's boolean contract read as 'not blocked, proceed to
normal re-review' — a contended webhook could still evaluate/mutate
the same PR the lock holder owns. Replace the boolean with a tri-state
ReopenRecloseOutcome (reclosed / allowed / lock_contended) so the
caller skips the re-review on contention too.
const audit = await env.DB.prepare("select count(*) as n from audit_events where event_type = ?").bind("github_app.reopen_reclosed").first<{ n: number }>();
11798
11803
expect(audit?.n).toBe(0); // no decision recorded either way — the in-flight delivery owns this pass
11804
+
expect(resolveSettingsSpy).not.toHaveBeenCalled(); // the normal re-review pass never started
11799
11805
});
11800
11806
11801
11807
it("does NOT re-close a disallowed reopen on an OBSERVE-only / un-opted-in repo (autonomy floor, #review-audit)", async () => {
0 commit comments