BUG: Revert [ci skip]
team_slug: 'staged-recipes',
username: context.payload.sender.login,
});
- const core_membership = github.rest.teams.getMembershipForUserInOrg({
- org: 'conda-forge',
- team_slug: 'core',
- username: context.payload.sender.login,
- });
- console.log(`Finished requests for ${context.payload.sender.login}`);
- return Promise.all([membership, core_membership]).then(
- (results) => {
- let is_allowed = false;
- for (const result of results){
+ return membership.then((result) => {
if (result.status == 200 && result.data.state == 'active'){
- is_allowed = true;
- } else if (result.status == 404){
- continue;
- }
+ return true;
+ } else {
+ console.log(result);
+ return false;
}
- if (!is_allowed){
- console.log(results);
- }
- return is_allowed;
- }
- );
-
+ });
- name: add-labels
if: >
(steps.check_team_review.outputs.result == 'true')
