()
| 5 | let client: ReturnType<typeof octokitRequest.defaults>; |
| 6 | |
| 7 | function 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 | |
| 18 | export async function fetchComparisonDiff( |
| 19 | owner: string, |
no outgoing calls
no test coverage detected