Home / Function/ hasGithubCLI() — react Function Reference

hasGithubCLI() — react Function Reference

Architecture documentation for the hasGithubCLI() function in prepare-release.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  75446d2e_f8f9_2828_294c_8b7bff5cc39e["hasGithubCLI()"]
  497982e7_e1b1_28ad_fd0c_dc03591e3177["prepare-release.js"]
  75446d2e_f8f9_2828_294c_8b7bff5cc39e -->|defined in| 497982e7_e1b1_28ad_fd0c_dc03591e3177
  9e3c854f_4333_38e1_0e1c_40b1ff22730b["getCommitLog()"]
  9e3c854f_4333_38e1_0e1c_40b1ff22730b -->|calls| 75446d2e_f8f9_2828_294c_8b7bff5cc39e
  style 75446d2e_f8f9_2828_294c_8b7bff5cc39e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

scripts/devtools/prepare-release.js lines 134–140

async function hasGithubCLI() {
  try {
    await exec('which gh');
    return true;
  } catch (_) {}
  return false;
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does hasGithubCLI() do?
hasGithubCLI() is a function in the react codebase, defined in scripts/devtools/prepare-release.js.
Where is hasGithubCLI() defined?
hasGithubCLI() is defined in scripts/devtools/prepare-release.js at line 134.
What calls hasGithubCLI()?
hasGithubCLI() is called by 1 function(s): getCommitLog.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free