Skip to content

Commit

Permalink
Fix approval selection logic
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Nied <[email protected]>
  • Loading branch information
peternied committed Jan 9, 2024
1 parent dd311ab commit 65f26b5
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 @@ -36747,7 +36747,7 @@ async function run() {
for await (const { data: reviews } of allReviews) {
console.debug(`listReviews paged response response:\n ${JSON.stringify(reviews)}`);
for (const review of reviews) {
if (review => review.state === 'APPROVED' && review.user?.login) {
if (review.state === 'APPROVED' && review.user?.login) {
approvers.push(review.user?.login)
}
}
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ async function run() {
for await (const { data: reviews } of allReviews) {
console.debug(`listReviews paged response response:\n ${JSON.stringify(reviews)}`);
for (const review of reviews) {
if (review => review.state === 'APPROVED' && review.user?.login) {
if (review.state === 'APPROVED' && review.user?.login) {
approvers.push(review.user?.login)
}
}
Expand Down

0 comments on commit 65f26b5

Please sign in to comment.