From eff43cda336a39896fd03966642576193eb41550 Mon Sep 17 00:00:00 2001 From: Peter Nied Date: Thu, 7 Dec 2023 11:39:18 -0600 Subject: [PATCH] Cleanup lingering typos Signed-off-by: Peter Nied --- dist/index.js | 5 ++--- index.js | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/dist/index.js b/dist/index.js index 0ef694a..3c03cda 100644 --- a/dist/index.js +++ b/dist/index.js @@ -36733,7 +36733,6 @@ async function run() { const requiredApprovers = core.getInput('required-approvers-list', { required: true })?.split(',').map(s => s.trim()).filter(a => a.length != 0); const mockApproversString = core.getInput('mock-approvers', { required: false, trimWhitespace: false }); - console.log(`mockApproversString: '${mockApproversString}'`); let pullRequestApprovers; if (mockApproversString.length == 0) { const client = github.getOctokit(token); @@ -36747,7 +36746,7 @@ async function run() { const approvers = reviewers .filter(reviewer => reviewer.state === 'APPROVED' && reviewer.user?.login) .map(reviewer => reviewer.user?.login) - console.log(`filered to approvers:\n ${JSON.stringify(approvers)}`); + console.log(`filtered to approvers:\n ${JSON.stringify(approvers)}`); pullRequestApprovers = approvers; } else { @@ -36765,7 +36764,7 @@ async function run() { if (acceptedApprovers.length < minRequired) { core.setFailed(`Not enough approvals; has ${acceptedApprovers.length} where ${minRequired} approvals are required.`); } else { - core.info(`Meets minimum number of approvals requirement with ${acceptedApprovers.length} approvals`); + core.info(`Meets minimum number of approvals requirement with ${acceptedApprovers.length} approvals`); } } diff --git a/index.js b/index.js index e3887be..cb9d475 100644 --- a/index.js +++ b/index.js @@ -24,7 +24,6 @@ async function run() { const requiredApprovers = core.getInput('required-approvers-list', { required: true })?.split(',').map(s => s.trim()).filter(a => a.length != 0); const mockApproversString = core.getInput('mock-approvers', { required: false, trimWhitespace: false }); - console.log(`mockApproversString: '${mockApproversString}'`); let pullRequestApprovers; if (mockApproversString.length == 0) { const client = github.getOctokit(token); @@ -38,7 +37,7 @@ async function run() { const approvers = reviewers .filter(reviewer => reviewer.state === 'APPROVED' && reviewer.user?.login) .map(reviewer => reviewer.user?.login) - console.log(`filered to approvers:\n ${JSON.stringify(approvers)}`); + console.log(`filtered to approvers:\n ${JSON.stringify(approvers)}`); pullRequestApprovers = approvers; } else { @@ -56,7 +55,7 @@ async function run() { if (acceptedApprovers.length < minRequired) { core.setFailed(`Not enough approvals; has ${acceptedApprovers.length} where ${minRequired} approvals are required.`); } else { - core.info(`Meets minimum number of approvals requirement with ${acceptedApprovers.length} approvals`); + core.info(`Meets minimum number of approvals requirement with ${acceptedApprovers.length} approvals`); } }