From 2f36d6169e39ab6ba4a1dfd604cabbe28af47d66 Mon Sep 17 00:00:00 2001 From: Mitsuki Fukunaga Date: Sun, 18 Jan 2026 11:24:17 +1100 Subject: [PATCH 1/2] "Update Claude PR Assistant workflow" From 21de2f78d327cdcdc4e7d54fe36d59d9398bb3ee Mon Sep 17 00:00:00 2001 From: Mitsuki Fukunaga Date: Sun, 18 Jan 2026 11:24:18 +1100 Subject: [PATCH 2/2] "Update Claude Code Review workflow" --- .github/workflows/claude-code-review.yml | 27 +++++++++++------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.yml index 69a1eb1..b5e8cfd 100644 --- a/.github/workflows/claude-code-review.yml +++ b/.github/workflows/claude-code-review.yml @@ -2,30 +2,27 @@ name: Claude Code Review on: pull_request: - types: [opened, ready_for_review, reopened] + types: [opened, synchronize, ready_for_review, reopened] # Optional: Only run on specific file changes # paths: # - "src/**/*.ts" # - "src/**/*.tsx" # - "src/**/*.js" # - "src/**/*.jsx" - issue_comment: - types: [created] jobs: claude-review: - # Run on PR open or when @claude is mentioned in comments - if: | - github.event_name == 'pull_request' || - (github.event_name == 'issue_comment' && - github.event.issue.pull_request && - contains(github.event.comment.body, '@claude')) + # 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: write - issues: write + pull-requests: read + issues: read id-token: write steps: @@ -39,9 +36,9 @@ jobs: uses: anthropics/claude-code-action@v1 with: claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} - prompt: '/review-pr' - claude_args: | - --allowed-tools "Read,Grep,Glob,Bash,Task,mcp__github_inline_comment__create_inline_comment" + 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 - # for available options + # or https://code.claude.com/docs/en/cli-reference for available options