Skip to content

Commit b892cf7

Browse files
authored
CI: Add claude-review action (#705)
1 parent 2499b51 commit b892cf7

2 files changed

Lines changed: 41 additions & 1 deletion

File tree

‎.github/workflows/CI-windows.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- os: windows-2025
2727
sln: slnx
2828
- os: windows-11-arm
29-
sln: sln
29+
sln: slnx
3030
fail-fast: false
3131

3232
runs-on: ${{ matrix.os }}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Automated code review of pull requests using Claude
2+
name: claude-review
3+
4+
on:
5+
pull_request:
6+
types: [opened, synchronize, ready_for_review, reopened]
7+
8+
jobs:
9+
review:
10+
if: github.event.pull_request.draft == false && github.event.pull_request.head.repo.full_name == github.repository
11+
12+
runs-on: ubuntu-24.04
13+
14+
permissions:
15+
contents: read
16+
pull-requests: write
17+
id-token: write
18+
19+
steps:
20+
- uses: actions/checkout@v7
21+
with:
22+
fetch-depth: 1
23+
24+
- name: Claude review
25+
uses: anthropics/claude-code-action@v1
26+
with:
27+
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
28+
prompt: |
29+
REPO: ${{ github.repository }}
30+
PR NUMBER: ${{ github.event.pull_request.number }}
31+
32+
Review this pull request. Focus on correctness bugs, potential
33+
false positives/false negatives in checkers, performance problems
34+
and missing tests. Be concise and only report real issues.
35+
36+
Use `gh pr diff` to see the changes. Post specific issues as inline
37+
comments with `mcp__github_inline_comment__create_inline_comment`
38+
and post a short overall summary with `gh pr comment`.
39+
claude_args: |
40+
--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)