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

Method reviews

evals/src/core/github.ts:113–121  ·  view source on GitHub ↗
(repo: string, number: number)

Source from the content-addressed store, hash-verified

111 }
112
113 async reviews(repo: string, number: number): Promise<Review[]> {
114 const reviews: Review[] = [];
115 for (let page = 1; ; page++) {
116 const batch = await this.api<Review[]>("GET", `/repos/${repo}/pulls/${number}/reviews?per_page=100&page=${page}`);
117 if (!Array.isArray(batch)) throw new Error("Expected a reviews array");
118 reviews.push(...batch);
119 if (batch.length < 100) return reviews;
120 }
121 }
122
123 /** Reads a text file from a repository at a ref. */
124 async fileContent(repo: string, path: string, ref: string): Promise<string> {

Callers 2

mainFunction · 0.80
captureSnapshotFunction · 0.80

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected