From 68a0b5d6e0589b620ebeff597676c639629d4292 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 7 Oct 2026 21:12:08 +0000 Subject: [PATCH] ci: add Claude Code review workflow Runs anthropics/claude-code-action with the code-review plugin on non-draft PRs. Requires the CLAUDE_CODE_OAUTH_TOKEN repo secret. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Pe7k1XG8178GSmRsq1KkAR --- .github/workflows/claude-code-review.yml | 34 ++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/claude-code-review.yml diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.yml new file mode 100644 index 0000000..ddaea39 --- /dev/null +++ b/.github/workflows/claude-code-review.yml @@ -0,0 +1,34 @@ +name: Claude Code Review + +on: + pull_request: + types: [opened, synchronize, ready_for_review, reopened] + +concurrency: + group: claude-review-${{ github.event.pull_request.number }} + cancel-in-progress: true + +jobs: + claude-review: + # skip drafts; review once marked ready + if: github.event.pull_request.draft == false + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write + issues: read + id-token: write + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 1 + + - name: Run Claude Code Review + uses: anthropics/claude-code-action@v1 + with: + claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} + plugin_marketplaces: 'https://github.com/anthropics/claude-code.git' + plugins: 'code-review@claude-code-plugins' + prompt: '/code-review:code-review ${{ github.repository }}/pull/${{ github.event.pull_request.number }}'