From 195e80234549655210a7f3f6b5a63d57d69de04a Mon Sep 17 00:00:00 2001 From: Victor Castell <0x@vcastellm.xyz> Date: Tue, 13 Jan 2026 12:19:54 +0100 Subject: [PATCH 1/2] ci: add Claude code review GitHub Action --- .github/workflows/claude-review.yml | 41 +++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/claude-review.yml diff --git a/.github/workflows/claude-review.yml b/.github/workflows/claude-review.yml new file mode 100644 index 000000000..043f26eb0 --- /dev/null +++ b/.github/workflows/claude-review.yml @@ -0,0 +1,41 @@ +name: Claude Code Review +on: + pull_request: + types: [opened, synchronize] +concurrency: + group: claude-review-${{ github.event.pull_request.number }} + cancel-in-progress: true +jobs: + review: + runs-on: ubuntu-latest + timeout-minutes: 15 + permissions: + contents: read + pull-requests: write + id-token: write + concurrency: + group: claude-review-${{ github.event.pull_request.number }} + cancel-in-progress: true + steps: + - name: Checkout repository + uses: actions/checkout@v5 + with: + fetch-depth: 1 + - name: Run Claude Code Review + uses: anthropics/claude-code-action@v1 + with: + anthropic_api_key: ${{ secrets.CLAUDE_API_KEY }} + prompt: | + REPO: ${{ github.repository }} + PR NUMBER: ${{ github.event.pull_request.number }} + REVIEW this pull request with a focus on: + - Code quality and best practices + - Potential bugs or issues + - Security implications + - Performance considerations + Note: The PR branch is already checked out in the current working directory. + Use `gh pr comment` for top-level feedback. + Use `mcp__github_inline_comment__create_inline_comment` to highlight specific code issues. + Only post GitHub comments - don't submit review text as messages. + claude_args: | + --allowedTools "mcp__github_inline_comment__create_inline_comment,Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*)" From 0e21ba6fa3df8022f1261fddd6895b8877bd5d18 Mon Sep 17 00:00:00 2001 From: Victor Castell <0x@vcastellm.xyz> Date: Wed, 14 Jan 2026 17:19:09 +0100 Subject: [PATCH 2/2] fix: remove concurrency from Claude review workflow --- .github/workflows/claude-review.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/claude-review.yml b/.github/workflows/claude-review.yml index 043f26eb0..89e490a66 100644 --- a/.github/workflows/claude-review.yml +++ b/.github/workflows/claude-review.yml @@ -13,9 +13,6 @@ jobs: contents: read pull-requests: write id-token: write - concurrency: - group: claude-review-${{ github.event.pull_request.number }} - cancel-in-progress: true steps: - name: Checkout repository uses: actions/checkout@v5