mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 11:15:14 -07:00
ci: update reviewers
This commit is contained in:
parent
9f0762f1fe
commit
a647cfcbcb
8
.github/scripts/reviews.js
vendored
8
.github/scripts/reviews.js
vendored
@ -5,10 +5,11 @@ module.exports = async ({ github, context }) => {
|
|||||||
pull_number: context.issue.number,
|
pull_number: context.issue.number,
|
||||||
});
|
});
|
||||||
const labels = pr_data.data.labels.map((e) => e.name);
|
const labels = pr_data.data.labels.map((e) => e.name);
|
||||||
|
|
||||||
const reviewers = new Set();
|
const reviewers = new Set();
|
||||||
|
|
||||||
if (labels.includes("api")) {
|
if (labels.includes("api")) {
|
||||||
reviewers.add("bfredl");
|
reviewers.add("bfredl");
|
||||||
|
reviewers.add("famiu");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (labels.includes("build")) {
|
if (labels.includes("build")) {
|
||||||
@ -72,6 +73,10 @@ module.exports = async ({ github, context }) => {
|
|||||||
reviewers.add("justinmk");
|
reviewers.add("justinmk");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (labels.includes("statusline")) {
|
||||||
|
reviewers.add("famiu");
|
||||||
|
}
|
||||||
|
|
||||||
if (labels.includes("test")) {
|
if (labels.includes("test")) {
|
||||||
reviewers.add("justinmk");
|
reviewers.add("justinmk");
|
||||||
}
|
}
|
||||||
@ -88,6 +93,7 @@ module.exports = async ({ github, context }) => {
|
|||||||
|
|
||||||
if (labels.includes("ui")) {
|
if (labels.includes("ui")) {
|
||||||
reviewers.add("bfredl");
|
reviewers.add("bfredl");
|
||||||
|
reviewers.add("famiu");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (labels.includes("vim-patch")) {
|
if (labels.includes("vim-patch")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user