Skip to content

Commit

Permalink
fix(ci): remove pr author from review candidates (#4023)
Browse files Browse the repository at this point in the history
  • Loading branch information
dqhl76 authored Jan 19, 2024
1 parent 76bbb3f commit 1795da7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/scripts/assign_reviewers.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@ const candidates = [

async function run(github, context, core, fs) {
try {
// remove PR author from candidates
const requesterUsername = context.payload.sender.login;
const index = candidates.indexOf(requesterUsername);
if (index > -1) {
candidates.splice(index, 1);
}

// Pick two reviewers from list
const numberOfReviewers = 2;
const repo = context.repo;
Expand Down

0 comments on commit 1795da7

Please sign in to comment.