mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 11:15:14 -07:00
dd81e1e334
Mostly rename file and variable names to be more consistent. This makes it easier to locate them in the "Actions" tab on github.
17 lines
487 B
JavaScript
17 lines
487 B
JavaScript
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,
|
|
});
|
|
|
|
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,
|
|
});
|
|
};
|