Add review presence and CHANGES_REQUESTED check

This commit is contained in:
Maciej Pędzich 2022-10-02 18:44:53 +02:00
parent 6245a39a82
commit 1077d2d97e

2
bot.ts
View File

@ -165,7 +165,7 @@ const bot: ApplicationFunction = (app) => {
if (
renameRequiredText === '' &&
notFoundText === '' &&
existingReview?.state !== 'APPROVED'
existingReview?.state === 'CHANGES_REQUESTED'
) {
await context.octokit.pulls.dismissReview({
...workingRepo,