Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/react/react
/ hasGithubCLI
Function
hasGithubCLI
scripts/devtools/prepare-release.js:134–140 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
132
}
133
134
async
function
hasGithubCLI() {
135
try {
136
await
exec(
'which gh'
);
137
return
true;
138
} catch (_) {}
139
return
false;
140
}
141
142
async
function
getPreviousCommitSha() {
143
const
choices = [];
Callers
1
getCommitLog
Function · 0.85
Calls
1
exec
Function · 0.85
Tested by
no test coverage detected