Build the --repo flag value: HOST/OWNER/REPO for GHE, OWNER/REPO for github.com
(ref: GhPRRef)
| 19 | |
| 20 | /** Build the --repo flag value: HOST/OWNER/REPO for GHE, OWNER/REPO for github.com */ |
| 21 | function repoFlag(ref: GhPRRef): string { |
| 22 | if (ref.host !== "github.com") { |
| 23 | return `${ref.host}/${ref.owner}/${ref.repo}`; |
| 24 | } |
| 25 | return `${ref.owner}/${ref.repo}`; |
| 26 | } |
| 27 | |
| 28 | /** Append --hostname to args for gh api / gh auth on GHE */ |
| 29 | function hostnameArgs(host: string, args: string[]): string[] { |
no outgoing calls
no test coverage detected