Skip to content

Comments

Fix Claude Code Review workflow: use built-in review#698

Merged
justin808 merged 3 commits intomasterfrom
jg/rm-broken-claude-review
Feb 17, 2026
Merged

Fix Claude Code Review workflow: use built-in review#698
justin808 merged 3 commits intomasterfrom
jg/rm-broken-claude-review

Conversation

@justin808
Copy link
Member

@justin808 justin808 commented Feb 17, 2026

Summary

  • Fixes the claude-code-review.yml workflow to use the built-in review instead of the broken plugin approach
  • The plugin-based setup fails because it tries to call gh api via the Bash tool, which the action's sandbox blocks
  • Replaces plugin_marketplaces/plugins/prompt with review_triggered_on: pr and use_sticky_comment: true

Test plan

  • Open a test PR and verify Claude auto-reviews it

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Updated automated code review workflow: increased PR and issue permissions to write, upgraded the checkout action, simplified configuration to a sticky-comment review flow with a concise multi-line prompt, and removed path-based and author filters plus plugin-specific settings.

The plugin-based review setup is broken — the plugin tries to call
gh api via the Bash tool, which the action sandbox blocks by default.
Removing in favor of the working default claude.yml (@claude mentions).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link

🚀 Quick Review App Commands

Welcome! Here are the commands you can use in this PR:

/deploy-review-app

Deploy your PR branch for testing

/delete-review-app

Remove the review app when done

/help

Show detailed instructions, environment setup, and configuration options.


@coderabbitai
Copy link

coderabbitai bot commented Feb 17, 2026

Walkthrough

Updated the .github/workflows/claude-code-review.yml workflow: increased GitHub permission scopes for PRs and issues, bumped actions/checkout from v4 → v6, removed path/author filters and plugin-based prompt config, and replaced them with Claude Code Review inputs including use_sticky_comment: true and a concise multi-line review prompt.

Changes

Cohort / File(s) Summary
GitHub Actions workflow
.github/workflows/claude-code-review.yml
Permissions increased for pull-requests and issues from readwrite; actions/checkout bumped v4 → v6; removed path-based and PR-author filters; removed plugin/marketplace and plugin prompt config; added Claude Code Review inputs (use_sticky_comment: true, multi-line prompt) and simplified run wiring.

Sequence Diagram(s)

sequenceDiagram
  participant GH as GitHub Actions
  participant Runner as Actions Runner
  participant CCR as Claude Code Review Action
  participant GH_API as GitHub PR API

  GH->>Runner: trigger workflow on pull_request
  Runner->>CCR: invoke action with inputs (use_sticky_comment, prompt)
  CCR->>GH_API: read PR contents (requires pull-requests write)
  CCR->>GH_API: post/update sticky comment with review (uses issues write)
  CCR->>Runner: return status/results
  Runner->>GH: set workflow outcome
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Poem

🐰 I hopped through YAML lines so neat,
Swapped prompts and versions with quick feet,
A sticky note now marks the PR—
Quiet review, from near and far. 🥕

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'Fix Claude Code Review workflow: use built-in review' directly and clearly describes the main change: fixing the workflow by switching from a plugin-based approach to the built-in review functionality.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch jg/rm-broken-claude-review

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@greptile-apps
Copy link

greptile-apps bot commented Feb 17, 2026

Greptile Summary

This PR removes the .github/workflows/claude-code-review.yml file, which contained a plugin-based automated PR review workflow that was broken because its plugin (code-review@claude-code-plugins) internally invoked gh api via the Bash tool—a call that is blocked by the anthropics/claude-code-action sandbox. The removal is a clean and appropriate cleanup; the manual @claude mention handler (claude.yml) is unaffected and continues to work correctly.

Key changes:

  • Deletes .github/workflows/claude-code-review.yml, which attempted to use the plugin_marketplaces and plugins inputs of anthropics/claude-code-action@v1 to run an automated code review on every PR.
  • No other workflows, secrets, or repository configuration are modified.
  • The companion claude.yml workflow (for @claude mentions) remains intact and functional.

Confidence Score: 5/5

  • This PR is safe to merge — it only removes a broken, non-functional workflow file with no side effects on other workflows or the codebase.
  • The change is a single file deletion of a CI workflow that was already non-functional due to a sandbox restriction. There are no code logic changes, no dependency updates, and no impact on any other workflow or application functionality. The claude.yml workflow is verified to be untouched and operational.
  • No files require special attention.

Important Files Changed

Filename Overview
.github/workflows/claude-code-review.yml Deleted broken plugin-based Claude Code Review workflow that used anthropics/claude-code-action@v1 with plugin_marketplaces and plugins fields, which relied on gh api via Bash—blocked by the action's sandbox. No other workflows or functionality are affected by this removal.

Flowchart

flowchart TD
    A[Pull Request Opened or Synchronized] --> B{Which Workflow?}
    B -->|claude-code-review.yml REMOVED| C[claude-code-action with plugins]
    C --> D[Plugin calls gh api via Bash]
    D --> E[BLOCKED by action sandbox]
    E --> F[Workflow fails - broken]
    B -->|claude.yml KEPT| G{Contains @claude mention?}
    G -->|Yes| H[claude-code-action standard use]
    H --> I[Claude responds to mention]
    G -->|No| J[Job skipped]
Loading

Last reviewed commit: 5167509

…n plugin

Replace the plugin-based review (which fails because the sandbox blocks
Bash tool access) with the built-in review_triggered_on and
use_sticky_comment options.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@justin808 justin808 changed the title Remove broken Claude Code Review workflow Fix Claude Code Review workflow: use built-in review Feb 17, 2026
The action auto-detects review mode from the pull_request trigger.
Only use_sticky_comment and prompt are needed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
.github/workflows/claude-code-review.yml (1)

4-5: Consider skipping draft PRs.

The opened and synchronize events fire on draft PRs, so Claude will trigger a review on every push to a draft — which may burn quota unnecessarily. ready_for_review already handles the draft→ready promotion case.

🔧 Suggested guard
 jobs:
   claude-review:
     runs-on: ubuntu-latest
+    if: github.event.pull_request.draft == false
     permissions:
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.github/workflows/claude-code-review.yml around lines 4 - 5, The workflow
currently triggers on pull_request types [opened, synchronize, ready_for_review,
reopened], which causes reviews to run for draft PR pushes; update the
pull_request trigger so opened/synchronize do not fire for drafts — either
remove opened and synchronize and rely on ready_for_review/reopened, or keep
them but add a guard that checks github.event.pull_request.draft == false before
running the job (referencing the pull_request/types and
github.event.pull_request.draft symbols and the ready_for_review event) so draft
PR pushes no longer trigger Claude runs.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In @.github/workflows/claude-code-review.yml:
- Around line 4-5: The workflow currently triggers on pull_request types
[opened, synchronize, ready_for_review, reopened], which causes reviews to run
for draft PR pushes; update the pull_request trigger so opened/synchronize do
not fire for drafts — either remove opened and synchronize and rely on
ready_for_review/reopened, or keep them but add a guard that checks
github.event.pull_request.draft == false before running the job (referencing the
pull_request/types and github.event.pull_request.draft symbols and the
ready_for_review event) so draft PR pushes no longer trigger Claude runs.

@justin808 justin808 merged commit 3edad96 into master Feb 17, 2026
6 of 7 checks passed
@justin808 justin808 deleted the jg/rm-broken-claude-review branch February 17, 2026 23:43
@github-actions
Copy link

github-actions bot commented Feb 17, 2026

✅ Review app for PR #698 was successfully deleted

View Completed Delete Logs

Control Plane Organization

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant