MCPcopy Create free account
hub / github.com/ReviewStage/stage-cli / gh

Function gh

packages/cli/src/github/exec.ts:7–14  ·  view source on GitHub ↗
(args: string[], cwd: string)

Source from the content-addressed store, hash-verified

5const DEFAULT_GH_TIMEOUT_MS = 30_000;
6
7export interface GhExecOptions {
8 /** Bound a spawned `gh` process so passive review reads cannot hang the local UI. */
9 timeoutMs?: number;
10 /** Send structured mutation input without exposing large bodies in argv. */
11 stdin?: string;
12}
13
14async function execGh(args: string[], cwd: string, options: GhExecOptions): Promise<string> {
15 if (options.stdin !== undefined) {
16 return await new Promise((resolve, reject) => {
17 let stdinError: Error | undefined;

Callers 8

fetchRestPullRequestFunction · 0.85
getPullRequestFunction · 0.85
getCheckRunItemsFunction · 0.85
getDeploymentLinksFunction · 0.85
getReviewsFunction · 0.85
getMergeStatusFunction · 0.85
getGitHubViewerFunction · 0.85
ghPrViewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected