MCPcopy Create free account
hub / github.com/firebase/firebase-tools / defaultGithubRepo

Function defaultGithubRepo

src/init/features/hosting/github.ts:245–256  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

243}
244
245function defaultGithubRepo(): string | undefined {
246 const gitConfigPath = path.join(GIT_DIR, "config");
247
248 if (fs.existsSync(gitConfigPath)) {
249 const gitConfig = fs.readFileSync(gitConfigPath, "utf8");
250 const match = /github\.com:(.+)\.git/.exec(gitConfig);
251 if (match) {
252 return match[1];
253 }
254 }
255 return undefined;
256}
257
258function loadYMLDeploy(): { exists: boolean; branch?: string } {
259 if (fs.existsSync(YML_FULL_PATH_MERGE)) {

Callers 1

promptForRepoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…