MCPcopy Create free account
hub / github.com/github/gh-aw / fetchRemoteFileContent

Function fetchRemoteFileContent

pkg/parser/remote_fetch.go:980–982  ·  view source on GitHub ↗
(client *api.RESTClient, owner, repo, path, ref string, fileContent any)

Source from the content-addressed store, hash-verified

978}
979
980func 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

Callers 1

Calls 2

buildContentsAPIPathFunction · 0.85
GetMethod · 0.45

Tested by

no test coverage detected