( owner: string, repo: string, branch: string, path: string, env: Env, useAuth = false, )
| 16 | * @returns File content or null if not found |
| 17 | */ |
| 18 | export async function fetchFileFromGitHub( |
| 19 | owner: string, |
| 20 | repo: string, |
| 21 | branch: string, |
| 22 | path: string, |
| 23 | env: Env, |
| 24 | useAuth = false, |
| 25 | ): Promise<string | null> { |
| 26 | return await fetchRawFile(owner, repo, branch, path, env, useAuth); |
| 27 | } |
| 28 | |
| 29 | export interface GitHubFile { |
| 30 | path: string; |
no test coverage detected