(client *api.RESTClient, owner, repo, path, ref string, fileContent any)
| 978 | } |
| 979 | |
| 980 | func fetchRemoteFileContent(client *api.RESTClient, owner, repo, path, ref string, fileContent any) error { |
| 981 | return client.Get(buildContentsAPIPath(owner, repo, path, ref), fileContent) |
| 982 | } |
| 983 | |
| 984 | // downloadFileViaPublicAPI downloads a file from a public GitHub repository |
| 985 | // using an unauthenticated API call. Used as a last-resort fallback when both |
no test coverage detected