(hostname string, transport http.RoundTripper)
| 413 | } |
| 414 | |
| 415 | func clientOptions(hostname string, transport http.RoundTripper) ghAPI.ClientOptions { |
| 416 | // AuthToken, and Headers are being handled by transport, |
| 417 | // so let go-gh know that it does not need to resolve them. |
| 418 | opts := ghAPI.ClientOptions{ |
| 419 | AuthToken: "none", |
| 420 | Headers: map[string]string{ |
| 421 | authorization: "", |
| 422 | apiVersion: apiVersionValue, |
| 423 | }, |
| 424 | Host: hostname, |
| 425 | SkipDefaultHeaders: true, |
| 426 | Transport: transport, |
| 427 | LogIgnoreEnv: true, |
| 428 | } |
| 429 | return opts |
| 430 | } |
no outgoing calls
no test coverage detected