diff --git a/.github/workflows/claude-review.yml b/.github/workflows/claude-review.yml index 10706cc..59829db 100644 --- a/.github/workflows/claude-review.yml +++ b/.github/workflows/claude-review.yml @@ -2,12 +2,14 @@ name: Auto review PRs on: pull_request: - types: [opened] + types: [opened, synchronize] jobs: auto-review: permissions: contents: read + issues: write + pull-requests: write id-token: write runs-on: ubuntu-latest @@ -17,10 +19,11 @@ jobs: with: fetch-depth: 1 - - name: Auto review PR - uses: anthropics/claude-code-action@main + - name: Auto review PR with tracking + uses: anthropics/claude-code-action@feat/enhanced-mode-routing with: - direct_prompt: | + track_progress: true + prompt: | Please review this PR. Look at the changes and provide thoughtful feedback on: - Code quality and best practices - Potential bugs or issues @@ -30,4 +33,3 @@ jobs: Be constructive and specific in your feedback. Give inline comments where applicable. anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} - allowed_tools: "mcp__github__create_pending_pull_request_review,mcp__github__add_comment_to_pending_review,mcp__github__submit_pending_pull_request_review,mcp__github__get_pull_request_diff"