mirror of
https://github.com/anthropics/claude-code-action.git
synced 2026-01-22 22:44:13 +08:00
test: update claude-review workflow to use feat/enhanced-mode-routing (#114)
- Use feat/enhanced-mode-routing branch to test new track_progress feature - Enable track_progress to get tracking comments - Add synchronize trigger for updates - Changed from direct_prompt to prompt (v1 migration) - Removed allowed_tools as they're not needed with the new routing
This commit is contained in:
12
.github/workflows/claude-review.yml
vendored
12
.github/workflows/claude-review.yml
vendored
@@ -2,12 +2,14 @@ name: Auto review PRs
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
types: [opened]
|
types: [opened, synchronize]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
auto-review:
|
auto-review:
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
issues: write
|
||||||
|
pull-requests: write
|
||||||
id-token: write
|
id-token: write
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
@@ -17,10 +19,11 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
|
|
||||||
- name: Auto review PR
|
- name: Auto review PR with tracking
|
||||||
uses: anthropics/claude-code-action@main
|
uses: anthropics/claude-code-action@feat/enhanced-mode-routing
|
||||||
with:
|
with:
|
||||||
direct_prompt: |
|
track_progress: true
|
||||||
|
prompt: |
|
||||||
Please review this PR. Look at the changes and provide thoughtful feedback on:
|
Please review this PR. Look at the changes and provide thoughtful feedback on:
|
||||||
- Code quality and best practices
|
- Code quality and best practices
|
||||||
- Potential bugs or issues
|
- Potential bugs or issues
|
||||||
@@ -30,4 +33,3 @@ jobs:
|
|||||||
|
|
||||||
Be constructive and specific in your feedback. Give inline comments where applicable.
|
Be constructive and specific in your feedback. Give inline comments where applicable.
|
||||||
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
|
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"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user