Skip to content

[v26.1.x] .gitignore: ignore claude worktrees dir #234

[v26.1.x] .gitignore: ignore claude worktrees dir

[v26.1.x] .gitignore: ignore claude worktrees dir #234

---
name: claude-code-review
on:
pull_request:
types: [labeled]
jobs:
claude-review:
if: github.event.label.name == 'claude-review'
runs-on: ubuntu-24.04
permissions:
contents: read
pull-requests: write
id-token: write
actions: read
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false
- uses: anthropics/claude-code-action@v1
with:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
allowed_bots: ""
allowed_non_write_users: ""
# NOTE: uncomment github_token to test changes in a PR before merge with bot `github-actions`; comment out before merge so bot will be `claude`
# github_token: ${{ github.token }}
show_full_output: false
track_progress: false
use_commit_signing: true
additional_permissions: |
actions: read
claude_args: >
--model opus
--max-turns 30
--disallowed-tools "WebFetch,WebSearch"
--allowed-tools "
mcp__github__add_issue_comment,
mcp__github_inline_comment__create_inline_comment,
mcp__github_ci__get_ci_status,
mcp__github_ci__get_workflow_run_details,
mcp__github_ci__download_job_log,
Bash(gh issue view *),
Bash(gh pr diff *),
Bash(gh pr view *),
Bash(gh search *)"
prompt: |
REPO: ${{ github.repository }}
PR_NUMBER: ${{ github.event.pull_request.number }}
Review the PR. The code of the PR is already checked out. Use `gh pr view` to get details about the PR. Use `gh pr diff` to get diff of the PR. Focus on code quality, potential bugs, security implications, and performance issues. Suggest improvements where appropriate. Use the `mcp__github_inline_comment__create_inline_comment` tool for line-specific issues. Use the `mcp__github__add_issue_comment` tool for final review comment on PR.