mirror of
https://github.com/DayuanJiang/next-ai-draw-io.git
synced 2026-01-02 22:32:27 +08:00
Fix PR review: use correct params and enable inline comments
This commit is contained in:
15
.github/workflows/claude-code.yml
vendored
15
.github/workflows/claude-code.yml
vendored
@@ -29,7 +29,7 @@ jobs:
|
|||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 1
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Configure AWS Credentials
|
- name: Configure AWS Credentials
|
||||||
uses: aws-actions/configure-aws-credentials@v4
|
uses: aws-actions/configure-aws-credentials@v4
|
||||||
@@ -41,7 +41,6 @@ jobs:
|
|||||||
uses: anthropics/claude-code-action@v1
|
uses: anthropics/claude-code-action@v1
|
||||||
with:
|
with:
|
||||||
use_bedrock: "true"
|
use_bedrock: "true"
|
||||||
bedrock_model_id: "us.anthropic.claude-sonnet-4-5-20250929-v1:0"
|
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
pr-review:
|
pr-review:
|
||||||
@@ -67,12 +66,14 @@ jobs:
|
|||||||
uses: anthropics/claude-code-action@v1
|
uses: anthropics/claude-code-action@v1
|
||||||
with:
|
with:
|
||||||
use_bedrock: "true"
|
use_bedrock: "true"
|
||||||
bedrock_model_id: "us.anthropic.claude-sonnet-4-5-20250929-v1:0"
|
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
direct_prompt: |
|
prompt: |
|
||||||
|
REPO: ${{ github.repository }}
|
||||||
|
PR NUMBER: ${{ github.event.pull_request.number }}
|
||||||
|
|
||||||
Review this PR by examining the diff carefully. For each issue you find:
|
Review this PR by examining the diff carefully. For each issue you find:
|
||||||
|
|
||||||
1. Use the GitHub inline comment tool to add comments directly on the specific lines of code that have issues
|
1. Use `mcp__github_inline_comment__create_inline_comment` to add comments directly on specific lines of code
|
||||||
2. Include code suggestions using GitHub's suggestion syntax when appropriate:
|
2. Include code suggestions using GitHub's suggestion syntax when appropriate:
|
||||||
```suggestion
|
```suggestion
|
||||||
// corrected code here
|
// corrected code here
|
||||||
@@ -85,4 +86,6 @@ jobs:
|
|||||||
- Code quality problems
|
- Code quality problems
|
||||||
|
|
||||||
Be concise. Only comment on significant issues, not style nitpicks.
|
Be concise. Only comment on significant issues, not style nitpicks.
|
||||||
After adding inline comments, provide a brief summary of your review.
|
After adding inline comments, provide a brief summary.
|
||||||
|
claude_args: |
|
||||||
|
--allowedTools "mcp__github_inline_comment__create_inline_comment,Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*)"
|
||||||
|
|||||||
Reference in New Issue
Block a user