(auth?: string)
| 3 | |
| 4 | // eslint-disable-next-line @typescript-eslint/explicit-function-return-type |
| 5 | export const createGithubClient = (auth?: string) => { |
| 6 | const octokit = new Octokit({ |
| 7 | auth, |
| 8 | request: { |
| 9 | fetch: ky, |
| 10 | }, |
| 11 | }); |
| 12 | |
| 13 | return octokit.request; |
| 14 | }; |
| 15 | |
| 16 | export type GithubClient = ReturnType<typeof createGithubClient>; |
no outgoing calls
no test coverage detected