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

Function hostnameArgs

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

Append --hostname to args for gh api / gh auth on GHE

(host: string, args: string[])

Source from the content-addressed store, hash-verified

27
28/** Append --hostname to args for gh api / gh auth on GHE */
29function 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

Callers 9

checkGhAuthFunction · 0.85
getGhUserFunction · 0.85
fetchGhPRFunction · 0.85
fetchGhThreadsAndBotsFunction · 0.85
fetchGhPRFileContentFunction · 0.85
fetchGhPRViewedFilesFunction · 0.85
markGhFilesViewedFunction · 0.85
submitGhPRReviewFunction · 0.85
queryPRsByRefFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected