MCPcopy
hub / github.com/refined-github/refined-github / userIsAdmin

Function userIsAdmin

source/github-helpers/get-user-permission.ts:50–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48});
49
50export async function userIsAdmin(): Promise<boolean> {
51 const repoAccess = await viewerPermission.get();
52 return repoAccess === 'ADMIN';
53}
54
55/** Check if the user has complete write access to the repo (but no access to the repo Settings) */
56export async function userHasPushAccess(): Promise<boolean> {

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected