Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/claude-review.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Claude Docs Review

on:
pull_request:
types: [opened, synchronize, ready_for_review, reopened]

concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true

permissions: {}

jobs:
review:
if: ${{ !startsWith(github.head_ref, 'trunk-merge/') }}
runs-on: ubuntu-latest
# Advisory only: Claude leaves inline review comments. It does not approve
# or merge, and this is not a required status check.
permissions:
actions: read
contents: read
pull-requests: write
id-token: write
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 1

- id: claude-review
uses: anthropics/claude-code-action@v1
with:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
track_progress: true
prompt: |
REPO: ${{ github.repository }}
PR NUMBER: ${{ github.event.pull_request.number }}

Please review this pull request with a focus on:
- Typos, grammar, and formatting issues
- Documentation best practices

Provide feedback using inline comments for specific issues.
Do not approve the PR. This review is advisory only.
claude_args: |
--allowedTools "mcp__github_inline_comment__create_inline_comment,Bash(gh pr diff:*),Bash(gh pr view:*)"
Loading