-
Notifications
You must be signed in to change notification settings - Fork 3.5k
[No QA] feat: ai code reviews with claude code #70690
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
AndrewGable
merged 15 commits into
Expensify:main
from
callstack-internal:feat/ai-review-claude
Sep 23, 2025
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
8420c00
feat: init the workflow for claude code reviews
adhorodyski 245b4fe
feat: init review rules with the code-inline-reviewer agent, deprecate
adhorodyski e8a1142
feat: add the /review-code-pr command
adhorodyski adcecde
fix: instructions, tool usage and comment format blocks
adhorodyski 292f3d6
Change pull_request_target to pull_request event
adhorodyski f6a83d1
feat: add a git checkout step
adhorodyski 3d52cd3
Update CLAUDE code review workflow triggers
adhorodyski 34e3e30
chore: run code and docs review out of a single claude-review.yml gh
adhorodyski 143234b
Merge branch 'Expensify:main' into feat/ai-review-claude
adhorodyski b1898b6
Remove duplicate 'id' from Claude Code steps
adhorodyski cfaacf2
Update .github/workflows/claude-review.yml
adhorodyski d5d3d66
Update .github/workflows/claude-review.yml
adhorodyski 1f09e0b
Update .github/workflows/claude-review.yml
adhorodyski 9a3cace
Update .github/workflows/claude-review.yml
adhorodyski 4a6e049
Update .github/workflows/claude-review.yml
adhorodyski File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| --- | ||
| allowed-tools: Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),mcp__github_inline_comment__create_inline_comment | ||
| description: Review a code contribution pull request | ||
| --- | ||
|
|
||
| Perform a comprehensive PR review using a specialized subagent: | ||
|
|
||
| ## Inline Review | ||
| Use the code-inline-reviewer agent to: | ||
| - Scan all changed source code files | ||
| - Create inline comments for specific review rule violations | ||
| - Focus on line-specific, actionable feedback | ||
|
|
||
| Run the agent and ensure its feedback is posted to the PR. | ||
|
|
||
| <important> | ||
| Keep feedback concise. | ||
| </important> |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| name: PR Reviews with Claude Code | ||
|
|
||
| permissions: | ||
| contents: read | ||
| pull-requests: write | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: [opened] | ||
|
|
||
| jobs: | ||
| review: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4 | ||
| with: | ||
| fetch-depth: 1 | ||
|
|
||
| - name: Filter paths | ||
| uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2 | ||
| id: filter | ||
| with: | ||
| filters: | | ||
| code: | ||
| - 'src/**' | ||
| docs: | ||
| - 'docs/**/*.md' | ||
| - 'docs/**/*.csv' | ||
|
|
||
| - name: Run Claude Code (code) | ||
| if: steps.filter.outputs.code == 'true' | ||
| uses: anthropics/claude-code-action@a3ff61d47aa5118a43b33ae44c4087d9eb51111a # v1.0.8 | ||
| with: | ||
| anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} | ||
| github_token: ${{ secrets.GITHUB_TOKEN }} | ||
| prompt: "/review-code-pr REPO: ${{ github.repository }} PR_NUMBER: ${{ github.event.pull_request.number }}" | ||
| claude_args: | | ||
| --allowedTools "mcp__github_inline_comment__create_inline_comment,Bash(gh pr comment:*)" | ||
|
|
||
| - name: Run Claude Code (docs) | ||
| if: steps.filter.outputs.docs == 'true' | ||
| uses: anthropics/claude-code-action@a3ff61d47aa5118a43b33ae44c4087d9eb51111a # v1.0.8 | ||
| with: | ||
| anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} | ||
| github_token: ${{ secrets.GITHUB_TOKEN }} | ||
| prompt: "/review-helpdot-pr REPO: ${{ github.repository }} PR_NUMBER: ${{ github.event.pull_request.number }}" | ||
| claude_args: | | ||
| --allowedTools "mcp__github_inline_comment__create_inline_comment,Bash(gh pr comment:*)" | ||
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.