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

Method api

evals/src/core/github.ts:45–47  ·  view source on GitHub ↗
(method: string, path: string, body?: unknown)

Source from the content-addressed store, hash-verified

43 ) {}
44
45 async api<T>(method: string, path: string, body?: unknown): Promise<T> {
46 return (await this.page<T>(method, path, body)).body;
47 }
48
49 /** Whether an API error is transient for this route beyond the generic idempotent-retry rule. Subclasses add
50 * rules for APIs that document extra retryable responses. */

Callers 9

pullMethod · 0.95
github.test.tsFile · 0.80
harness.test.tsFile · 0.80
createSandboxFunction · 0.80
cleanupSandboxFunction · 0.80
provisionFunction · 0.80
seedSubscriptionsFunction · 0.80
cleanupFunction · 0.80
performMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected