From 1077d2d97ea8210fc8d210fcca5db961b516a55e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20P=C4=99dzich?= Date: Sun, 2 Oct 2022 18:44:53 +0200 Subject: [PATCH] Add review presence and CHANGES_REQUESTED check --- bot.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.ts b/bot.ts index f393690..bd486c0 100644 --- a/bot.ts +++ b/bot.ts @@ -165,7 +165,7 @@ const bot: ApplicationFunction = (app) => { if ( renameRequiredText === '' && notFoundText === '' && - existingReview?.state !== 'APPROVED' + existingReview?.state === 'CHANGES_REQUESTED' ) { await context.octokit.pulls.dismissReview({ ...workingRepo,