aboutsummaryrefslogtreecommitdiff
path: root/.github/scripts/remove-reviewers.js
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2023-04-22 13:50:27 +0200
committerGitHub <noreply@github.com>2023-04-22 13:50:27 +0200
commit669030ec08042e41d57f74adb4abb836c387930a (patch)
tree4df0d816fc120ffcb038fe31f6cec0e8bab9dcf9 /.github/scripts/remove-reviewers.js
parent515106ac08c4159bfdf855ad05c37e04ec4b5ef5 (diff)
downloadrneovim-669030ec08042e41d57f74adb4abb836c387930a.tar.gz
rneovim-669030ec08042e41d57f74adb4abb836c387930a.tar.bz2
rneovim-669030ec08042e41d57f74adb4abb836c387930a.zip
ci: remove team reviewers
Team reviewers is a nice feature that comes with a severe drawback: it makes testing the workflows incredibly difficult as they won't work without a similar token by the tester.
Diffstat (limited to '.github/scripts/remove-reviewers.js')
-rw-r--r--.github/scripts/remove-reviewers.js10
1 files changed, 4 insertions, 6 deletions
diff --git a/.github/scripts/remove-reviewers.js b/.github/scripts/remove-reviewers.js
index 40a8eca423..9e44e4ac86 100644
--- a/.github/scripts/remove-reviewers.js
+++ b/.github/scripts/remove-reviewers.js
@@ -1,18 +1,16 @@
-module.exports = async ({github, context}) => {
+module.exports = async ({ github, context }) => {
const requestedReviewers = await github.rest.pulls.listRequestedReviewers({
owner: context.repo.owner,
repo: context.repo.repo,
- pull_number: context.issue.number
+ pull_number: context.issue.number,
});
- const reviewers = requestedReviewers.data.users.map(e => e.login)
- const team_reviewers = requestedReviewers.data.teams.map(e => e.name);
+ const reviewers = requestedReviewers.data.users.map((e) => e.login);
github.rest.pulls.removeRequestedReviewers({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.issue.number,
reviewers: reviewers,
- team_reviewers: team_reviewers
});
-}
+};