()
| 217 | |
| 218 | const { durationMs, data } = await measure(async () => { |
| 219 | const fetchFn = () => getPaginatedCloud<CloudRepository>(`/repositories/${workspace}` as CloudGetRequestPath, async (path, query) => { |
| 220 | const { data } = await client.apiClient.GET(path, { |
| 221 | params: { |
| 222 | path: { |
| 223 | workspace, |
| 224 | }, |
| 225 | query: query, |
| 226 | } |
| 227 | }); |
| 228 | return data; |
| 229 | }); |
| 230 | return fetchWithRetry(fetchFn, `workspace ${workspace}`, logger); |
| 231 | }); |
| 232 | logger.debug(`Found ${data.length} repos for workspace ${workspace} in ${durationMs}ms.`); |
nothing calls this directly
no test coverage detected