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

Function fetchFn

packages/backend/src/github.ts:223–227  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

221export const getRepoCollaborators = async (owner: string, repo: string, octokit: Octokit) => {
222 try {
223 const fetchFn = () => octokit.paginate(octokit.repos.listCollaborators, {
224 owner,
225 repo,
226 per_page: 100,
227 });
228
229 const collaborators = await fetchWithRetry(fetchFn, `repo ${owner}/${repo}`, logger);
230 return collaborators;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected