Skip to content

Commit

Permalink
chore: remove pr owner from reviewer list
Browse files Browse the repository at this point in the history
  • Loading branch information
LongOddCode committed Sep 28, 2021
1 parent 6926c6a commit 2a40cac
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,14 @@ try {
exit(1);
}

console.log(reviewers);

// pull requese owner cann't be assigned as a reviews.
reviewers = reviewers.filter(function (value, index, arr) {
reviewers = reviewers.filter(function (value) {
return value !== github.context.payload.pull_request.user.login;
});

console.log(reviewers);
/**
* lan could be empty.
* Set bash as default on Linux & Mac.
Expand Down

0 comments on commit 2a40cac

Please sign in to comment.