Skip to content

Regen dev version [email protected]

Regen dev version [email protected] #571

name: Claude Code Review
on:
pull_request:
types: [opened, reopened, ready_for_review]
# Optional: Only run on specific file changes
# paths:
# - "src/**/*.ts"
# - "src/**/*.tsx"
# - "src/**/*.js"
# - "src/**/*.jsx"
jobs:
claude-review:
# Skip automated PRs from pulumi-bot
if: github.event.pull_request.user.login != 'pulumi-bot'
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
issues: read
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Run Claude Code Review
id: claude-review
uses: anthropics/claude-code-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
# Invoke the docs-review slash command, which contains all review criteria and CI-specific guidance.
# See .claude/commands/docs-review.md for the complete review workflow.
prompt: |
You are running in a CI environment.
Review pull request #${{ github.event.pull_request.number }} by following the instructions in `.claude/commands/docs-review.md` under the "Continuous Integration (CI) Context" section.
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
# or https://docs.anthropic.com/en/docs/claude-code/sdk#command-line for available options
# Allow essential file reading tools (Read, Glob, Grep) and gh commands for PR interaction
claude_args: '--allowed-tools "Read,Glob,Grep,Bash(gh pr view:*),Bash(gh pr diff:*),Bash(gh pr comment:*),Bash(gh issue view:*)"'