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

Function createRESTClientForHost

pkg/parser/remote_fetch.go:958–964  ·  view source on GitHub ↗
(host string)

Source from the content-addressed store, hash-verified

956}
957
958func createRESTClientForHost(host string) (*api.RESTClient, error) {
959 opts := api.ClientOptions{Timeout: constants.DefaultHTTPClientTimeout}
960 if host != "" {
961 opts.Host = host
962 }
963 return api.NewRESTClient(opts)
964}
965
966func buildContentsAPIPath(owner, repo, path, ref string) string {
967 pathSegments := strings.Split(path, "/")

Callers 5

listWorkflowFilesForHostFunction · 0.85
listDirAllFilesForHostFunction · 0.85
listDirSubdirsForHostFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected