Skip to content

Commit

Permalink
yet another refactor on mockApproversString evaulation
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 95feb25 commit f6b265b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f6b265b

Please sign in to comment.