Skip to content

chore: run code and docs review out of a single claude-review.yml gh #1

chore: run code and docs review out of a single claude-review.yml gh

chore: run code and docs review out of a single claude-review.yml gh #1

Workflow file for this run

name: PR Reviews with Claude Code

Check failure on line 1 in .github/workflows/claude-review.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/claude-review.yml

Invalid workflow file

(Line: 44, Col: 13): The identifier 'claude' may not be used more than once within the same scope.
permissions:
contents: read
pull-requests: write
on:
pull_request:
types: [opened, synchronize, labeled]
jobs:
review:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Filter paths
uses: dorny/paths-filter@v3
id: filter
with:
filters: |
code:
- 'src/**'
docs:
- 'docs/**/*.md'
- 'docs/**/*.csv'
- name: Run Claude Code (code)
if: steps.filter.outputs.code == 'true'
id: claude
uses: anthropics/claude-code-action@a3ff61d47aa5118a43b33ae44c4087d9eb51111a
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'
id: claude
uses: anthropics/claude-code-action@a3ff61d47aa5118a43b33ae44c4087d9eb51111a
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:*)"