()
| 40 | |
| 41 | let octokit: Octokit |
| 42 | export 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 | } |
| 50 | export const listGitHubFiles = async ({ |
| 51 | owner, |
| 52 | repo, |
no test coverage detected