(host string)
| 956 | } |
| 957 | |
| 958 | func 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 | |
| 966 | func buildContentsAPIPath(owner, repo, path, ref string) string { |
| 967 | pathSegments := strings.Split(path, "/") |
no outgoing calls
no test coverage detected