Repository navigation
Read CodeRabbit's Outside-Diff Section in Its Bold-Line Shape - #4226
Conversation
CodeRabbit now states its outside-diff count on a bold line of its own, with each finding in a `<details>` of its own and no wrapper, so the reader matched the line and then dropped it. A paragraph spelled as a counted section other than open or vetted now heads a section of the `<details>` run following it, so `cr_outside_diff=` reads it and `merge` holds it until answered. Closes #4219 Co-Authored-By: Claude Opus 5.5 <[email protected]>
A bold-line section's `<details>` run now stops at an element spelled as a section of its own, so a following suppressed or previously-missed section keeps its count. It also ends at its last finding's close rather than at the HTML block holding the next element's opening. The label-to-kind lookup and the quote-stripped section text are each one helper now, used at every site. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…s Out A run is now the `<details>` siblings following the bold line, each separated from the last by blank lines at the line's own quote depth alone. So a finding sharing an HTML block with the one before it is read and claimed. A reader vetting its layout skips the pass, keeping its loud note on an unknown `<details>` rather than counting it as a finding. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 43 minutes. View limit details
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. |
|
A recorded local strict-review pass covers head |
Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
An active documentation inconsistency remains: the docstring claims paragraph counts include both open and vetted headings, but the implementation only counts open paragraphs.
1 open issue
What changed in this PR
Updates review-body parsing so CodeRabbit's bold-line outside-diff sections are counted and enforced by merge checks.
Changes:
- Adds parsing for counted paragraph headings followed by sibling
<details>findings. - Consolidates section-matching and quote-stripping helpers.
- Adds fixtures and parser, status, and merge-gate tests for the new format and related boundaries.
| File | Description |
|---|---|
| tests/test_pr_review.py | Adds fixtures and parser/status coverage for CodeRabbit's bold-line outside-diff layout. |
| tests/test_pr_merge.py | Verifies bold-line outside-diff findings block merging until acknowledged. |
| scripts/pr_review_copilot.py | Adds paragraph-headed section parsing for bold-line outside-diff findings and consolidates shared parsing helpers. |
Review effort: Lite
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #4226 +/- ##
===========================================
+ Coverage 78.05% 78.11% +0.05%
===========================================
Files 42 42
Lines 15319 15360 +41
===========================================
+ Hits 11958 11999 +41
Misses 3361 3361
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
A recorded local strict-review pass covers head |
|
@coderabbitai review |
|
/review |
Action not completed
|
## Summary Promotes `develop` to `main`. It carries two changes: - [#4226](#4226): `pr_review.py` reads CodeRabbit's outside-diff section in its bold-line shape. That shape has the count on a bold line of its own and one `<details>` per finding, with no wrapper. Before this change, such a finding printed no `cr_outside_diff=` field and `merge` did not hold it. A reader vetting its layout, Copilot with its marker, keeps flagging an unknown `<details>` rather than counting it. - [#4222](#4222): registers `ptr727/homeassistant-vantage-diagnostics` in the fleet catalog, so its standup can be measured against the hub. Closes #4219 🤖 Generated with [Claude Code](https://claude.com/claude-code)

Summary
CodeRabbit now writes its outside-diff section with the count on a bold line of its own,
**Outside diff range comments (N)**, followed by one<details>per finding and no wrapper. The reader built apreviously_missedsection only from a<details>summary. Its paragraph pass matched the bold line but kept only anopencount, socr_outside_diff=never printed andmergedid not hold the finding.headed()inscripts/pr_review_copilot.pyturns a paragraph spelled as a counted section, other thanopenorvetted, into a section. The section covers the<details>siblings following the paragraph. Only blank lines at the paragraph's quote depth may separate them, and a sibling spelled as a section of its own ends the run. So a following suppressed or previously-missed section keeps its count, and a finding sharing an HTML block with the one before it is still read.<details>there stays a loud note rather than a counted finding.spelled()andunquoted()replace the copies of the label-to-kind lookup and the quote-stripped section text at every site.Verification
cr_outside_diff_bold_body, in the new shape with a tight variant, beside the old one. Each new test fails against the reader it fixes and passes now: status output, the merge refusal, the acknowledgment, the run's boundaries, a spelled neighbour, back-to-back findings, and the vetting reader's note.python -m unittest discover -s tests -p 'test_pr_*.py': 970 tests, OK. ruff, mypy, and the prose gate pass through the hub's pre-commit hook.local-strict-reviewpasses. Their findings are fixed in85e7436f,f570f339,5b37b2a6, and8c80af74, and the fifth pass raised none.Closes on promotion: #4219
🤖 Generated with Claude Code