From b1230fb7abc44cd4d4318f4b3110d56211fc787a Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Mon, 10 May 2021 19:32:34 -0400 Subject: [PATCH] Only reevaluate if the requested reviewer is the bot --- .github/workflows/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/src/index.js b/.github/workflows/src/index.js index 77d8f325..fd2ab936 100644 --- a/.github/workflows/src/index.js +++ b/.github/workflows/src/index.js @@ -37,7 +37,7 @@ const BOT_ACCOUNT_LOGIN = "GitHub-Education-bot" ;(async ()=>{ - if(actionEvent.requestedReviewer.login === BOT_ACCOUNT_LOGIN) { + if(actionEvent.requestedReviewer.login !== BOT_ACCOUNT_LOGIN && actionEvent.name === "review_requested") { return true } -- knotmirror 0.0.1