Loading .github/workflows/dismissed-review.yml +1 −1 Original line number Diff line number Diff line Loading @@ -49,7 +49,7 @@ jobs: repo: context.repo.repo, pull_number: pull_request.number })).filter(review => review.user.login == 'github-actions[bot]' && review.user?.login == 'github-actions[bot]' && review.state == 'DISMISSED' ).map(review => github.graphql(` mutation($node_id:ID!) { Loading ci/github-script/reviews.js +2 −2 Original line number Diff line number Diff line Loading @@ -12,7 +12,7 @@ async function dismissReviews({ github, context, dry }) { pull_number, }) ) .filter((review) => review.user.login === 'github-actions[bot]') .filter((review) => review.user?.login === 'github-actions[bot]') .map(async (review) => { if (review.state === 'CHANGES_REQUESTED') { await github.rest.pulls.dismissReview({ Loading Loading @@ -46,7 +46,7 @@ async function postReview({ github, context, core, dry, body }) { }) ).find( (review) => review.user.login === 'github-actions[bot]' && review.user?.login === 'github-actions[bot]' && // If a review is still pending, we can just update this instead // of posting a new one. (review.state === 'CHANGES_REQUESTED' || Loading Loading
.github/workflows/dismissed-review.yml +1 −1 Original line number Diff line number Diff line Loading @@ -49,7 +49,7 @@ jobs: repo: context.repo.repo, pull_number: pull_request.number })).filter(review => review.user.login == 'github-actions[bot]' && review.user?.login == 'github-actions[bot]' && review.state == 'DISMISSED' ).map(review => github.graphql(` mutation($node_id:ID!) { Loading
ci/github-script/reviews.js +2 −2 Original line number Diff line number Diff line Loading @@ -12,7 +12,7 @@ async function dismissReviews({ github, context, dry }) { pull_number, }) ) .filter((review) => review.user.login === 'github-actions[bot]') .filter((review) => review.user?.login === 'github-actions[bot]') .map(async (review) => { if (review.state === 'CHANGES_REQUESTED') { await github.rest.pulls.dismissReview({ Loading Loading @@ -46,7 +46,7 @@ async function postReview({ github, context, core, dry, body }) { }) ).find( (review) => review.user.login === 'github-actions[bot]' && review.user?.login === 'github-actions[bot]' && // If a review is still pending, we can just update this instead // of posting a new one. (review.state === 'CHANGES_REQUESTED' || Loading