From 240e744499b19380dcae44ec3de7c2eaa492b2c6 Mon Sep 17 00:00:00 2001 From: Claude Code Bot Date: Fri, 7 Aug 2026 16:27:39 -0700 Subject: [PATCH] fix(ci): migrate off legacy plugin-based code-review workflow Replaces claude-code-review.yml (unpinned model, plugin_marketplaces pattern predating the March 2026 reusable-workflow migration) with claude-blocking-review.yml, a caller stub against the fleet's smartwatermelon/github-workflows reusable at @v3. Model is pinned explicitly to claude-haiku-4-5-20251001 for cost control. Closes smartwatermelon/github-workflows#89 Claude-Session: https://claude.ai/code/session_0143Nf4sXqnTp2Kx3LNbMvBA --- .github/workflows/claude-blocking-review.yml | 14 +++++++ .github/workflows/claude-code-review.yml | 44 -------------------- 2 files changed, 14 insertions(+), 44 deletions(-) create mode 100644 .github/workflows/claude-blocking-review.yml delete mode 100644 .github/workflows/claude-code-review.yml diff --git a/.github/workflows/claude-blocking-review.yml b/.github/workflows/claude-blocking-review.yml new file mode 100644 index 0000000..45d841f --- /dev/null +++ b/.github/workflows/claude-blocking-review.yml @@ -0,0 +1,14 @@ +name: Claude Blocking Review + +on: + pull_request: + types: [opened, synchronize] + +jobs: + claude-review: + uses: smartwatermelon/github-workflows/.github/workflows/claude-blocking-review.yml@v3 + with: + pr_number: ${{ github.event.pull_request.number }} + model: claude-haiku-4-5-20251001 + secrets: + claude_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.yml deleted file mode 100644 index e8340e0..0000000 --- a/.github/workflows/claude-code-review.yml +++ /dev/null @@ -1,44 +0,0 @@ -name: Claude Code Review - -on: - pull_request: - types: [opened, synchronize, ready_for_review, reopened] - # Optional: Only run on specific file changes - # paths: - # - "src/**/*.ts" - # - "src/**/*.tsx" - # - "src/**/*.js" - # - "src/**/*.jsx" - -jobs: - claude-review: - # Optional: Filter by PR author - # if: | - # github.event.pull_request.user.login == 'external-contributor' || - # github.event.pull_request.user.login == 'new-developer' || - # github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR' - - runs-on: ubuntu-latest - permissions: - contents: read - pull-requests: read - issues: read - id-token: write - - steps: - - name: Checkout repository - uses: actions/checkout@v7 - with: - fetch-depth: 1 - - - name: Run Claude Code Review - id: claude-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 }}' - # See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md - # or https://code.claude.com/docs/en/cli-reference for available options -