Skip to content

Commit

Permalink
Cleanup lingering typos
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Nied <[email protected]>
  • Loading branch information
peternied committed Dec 7, 2023
1 parent f6b265b commit eff43cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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 {
Expand All @@ -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`);
}
}

Expand Down
5 changes: 2 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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 {
Expand All @@ -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`);
}
}

Expand Down

0 comments on commit eff43cd

Please sign in to comment.