This is an automated email from the ASF dual-hosted git repository. potiuk pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/airflow-label-when-approved.git
commit 3393d807ee13fd674dec9dcbc52d84cdc7bd80dc Author: Jarek Potiuk <[email protected]> AuthorDate: Tue Oct 27 16:08:39 2020 +0100 Fix name of the state (#3) * Fix name of the state * fixup! Fix name of the state Co-authored-by: Tobiasz Kędzierski <[email protected]> --- dist/index.js | 2 +- src/main.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index a6f8087..b9ac4e2 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1554,7 +1554,7 @@ function processReviews(reviews, reviewers, committers, requireCommittersApprova } } for (const user in reviewStates) { - if (reviewStates[user] === 'REQUEST_CHANGES') { + if (reviewStates[user] === 'CHANGES_REQUESTED') { isApproved = false; break; } diff --git a/src/main.ts b/src/main.ts index 38679b8..12e0fea 100644 --- a/src/main.ts +++ b/src/main.ts @@ -119,7 +119,7 @@ function processReviews( } } for (const user in reviewStates) { - if (reviewStates[user] === 'REQUEST_CHANGES') { + if (reviewStates[user] === 'CHANGES_REQUESTED') { isApproved = false break }
