mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 11:58:17 +00:00
ci: add team reviewers (#21434)
Using team reviewers when possible reduces the churn on the git history as we'll be able to add or remove reviewers without needing to change the workflow files. This requires using Github fine-grained personal access tokens with Pull Requests set to "Read and write" and Members to "Read-only".
This commit is contained in:
4
.github/scripts/remove-reviewers.js
vendored
4
.github/scripts/remove-reviewers.js
vendored
@@ -6,11 +6,13 @@ module.exports = async ({github, context}) => {
|
||||
});
|
||||
|
||||
const reviewers = requestedReviewers.data.users.map(e => e.login)
|
||||
const team_reviewers = requestedReviewers.data.teams.map(e => e.name);
|
||||
|
||||
github.rest.pulls.removeRequestedReviewers({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
pull_number: context.issue.number,
|
||||
reviewers: reviewers
|
||||
reviewers: reviewers,
|
||||
team_reviewers: team_reviewers
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user