Skip to main content

run_gh

Function run_gh 

Source
async fn run_gh<S: BuildHasher>(
    cwd: &Path,
    env: &HashMap<String, String, S>,
    args: &[&str],
    not_found: GhNotFound,
    budget: Duration,
) -> GitOutput
Expand description

Spawn gh <args> from cwd (gh derives the github repo from the current working directory - there’s no -C equivalent), carrying env as the project’s own identity. Mirrors run_git’s timeout / classification / DEBUG logging so failures distinguish “gh: command not found” (binary missing) from “gh: To use GitHub CLI in a Git repository, please run …” (not a github remote) from “no pull requests found” (legitimate empty result) when triaging “PR row never shows”.