MCPcopy Create free account
hub / github.com/backnotprop/plannotator / repoFlag

Function repoFlag

packages/shared/pr-github.ts:21–26  ·  view source on GitHub ↗

Build the --repo flag value: HOST/OWNER/REPO for GHE, OWNER/REPO for github.com

(ref: GhPRRef)

Source from the content-addressed store, hash-verified

19
20/** Build the --repo flag value: HOST/OWNER/REPO for GHE, OWNER/REPO for github.com */
21function 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 */
29function hostnameArgs(host: string, args: string[]): string[] {

Callers 3

fetchGhPRFunction · 0.85
fetchGhPRContextFunction · 0.85
fetchGhPRListFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected