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,