From 8533e9ff5f8a81c74791b34b3886f9be002d3a67 Mon Sep 17 00:00:00 2001 From: Felix Boehm <188768+fb55@users.noreply.github.com> Date: Fri, 20 Nov 2026 17:28:40 +0000 Subject: [PATCH 1/2] Review pull requests with Claude Co-Authored-By: Claude Opus 5.5 --- .github/workflows/claude-review.yml | 45 +++++++++++++++++++++++++++++ 1 file changed, 45 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 0000000..26080d4 --- /dev/null +++ b/.github/workflows/claude-review.yml @@ -0,0 +1,45 @@ +# Reviews pull requests from this repository with Claude, as inline comments. +# Needs the Claude GitHub App (https://github.com/apps/claude) and a +# CLAUDE_CODE_OAUTH_TOKEN secret from `claude setup-token`; skipped without it. +name: Claude review + +on: + pull_request: + types: [opened, synchronize, ready_for_review] + +concurrency: + group: claude-review-${{ github.event.pull_request.number }} + cancel-in-progress: true + +permissions: + contents: read + +jobs: + review: + # Forks get no secrets; Dependabot's updates merge on their own. + if: github.event.pull_request.head.repo.full_name == github.repository && + github.actor != 'dependabot[bot]' + runs-on: ubuntu-latest + timeout-minutes: 20 + permissions: + contents: read + pull-requests: read + issues: read + id-token: write + steps: + - id: token + env: + TOKEN: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} + run: echo "set=$([ -n "$TOKEN" ] && echo true || echo false)" >> "$GITHUB_OUTPUT" + - if: steps.token.outputs.set == 'true' + uses: actions/checkout@v7 + with: + fetch-depth: 1 + - if: steps.token.outputs.set == 'true' + uses: anthropics/claude-code-action@v1 + with: + claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} + plugin_marketplaces: https://github.com/anthropics/claude-plugins-official.git + plugins: code-review@claude-plugins-official + prompt: /code-review:code-review --comment ${{ github.repository }}/pull/${{ github.event.pull_request.number }} + claude_args: --allowedTools "mcp__github_inline_comment__create_inline_comment" From 6557d6680493431a8aad40dd400aaed33003aa49 Mon Sep 17 00:00:00 2001 From: Felix Boehm <188768+fb55@users.noreply.github.com> Date: Fri, 20 Nov 2026 17:32:28 +0000 Subject: [PATCH 2/2] Review with Claude once per pull request The plugin skips pull requests it has commented on, so runs on new commits reviewed nothing. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/claude-review.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/claude-review.yml b/.github/workflows/claude-review.yml index 26080d4..b96f0fa 100644 --- a/.github/workflows/claude-review.yml +++ b/.github/workflows/claude-review.yml @@ -1,11 +1,12 @@ # Reviews pull requests from this repository with Claude, as inline comments. +# The plugin reviews a pull request once; Copilot reviews each push. # Needs the Claude GitHub App (https://github.com/apps/claude) and a # CLAUDE_CODE_OAUTH_TOKEN secret from `claude setup-token`; skipped without it. name: Claude review on: pull_request: - types: [opened, synchronize, ready_for_review] + types: [opened, ready_for_review] concurrency: group: claude-review-${{ github.event.pull_request.number }}