ENH check for core too
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,
+ });
return membership.then((result) => {
if (result.status == 200 && result.data.state == 'active'){
return true;
+ } else {
+ console.log(result);
+ return core_membership.then((result) => {
+ if (result.status == 200 && result.data.state == 'active'){
+ return true;
} else {
console.log(result);
return false;
}
});
+ }
+ });
- name: add-labels
if: >
(steps.check_team_review.outputs.result == 'true')
