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

Function getRepoDetails

src/init/features/hosting/github.ts:557–565  ·  view source on GitHub ↗
(repo: string, ghAccessToken: string)

Source from the content-addressed store, hash-verified

555}
556
557async function getRepoDetails(repo: string, ghAccessToken: string) {
558 const { body } = await githubApiClient.get<{ default_branch: string; id: string }>(
559 `/repos/${repo}`,
560 {
561 headers: { Authorization: `token ${ghAccessToken}`, "User-Agent": "Firebase CLI" },
562 },
563 );
564 return body;
565}
566
567async function signInWithGitHub() {
568 return await loginGithub();

Callers 1

initGitHubFunction · 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…