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