MCPcopy
hub / github.com/opactorai/Claudable / getGithubUser

Function getGithubUser

lib/services/github.ts:65–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

63}
64
65export async function getGithubUser(): Promise<GitHubUserInfo> {
66 const token = await getPlainServiceToken('github');
67 if (!token) {
68 throw new GitHubError('GitHub token not configured', 401);
69 }
70
71 const data = (await githubFetch(token, '/user')) as any;
72 return {
73 login: data.login,
74 name: data.name,
75 email: data.email,
76 };
77}
78
79export async function checkRepositoryAvailability(repoName: string) {
80 const token = await getPlainServiceToken('github');

Callers 4

POSTFunction · 0.90
connectProjectToGitHubFunction · 0.85
pushProjectToGitHubFunction · 0.85

Calls 2

getPlainServiceTokenFunction · 0.90
githubFetchFunction · 0.85

Tested by

no test coverage detected