(hostname string, transport http.RoundTripper)
| 254 | } |
| 255 | |
| 256 | func clientOptions(hostname string, transport http.RoundTripper) ghAPI.ClientOptions { |
| 257 | // AuthToken, and Headers are being handled by transport, |
| 258 | // so let go-gh know that it does not need to resolve them. |
| 259 | opts := ghAPI.ClientOptions{ |
| 260 | AuthToken: "none", |
| 261 | Headers: map[string]string{ |
| 262 | authorization: "", |
| 263 | apiVersion: apiVersionValue, |
| 264 | }, |
| 265 | Host: hostname, |
| 266 | SkipDefaultHeaders: true, |
| 267 | Transport: transport, |
| 268 | LogIgnoreEnv: true, |
| 269 | } |
| 270 | return opts |
| 271 | } |
no outgoing calls
no test coverage detected