File tree 2 files changed +12
-7
lines changed
.github/local-actions/branch-manager
2 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -68178,9 +68178,12 @@ var Validation5 = class extends PullRequestValidation {
68178
68178
68179
68179
//
68180
68180
async function isGooglerOrgMember(client, username) {
68181
- const response = await client.orgs.checkMembershipForUser({ org: "googlers", username });
68182
- if (response.status === 204) {
68183
- return true;
68181
+ try {
68182
+ const response = await client.orgs.checkMembershipForUser({ org: "googlers", username });
68183
+ if (response.status === 204) {
68184
+ return true;
68185
+ }
68186
+ } catch {
68184
68187
}
68185
68188
return false;
68186
68189
}
Original file line number Diff line number Diff line change @@ -14,10 +14,12 @@ async function isGooglerOrgMember(
14
14
client : AuthenticatedGithubClient ,
15
15
username : string ,
16
16
) : Promise < boolean > {
17
- const response = await client . orgs . checkMembershipForUser ( { org : 'googlers' , username} ) ;
18
- if ( ( response . status as number ) === 204 ) {
19
- return true ;
20
- }
17
+ try {
18
+ const response = await client . orgs . checkMembershipForUser ( { org : 'googlers' , username} ) ;
19
+ if ( ( response . status as number ) === 204 ) {
20
+ return true ;
21
+ }
22
+ } catch { }
21
23
return false ;
22
24
}
23
25
You can’t perform that action at this time.
0 commit comments