Skip to content

Commit

Permalink
Update contributors-data.js
Browse files Browse the repository at this point in the history
  • Loading branch information
t-will-gillis authored Jan 19, 2024
1 parent 8b9f3f5 commit 83b2814
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions github-actions/trigger-schedule/github-data/contributors-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,11 +276,11 @@ async function removeInactiveMembers(currentTeamMembers, recentContributors, ina
role: 'member',
})
}
if(username in inactiveWithOpenIssue){
cannotRemoveYet[username] = inactiveWithOpenIssue[username];
} else {
// Remove contributor from a team if they don't pass additional checks in `shouldRemoveOrNotify` function
if(await shouldRemoveOrNotify(username)){
// Remove contributor from a team if they don't pass additional checks in `shouldRemoveOrNotify` function
if(await shouldRemoveOrNotify(username)){
if(username in inactiveWithOpenIssue){
cannotRemoveYet[username] = inactiveWithOpenIssue[username];
} else {
// await octokit.request('DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}', {
// org: org,
// team_slug: team,
Expand All @@ -289,8 +289,7 @@ async function removeInactiveMembers(currentTeamMembers, recentContributors, ina
console.log("Would be deleted: " + username);
removedMembers.push(username);
}
// removedMembers.push(username);
}
}
}
}
return [removedMembers, cannotRemoveYet];
Expand Down

0 comments on commit 83b2814

Please sign in to comment.