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);