From e9efa0743af76c77a9dc71874c7ad4053a49c830 Mon Sep 17 00:00:00 2001 From: Matthew Ezra Labre Date: Thu, 21 May 2026 09:25:21 +0800 Subject: [PATCH 1/4] Added: claude auto reviewer workflow --- .github/workflow/claude-auto-reviewer.yml | 43 +++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflow/claude-auto-reviewer.yml diff --git a/.github/workflow/claude-auto-reviewer.yml b/.github/workflow/claude-auto-reviewer.yml new file mode 100644 index 0000000..e5d76b2 --- /dev/null +++ b/.github/workflow/claude-auto-reviewer.yml @@ -0,0 +1,43 @@ +name: Claude Auto Review +on: + pull_request: + types: [opened, synchronize, reopened, ready_for_review] + +jobs: + review: + if: github.event.pull_request.draft == false + runs-on: ubuntu-latest + timeout-minutes: 15 + concurrency: + group: claude-review-${{ github.event.pull_request.number }} + cancel-in-progress: true + permissions: + contents: read + pull-requests: write + steps: + - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 + with: + fetch-depth: 1 + + - uses: anthropics/claude-code-action@1dc994ee7a008f0ecc866d9ac23ef036b7229f84 # v1.0.127 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} + prompt: | + REPO: ${{ github.repository }} + PR NUMBER: ${{ github.event.pull_request.number }} + + Please 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` (with `confirmed: true`) 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:*),Read,Grep,Glob" From 8cdeeb48199bac6a2a44a36a5927d95cd023620b Mon Sep 17 00:00:00 2001 From: Matthew Ezra Labre Date: Thu, 21 May 2026 09:26:59 +0800 Subject: [PATCH 2/4] Added: claude auto reviewer workflow --- .github/{workflow => workflows}/claude-auto-reviewer.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/{workflow => workflows}/claude-auto-reviewer.yml (100%) diff --git a/.github/workflow/claude-auto-reviewer.yml b/.github/workflows/claude-auto-reviewer.yml similarity index 100% rename from .github/workflow/claude-auto-reviewer.yml rename to .github/workflows/claude-auto-reviewer.yml From 1837777ff57ba31a93e75a4768d7355d193ad952 Mon Sep 17 00:00:00 2001 From: Matthew Ezra Labre Date: Thu, 21 May 2026 09:30:26 +0800 Subject: [PATCH 3/4] Update .github/workflows/claude-auto-reviewer.yml Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- .github/workflows/claude-auto-reviewer.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/claude-auto-reviewer.yml b/.github/workflows/claude-auto-reviewer.yml index e5d76b2..dad8eb5 100644 --- a/.github/workflows/claude-auto-reviewer.yml +++ b/.github/workflows/claude-auto-reviewer.yml @@ -2,10 +2,13 @@ name: Claude Auto Review on: pull_request: types: [opened, synchronize, reopened, ready_for_review] + paths-ignore: + - '**/*.md' + - 'docs/**' jobs: review: - if: github.event.pull_request.draft == false + if: github.event.pull_request.draft == false && github.event.pull_request.user.type != 'Bot' runs-on: ubuntu-latest timeout-minutes: 15 concurrency: From f3685b7d008b61b717df80eaae3334a96888cb51 Mon Sep 17 00:00:00 2001 From: Matthew Ezra Labre Date: Mon, 8 Jun 2026 17:55:24 +0800 Subject: [PATCH 4/4] removed: ignored paths to allow claude to review all --- .github/workflows/claude-auto-reviewer.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/claude-auto-reviewer.yml b/.github/workflows/claude-auto-reviewer.yml index dad8eb5..22b1aac 100644 --- a/.github/workflows/claude-auto-reviewer.yml +++ b/.github/workflows/claude-auto-reviewer.yml @@ -2,9 +2,6 @@ name: Claude Auto Review on: pull_request: types: [opened, synchronize, reopened, ready_for_review] - paths-ignore: - - '**/*.md' - - 'docs/**' jobs: review: