From 079f9a537d968d7f48a81c04c6f93b5e12b602d1 Mon Sep 17 00:00:00 2001 From: Quantum Explorer Date: Wed, 5 Aug 2026 11:35:21 +0700 Subject: [PATCH] ci: remove the CodeRabbit/PastaClaw AI review gate The check failed on every PR until one of the two bots happened to submit a review, which left PRs sitting red for reasons unrelated to their contents. It is not a required status check in branch protection or in any ruleset, so removing it does not leave PRs waiting on a missing context. Co-Authored-By: Claude Opus 5 --- .github/workflows/pr-ai-review.yml | 55 ------------------------------ 1 file changed, 55 deletions(-) delete mode 100644 .github/workflows/pr-ai-review.yml diff --git a/.github/workflows/pr-ai-review.yml b/.github/workflows/pr-ai-review.yml deleted file mode 100644 index f392b711f0f..00000000000 --- a/.github/workflows/pr-ai-review.yml +++ /dev/null @@ -1,55 +0,0 @@ -name: "AI Review" - -on: - pull_request: - types: - - opened - - reopened - - ready_for_review - - synchronize - pull_request_review: - types: - - submitted - -permissions: - pull-requests: read - -concurrency: - group: ai-review-${{ github.event.pull_request.number }} - cancel-in-progress: true - -jobs: - ai-review: - name: CodeRabbit or PastaClaw review - runs-on: ubuntu-24.04 - steps: - - name: Check for a review from CodeRabbit or thepastaclaw - uses: actions/github-script@v7 - with: - script: | - const reviewers = new Set(['coderabbitai[bot]', 'coderabbitai', 'thepastaclaw']); - - const reviews = await github.paginate(github.rest.pulls.listReviews, { - owner: context.repo.owner, - repo: context.repo.repo, - pull_number: context.payload.pull_request.number, - }); - - const found = reviews.filter( - (review) => - review.state !== 'PENDING' && - reviewers.has(review.user?.login?.toLowerCase()) - ); - - if (found.length > 0) { - const authors = [...new Set(found.map((review) => review.user.login))]; - core.info(`Found ${found.length} review(s) from: ${authors.join(', ')}`); - return; - } - - core.setFailed( - 'No review from CodeRabbit or thepastaclaw yet. This check passes ' + - 'once either of them submits a review, so a rate-limited ' + - 'CodeRabbit does not block the PR when thepastaclaw has reviewed ' + - '(or vice versa). It re-runs automatically when a review is submitted.' - );