Add Claude Code Review GitHub Actions workflows - #2
Conversation
Bring over the Claude review process from react_on_rails so PRs to this repo get the same automated and interactive Claude support. - claude-code-review.yml: runs anthropics/claude-code-action@v1 on every PR (opened, synchronize, ready_for_review, reopened) and posts review feedback as GitHub comments. The review-focus prompt adds this repo's portability rule (no consumer-repo commands, labels, branches, or paths in shared skills/workflows, per AGENTS.md) and shell/Ruby helper safety on top of the standard quality, bug, security, and performance checks. - claude.yml: the interactive @claude bot for issue and PR comments, reviews, and newly opened/assigned issues. Both require the CLAUDE_CODE_OAUTH_TOKEN secret, already used by react_on_rails under the shakacode org. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
Warning Review limit reached
More reviews will be available in 50 minutes and 38 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Claude Code ReviewThis PR adds two GitHub Actions workflows: an automated PR review trigger ( Findings1. Hard runtime failure — 2. 3. 4. |
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v6 |
There was a problem hiding this comment.
actions/checkout@v6 does not exist — the latest stable major release is v4. This step will fail at runtime with "Unable to resolve action", causing every automated review to silently never run. The sibling claude.yml correctly pins @v4.
| uses: actions/checkout@v6 | |
| uses: actions/checkout@v4 |
| permissions: | ||
| contents: read | ||
| pull-requests: write | ||
| issues: write |
There was a problem hiding this comment.
issues: write is broader than necessary. The workflow's only output paths are gh pr comment and mcp__github_inline_comment__create_inline_comment, both of which operate on the pull request, not on issues. pull-requests: write is sufficient. The extra scope lets a prompt-injected step create, close, or label repository issues.
| issues: write | |
| pull-requests: write |
| contents: read | ||
| pull-requests: read | ||
| issues: read |
There was a problem hiding this comment.
The interactive bot needs write access to both pull-requests and issues to post any response to @claude mentions. With only read on both scopes, every invocation will silently fail to reply. Compare claude-code-review.yml which correctly grants pull-requests: write.
| contents: read | |
| pull-requests: read | |
| issues: read | |
| contents: read | |
| pull-requests: write | |
| issues: write |
| additional_permissions: | | ||
| actions: read |
There was a problem hiding this comment.
actions: read is already declared in the job-level permissions block (line 26). additional_permissions is the action's mechanism to request permissions the job hasn't already granted; duplicating an already-granted permission here is a no-op and will cause confusion if the two copies diverge on a future edit.
| additional_permissions: | | |
| actions: read |
Summary
Brings over the Claude review process from
react_on_railsso PRs to this repo get the same automated and interactive Claude support. This repo previously had no.github/workflows at all.What's added
.github/workflows/claude-code-review.yml— runsanthropics/claude-code-action@v1on every PR (opened,synchronize,ready_for_review,reopened) and posts review feedback as GitHub comments / inline comments. The review-focus prompt keeps the standard checks (code quality, bugs, security, performance) and adds two concerns specific to this repo:skills/orworkflows/(perAGENTS.md→ Editing Rules).bin/andskills/*/bin/..github/workflows/claude.yml— the interactive@claudebot for issue/PR comments, reviews, and newly opened/assigned issues.Both are faithful ports of the
react_on_railsworkflows; the only adaptation is the two extra review-focus bullets above.Requirements
Both workflows need the
CLAUDE_CODE_OAUTH_TOKENsecret.react_on_railsalready uses it under theshakacodeorg, so the org-level secret should be available here — please confirm it's set for this repo.Validation
bin/validate— all checks pass.actionlint— clean on both files.🤖 Generated with Claude Code