diff --git a/dist/index.js b/dist/index.js index 0f2d902..0ef694a 100644 --- a/dist/index.js +++ b/dist/index.js @@ -36735,7 +36735,7 @@ async function run() { console.log(`mockApproversString: '${mockApproversString}'`); let pullRequestApprovers; - if (mockApproversString !== "") { + if (mockApproversString.length == 0) { const client = github.getOctokit(token); const { data: reviewers } = await client.rest.pulls.listReviews({ pull_number: pullRequestId, diff --git a/index.js b/index.js index 59a4d9a..e3887be 100644 --- a/index.js +++ b/index.js @@ -26,7 +26,7 @@ async function run() { console.log(`mockApproversString: '${mockApproversString}'`); let pullRequestApprovers; - if (mockApproversString !== "") { + if (mockApproversString.length == 0) { const client = github.getOctokit(token); const { data: reviewers } = await client.rest.pulls.listReviews({ pull_number: pullRequestId,