Append --hostname to args for gh api / gh auth on GHE
(host: string, args: string[])
| 27 | |
| 28 | /** Append --hostname to args for gh api / gh auth on GHE */ |
| 29 | function hostnameArgs(host: string, args: string[]): string[] { |
| 30 | if (host !== "github.com") { |
| 31 | return [...args, "--hostname", host]; |
| 32 | } |
| 33 | return args; |
| 34 | } |
| 35 | |
| 36 | // --- Auth --- |
| 37 |
no outgoing calls
no test coverage detected