From cee6be434b64af0a1cc3b4765b72e507bc42827b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=83=E5=87=9B?= Date: Sun, 2 May 2021 22:21:26 +0800 Subject: [PATCH] fix: query bug --- dist/index.js | 2 +- src/main.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index dd26b58..ba065d8 100644 --- a/dist/index.js +++ b/dist/index.js @@ -7398,7 +7398,7 @@ async function run() { (result.commitState === 'success' || result.commitState === 'pending') && !result.ifCIHasFailure ) { - const onePR = await getOnePR(owner, repo, it.number); + const onePR = await getOnePR(owner, repo, number); if (onePR.mergeable_state === 'dirty') { await doPRReview(owner, repo, number, 'REQUEST_CHANGES', conflictReviewBody); await doClosePR(owner, repo, number); diff --git a/src/main.js b/src/main.js index 4928fc7..8b763d4 100644 --- a/src/main.js +++ b/src/main.js @@ -104,7 +104,7 @@ async function run() { (result.commitState === 'success' || result.commitState === 'pending') && !result.ifCIHasFailure ) { - const onePR = await getOnePR(owner, repo, it.number); + const onePR = await getOnePR(owner, repo, number); if (onePR.mergeable_state === 'dirty') { await doPRReview(owner, repo, number, 'REQUEST_CHANGES', conflictReviewBody); await doClosePR(owner, repo, number);