Skip to content

Commit ec8d077

Browse files
authored
Merge branch 'main' into rq/try-ci
2 parents 84ddf2a + f3df8b1 commit ec8d077

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

.github/workflows/ai-agent-review.yml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,25 @@ jobs:
1717
runs-on: ubuntu-latest
1818
permissions:
1919
contents: read
20-
pull-requests: write
21-
issues: write
20+
pull-requests: read
21+
issues: read
22+
id-token: write
2223
steps:
2324
- name: Checkout repository
2425
uses: actions/checkout@v4
2526
with:
26-
fetch-depth: 0
27+
fetch-depth: 1
2728

2829
- name: Run Claude Code Review
2930
uses: anthropics/claude-code-action@v1
3031
with:
31-
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
32-
# Direct prompt for initial PR review
33-
direct_prompt: |
32+
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
33+
# Enable progress tracking
34+
track_progress: true
35+
prompt: |
36+
REPO: ${{ github.repository }}
37+
PR NUMBER: ${{ github.event.pull_request.number }}
38+
3439
Review this pull request for a Zig SCALE codec library.
3540
3641
Focus on:
@@ -44,7 +49,9 @@ jobs:
4449
For context, this is a SCALE codec implementation aligned with Rust's parity-scale-codec.
4550
Key types: Compact(T), Result(T, E), Option(T), tagged unions with scale_indices.
4651
47-
# Timeout for the review (5 minutes)
48-
timeout_minutes: 10
52+
Provide detailed feedback using inline comments for specific issues.
53+
Use top-level comments for general observations or praise.
54+
55+
# Tools for comprehensive PR review
4956
claude_args: |
50-
--model opus
57+
--allowedTools "mcp__github_inline_comment__create_inline_comment,Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*)"

0 commit comments

Comments
 (0)