* perf(ci): start source feedback early and diagnose stalled runs * fix(ci): verify workflow identities before main comparison limits * fix(ci): preserve diagnostics across passing checks and install failures * fix(ci): preserve ambiguous workflow run ordering * fix(ci): preserve failure-report candidate and request budgets * fix(ci): retain candidate errors while checking later main evidence * fix(ci): retain partial reports and require complete health scans * test(ci): prune stale fixtures and duplicated assumptions
17 lines
338 B
TypeScript
17 lines
338 B
TypeScript
export interface GitHubApiBudget {
|
|
requests: number;
|
|
startedAt: number;
|
|
limitMs: number;
|
|
}
|
|
|
|
export type GitHubApiRequest = (
|
|
method: string,
|
|
endpoint: string,
|
|
budget: GitHubApiBudget,
|
|
) => Promise<unknown>;
|
|
|
|
export function createGhApiRequest(options?: {
|
|
env?: NodeJS.ProcessEnv;
|
|
now?: () => number;
|
|
}): GitHubApiRequest;
|