MCPcopy Create free account
hub / github.com/Devographics/Monorepo / getOctokit

Function getOctokit

api/src/external_apis/github.ts:42–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40
41let octokit: Octokit
42export const getOctokit = () => {
43 if (!octokit) {
44 octokit = new Octokit({
45 auth: getEnvVar(EnvVar.GITHUB_TOKEN, { hardFail: true, calledFrom: 'getOctokit' })
46 })
47 }
48 return octokit
49}
50export const listGitHubFiles = async ({
51 owner,
52 repo,

Callers 5

loadEntitiesFromGitHubFunction · 0.90
listGitHubFilesFunction · 0.85
getRepoSHAFunction · 0.85

Calls 1

getEnvVarFunction · 0.90

Tested by

no test coverage detected