Skip to content

Commit

Permalink
ci: fix CTest bot
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrmacha committed Jun 18, 2024
1 parent 2daff87 commit cafc073
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/scripts/build-ctest-review.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,18 @@ module.exports = async ({github, context, pull_number, status, log}) => {
repo: context.repo.repo,
});

reviews.find(r => r.user.login ==='github-actions' && r.state === 'COMMENTED').forEach(r => {
github.rest.pulls.dismissReview({
pull_number: pull_number,
owner: context.repo.owner,
repo: context.repo.repo,
review_id: r.id
});
});
for (let review of reviews) {
if (review.user.login === 'github-actions' && review.state === 'COMMENTED') {
await github.rest.pulls.dismissReview({
pull_number: pull_number,
owner: context.repo.owner,
repo: context.repo.repo,
review_id: review.id
});
}
}

github.rest.pulls.createReview({
await github.rest.pulls.createReview({
pull_number: pull_number,
owner: context.repo.owner,
repo: context.repo.repo,
Expand Down

0 comments on commit cafc073

Please sign in to comment.