Expand Claude review workflow permissions and fix logger documentation#311
Conversation
- Update CLAUDE.md e.printStackTrace anti-pattern to reference CorePlugin.getInstance().getLogger() instead of Logger.log - Add Bash(git diff/log/show:*) to allowedTools in claude-review.yml so review sub-agents can run git commands Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017q76Se6Yvwmjow3t3FSLEX
|
Warning Review limit reached
Next review available in: 24 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?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 reviews. How do review 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 refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: QUIET 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 |
Summary
This PR expands the Claude code review workflow's allowed tools to enable deeper git history inspection, and corrects the logging convention documentation to reflect the actual recommended pattern.
Changes
Workflow permissions: Added
Bash(git diff:*),Bash(git log:*), andBash(git show:*)to theallowedToolslist in both the scheduled and on-demand Claude review jobs. This enables Claude to inspect commit history and diffs beyond the current PR context, improving code review depth and context awareness.Logger documentation: Updated
CLAUDE.mdto correct the logging convention from the genericLogger.log()pattern to the more specificCorePlugin.getInstance().getLogger().log()pattern. This aligns the documentation with the actual recommended approach for routing stack traces through the server logger and preserving them in log aggregators.Implementation Details
Both workflow job configurations (
scheduled-reviewandon-demand-review) were updated identically to maintain consistency. The git-based tools allow Claude to:git diffgit loggit showThis enables more thorough analysis of code changes in context of the repository's evolution.
https://claude.ai/code/session_017q76Se6Yvwmjow3t3FSLEX