MCPcopy Create free account
hub / github.com/sourcebot-dev/sourcebot / fetchFn

Function fetchFn

packages/backend/src/bitbucket.ts:219–229  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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.`);

Callers

nothing calls this directly

Calls 2

getPaginatedCloudFunction · 0.85
getPaginatedServerFunction · 0.85

Tested by

no test coverage detected