Skip to content

Commit 6926c6a

Browse files
committed
chore: remove pr owner from reviewer list
1 parent 1cc5525 commit 6926c6a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

index.js

+5
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ try {
3434
exit(1);
3535
}
3636

37+
// pull requese owner cann't be assigned as a reviews.
38+
reviewers = reviewers.filter(function (value, index, arr) {
39+
return value !== github.context.payload.pull_request.user.login;
40+
});
41+
3742
/**
3843
* lan could be empty.
3944
* Set bash as default on Linux & Mac.

0 commit comments

Comments
 (0)