Claude auto PR review
Copied from the official Solutions Guide basic example (prompt shortened).
pull_request: opened, synchronize
Estimated cost~$0.18
Not executedChecked Oct 16, 2026
schedule (cron) + workflow_dispatch
Based on Solutions Guide 'Scheduled Repository Maintenance'.
Estimated cost per run
~$0.44
Estimated, not measured.
Basis. ASSUMPTION (10 runner min x $0.006/min GitHub-hosted Linux 2-core (docs.github.com/en/billing/reference/actions-runner-pricing)) + ASSUMED 150,000 input / 8,000 output tokens at Claude Sonnet 5 API $2/MTok in, $10/MTok out (platform.claude.com/docs/en/about-claude/pricing). Token counts are not measured; replace after a real test run.
Verification
Last checked Oct 16, 2026.
inputs checked against source docs; workflow not executed.
Open caveats
Copy the file as-is. Highlighting is only for reading.
workflow.yml
name: Weekly Maintenanceon: schedule: - cron: "0 6 * * 1" workflow_dispatch:jobs: maintenance: runs-on: ubuntu-latest permissions: contents: read issues: write id-token: write steps: - uses: actions/checkout@v6 - uses: anthropics/claude-code-action@v1 with: anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} prompt: | REPO: ${{ github.repository }} Check for outdated dependencies, TODOs older than 90 days and failing docs links. Open one issue summarizing findings with `gh issue create`. claude_args: | --allowedTools "Bash(gh issue create:*),Bash(gh issue list:*),Read,Grep,Glob"Copied from the official Solutions Guide basic example (prompt shortened).
pull_request: opened, synchronize
Estimated cost~$0.18
Not executedChecked Oct 16, 2026
`track_progress: true` posts a checkbox tracking comment (per Solutions Guide).
pull_request: opened, synchronize, ready_for_review, reopened
Estimated cost~$0.22
Not executedChecked Oct 16, 2026
No `prompt` → the action runs in tag/interactive mode and responds to the comment. `trigger_phrase` default is `@claude` (usage.md).
issue_comment / pull_request_review_comment containing @claude
Estimated cost~$0.27
Not executed· 1 caveatChecked Oct 16, 2026