Shared base object for a derived Check or Status result.
| 25 | * and whether the specified user is a member of the `googlers` organization. |
| 26 | */ |
| 27 | async function verifyGooglerOrgMembership( |
| 28 | client: AuthenticatedGithubClient, |
| 29 | username: string, |
| 30 | ): Promise<GooglerOrgVerificationResult> { |
| 31 | try { |
| 32 | const response = await client.orgs.checkMembershipForUser({org: 'googlers', username}); |
| 33 | if (response.url?.includes('/public_members/')) { |
| 34 | return {isMember: true, canVerifyOrg: false}; |
| 35 | } |
nothing calls this directly
no outgoing calls
no test coverage detected