MCPcopy Create free account
hub / github.com/anomalyco/opencode-bench / getRequestClient

Function getRequestClient

src/util/github.ts:7–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5let client: ReturnType<typeof octokitRequest.defaults>;
6
7function getRequestClient() {
8 if (client) return client;
9 client = octokitRequest.defaults({
10 headers: {
11 "user-agent": "opencode-bench",
12 authorization: `Bearer ${process.env.GITHUB_TOKEN?.trim()}`,
13 },
14 });
15 return client;
16}
17
18export async function fetchComparisonDiff(
19 owner: string,

Callers 2

fetchComparisonDiffFunction · 0.85
fetchCommitsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected