MCPcopy
hub / github.com/cursor/community-plugins / githubAuthHeaders

Function githubAuthHeaders

apps/cursor/src/lib/github-plugin/parse.ts:127–131  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

125}
126
127export function githubAuthHeaders(): Record<string, string> {
128 return process.env.GITHUB_TOKEN
129 ? { Authorization: `Bearer ${process.env.GITHUB_TOKEN}` }
130 : {};
131}
132
133const sleep = (ms: number) => new Promise((r) => setTimeout(r, ms));
134

Callers 3

cloneRepoFunction · 0.90
fetchGitHubTreeFunction · 0.85
fetchGitHubRepoMetaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected