From d595426807aab673677f6deef0cf4a874699e580 Mon Sep 17 00:00:00 2001 From: George Diab Date: Tue, 24 Feb 2026 15:10:07 -0800 Subject: [PATCH] ci: always run Claude review on PR open --- .github/workflows/claude-review.yml | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/.github/workflows/claude-review.yml b/.github/workflows/claude-review.yml index b461896..d55d585 100644 --- a/.github/workflows/claude-review.yml +++ b/.github/workflows/claude-review.yml @@ -13,12 +13,31 @@ permissions: id-token: write jobs: - review: + review-pr: + if: github.event_name == 'pull_request' + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Run Claude PR Review + uses: anthropics/claude-code-action@v1 + with: + anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} + prompt: | + REPO: ${{ github.repository }} + PR NUMBER: ${{ github.event.pull_request.number }} + + Review this pull request and post actionable findings. + Focus on correctness, regressions, security, and missing tests. + Use inline comments for line-specific issues and a top-level PR comment for overall summary. + + review-on-demand: if: > - github.event_name == 'pull_request' || - (github.event_name == 'issue_comment' && - github.event.issue.pull_request && - contains(github.event.comment.body, '@claude')) + github.event_name == 'issue_comment' && + github.event.issue.pull_request && + contains(github.event.comment.body, '@claude') runs-on: ubuntu-latest steps: