fix(tools): handle when user is not in team (#52310)

This commit is contained in:
Naomi Carrigan
2023-11-09 21:21:50 -08:00
committed by GitHub
parent 77af2504e1
commit df3458f002

View File

@@ -32,7 +32,7 @@ jobs:
org: context.repo.owner,
team_slug: team,
username: prAuthor
});
}).catch(() => ({status: 404})));
if (response.status == 200) {
isAllowListed = true;
break;