MCPcopy Create free account
hub / github.com/cli/cli / transient

Method transient

evals/src/suites/events/github.ts:24–28  ·  view source on GitHub ↗
(method: string, path: string, status: number)

Source from the content-addressed store, hash-verified

22 // answers a valid listing with a generic 404. A listing can never be legitimately missing, so treat that as
23 // transient; a 404 for a single subscription still means it is gone.
24 protected override transient(method: string, path: string, status: number): boolean {
25 if (!path.startsWith("/event-subscriptions")) return false;
26 const listing = method === "GET" && /^\/event-subscriptions(\?|$)/.test(path);
27 return status === 503 || status === 504 || (listing && status === 404);
28 }
29
30 /**
31 * Returns the caller's subscription for exactly this PR and event-type set, creating it if absent.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected