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

Function getGitHubUserDetails

src/init/features/hosting/github.ts:549–555  ·  view source on GitHub ↗
(ghAccessToken: any)

Source from the content-addressed store, hash-verified

547}
548
549async function getGitHubUserDetails(ghAccessToken: any): Promise<Record<string, any>> {
550 // eslint-disable-next-line @typescript-eslint/no-explicit-any
551 const { body: ghUserDetails } = await githubApiClient.get<Record<string, any>>("/user", {
552 headers: { Authorization: `token ${ghAccessToken}`, "User-Agent": "Firebase CLI" },
553 });
554 return ghUserDetails;
555}
556
557async function getRepoDetails(repo: string, ghAccessToken: string) {
558 const { body } = await githubApiClient.get<{ default_branch: string; id: string }>(

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…