(response: Response)
| 153 | } |
| 154 | |
| 155 | async function extractGitHubError(response: Response): Promise<string> { |
| 156 | let detail = `HTTP ${response.status}`; |
| 157 | try { |
| 158 | const body = (await response.json()) as { message?: string }; |
| 159 | if (body.message) detail += `: ${body.message}`; |
| 160 | } catch {} |
| 161 | return detail; |
| 162 | } |
| 163 | |
| 164 | async function fetchRepoTree( |
| 165 | owner: string, |
no outgoing calls
no test coverage detected