ci: upload HTML review report as artifact#728
Conversation
Instruct grumpy-review to render HTML instead of markdown and save report.json + report.html to a known directory. Add upload-artifact step so the interactive report (with Chart.js charts, severity filtering, sorting) is downloadable from the Actions run. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
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 (1)
📝 WalkthroughWalkthroughThis change updates the Claude code-review GitHub workflow to add a REPORT_DIR env var, ensure the directory exists, instruct Claude to render HTML and write report.json/report.html, and upload those files as a GitHub artifact. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
There was a problem hiding this comment.
Pull request overview
This PR updates the Claude/Claudius GitHub Actions workflow to produce an HTML (and JSON) review report and upload it as a downloadable Actions artifact, enabling interactive review output to be retrieved from CI runs.
Changes:
- Adds a
REPORT_DIRenvironment variable to standardize where the review report outputs are written. - Updates the review instructions/allowed tools to support HTML report generation and file operations.
- Uploads the generated report directory as an Actions artifact with a 14-day retention period.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In @.github/workflows/claude-code-review.yml:
- Line 29: The workflow sets REPORT_DIR but never ensures it exists, so create
the directory before Claude runs by adding a step that runs mkdir -p "${{
github.workspace }}/review-report" (i.e., mkdir -p "$REPORT_DIR") and ensure
that this step executes prior to any steps referencing REPORT_DIR (including the
Claude invocation and the artifact collection step that copies/writes files).
Update or add the pre-flight/setup job step so REPORT_DIR is created with
correct permissions and is available for subsequent steps that write files into
it.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 41e2fbc8-ee38-4289-92e9-122d9a3dc7d3
📒 Files selected for processing (1)
.github/workflows/claude-code-review.yml
Address bot review comments: - Pre-create $REPORT_DIR before Claude runs (CodeRabbit) - Remove Bash(cp *) from allowed tools; write directly to $REPORT_DIR (Copilot) - Upload only report.json and report.html, not the whole directory (Copilot) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Summary
report.json+report.htmlto a known directory ($REPORT_DIR)upload-artifactstep so the report is downloadable from the Actions run (14-day retention)Bash(cp *)to allowed tools for file operationsTest plan
claudius-reviewlabelreport.html(not justreport.md)claude-review-report-pr-<N>appears in the Actions runreport.html— confirm charts and filtering workNo manual test scenario file needed — this is a CI-only change.
🤖 Co-authored by Claudius the Magnificent AI Agent
Summary by CodeRabbit