Enhance Claude CI: incremental reviews, full file context, skip-permissions#1312
Enhance Claude CI: incremental reviews, full file context, skip-permissions#1312sbryngelson merged 5 commits intoMFlowCode:masterfrom
Conversation
Claude Code ReviewHead SHA: 70f90e8 Files changed: 4
Summary
Findings1.
|
Claude Code ReviewHead SHA: Files changed: 4
Summary
Findings1. No actor check on The github.event.comment.author_association == 'COLLABORATOR' ||
github.event.comment.author_association == 'MEMBER' ||
github.event.comment.author_association == 'OWNER'2. The PR description says this prevents hanging on approval prompts in CI. However, 3. The final Non-issue observations
|
There was a problem hiding this comment.
Pull request overview
Enhances the Claude CI workflows with incremental review support, full file context fetching via GitHub API, label/comment triggers for re-reviews, and adds --dangerously-skip-permissions to the interactive Claude workflow.
Changes:
- Add incremental review mode to
claude-code-review.yml(only reviews new changes onsynchronizeevents) with full file context fetching and multiple trigger mechanisms - Add
--dangerously-skip-permissionstoclaude.ymlfor non-interactive CI runs - Update PR template with Claude review trigger instructions
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
.github/workflows/claude-code-review.yml |
Add review mode detection, full file context phase, incremental/full review policies, label and comment triggers |
.github/workflows/claude.yml |
Add --dangerously-skip-permissions flag |
.github/pull_request_template.md |
Document Claude review triggers |
| @@ -2,10 +2,31 @@ name: Claude Code Review | |||
|
|
|||
Claude Code ReviewHead SHA: a57f17a Files changed: 3
Summary:
Findings: 1. else
REVIEW_MODE="full"
fiThe 2. No permission check on contains(github.event.comment.body, '@claude full review')Any GitHub user (including unauthenticated drive-bys on public repos) can post this comment and trigger a full review with Phase 3 file fetches (up to 15 API calls per invocation). Consider adding an author-association guard: github.event.comment.author_association == 'MEMBER' ||
github.event.comment.author_association == 'OWNER' ||
github.event.comment.author_association == 'COLLABORATOR'Without this, the workflow is trivially abusable for API quota exhaustion. 3. 4. 5. Incremental SHA-marker parsing is fragile Improvement opportunities (low priority):
|
Claude Code ReviewHead SHA: a57f17a Files changed: 3
Summary:
Findings1. The interactive assistant workflow ( 2. If else
echo "Unexpected event: ${{ github.event_name }}" >&2
exit 1
fi3. PR description references 4. Minor / no action required
|
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThis pull request modifies the GitHub Actions workflows and pull request template to expand Claude-based code review capabilities. The changes add new trigger mechanisms for Claude reviews via annotations ( 📝 Coding Plan
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
synchronize), full file context fetching via GitHub API,@claude full reviewcomment trigger, andclaude-full-reviewlabel trigger--dangerously-skip-permissionsso Claude doesn't hang waiting for approval prompts in CITest plan
@claude full reviewand verify re-review triggers@claudeinteractive assistant still works in claude.yml🤖 Generated with Claude Code