Repository navigation
Count an Unthreaded Entry by Its Title Anchor in pr_review.py - #2641
Conversation
unthreaded_entries counted every link of every open entry, so a back-reference beside a title anchor that is a thread added a finding with no thread to the block. It now reads each entry by its first link, as carried_open_threads does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The block and scripts/README.md said an entry carrying no link to a thread is counted, while the count now reads each entry by its title anchor, so an unthreaded title beside a threaded back-reference was counted under a description it did not fit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The module usage text and the pr-review-conduct Merge Gate item still described an entry linking no thread as the one counted, which the per-entry count no longer matches when a back-reference beside an unthreaded title links a thread. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
⛔ Files ignored due to path filters (3)
📒 Files selected for processing (4)
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughDocumentation and tests clarify that an open finding is unthreaded when its title link does not match a pull-request thread. The tests distinguish title links from adjacent back-references. The implementation that collects linked IDs remains unchanged. ChangesThreaded finding identification
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to The title-link counting change is documented and tested, with no concrete merge-blocking risk established. It is ready for normal merge checks. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)✨ Finishing Touches📝 Generate docstrings
🧪 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.
🟢 Approval recommended
The counting fix, regression tests, documentation, and generated files were reviewed; only a non-blocking wording nit remains.
0 open findings
What changed in this PR
Updates review accounting to match entries by their title anchor, preventing back-references from inflating unthreaded findings.
Changes:
- Corrects title-anchor counting logic.
- Adds regression tests.
- Updates documentation and regenerated skill copies.
- Minor nit: clarify malformed overview docstring wording in
scripts/pr_review.py.
| File | Summary |
|---|---|
tests/test_pr_review.py |
Adds regression coverage. |
scripts/README.md |
Updates behavior documentation. |
scripts/pr_review.py |
Corrects title-anchor counting and wording. |
.github/skills/pr-review-conduct/SKILL.md |
Regenerated skill copy. |
.claude-plugin/fleet-skills/skills/pr-review-conduct/SKILL.md |
Regenerated skill copy. |
.claude-plugin/fleet-skills/.source-digests/pr-review-conduct |
Updates source digest. |
.agents/skills/pr-review-conduct/SKILL.md |
Updates canonical guidance. |
🧠 Review effort: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #2641 +/- ##
========================================
Coverage 59.34% 59.34%
========================================
Files 16 16
Lines 8282 8282
========================================
Hits 4915 4915
Misses 3367 3367
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:
|
|
@coderabbitai review |
✅ Action performedReview finished.
|
Promotes the one change develop holds over main: `pr_review.py`'s `unthreaded_entries` reads each open entry by its title anchor rather than by every link it carries, so a back-reference beside a threaded title no longer counts as a finding with no thread. The `FINDINGS WITH NO THREAD` wording in the digest, the usage text, `scripts/README.md`, and `pr-review-conduct` now says "title link" to match (#2641). Fixes #2621 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Summary
unthreaded_entriesinscripts/pr_review.pycounted every distinct thread id across every link of every open entry. An entry whose title anchor is a thread on the pull request, but which also carries a back-reference to an id no fetched thread carries, therefore added one toFINDINGS WITH NO THREADalthough the entry has a thread.open_entry_idsnow reads each entry by its first link, its title's own anchor, ascarried_open_threadsalready does. A title anchor past the hundred threads read, and an entry with no recognized link, still overstate as documented.FINDINGS WITH NO THREADwording now says "no title link" to match the per-entry count. That covers the digest block, the module usage text,scripts/README.md, and thepr-review-conductMerge Gate item. The skill's generated trees were regenerated withscripts/build_dist.py.Verification
python3 -m unittest tests.test_pr_review: 665 tests OK.spec/validate.py,build_dist.py --check, and both prose_lint diff runs are clean.Closes on promotion: #2621
🤖 Generated with Claude Code
Summary by CodeRabbit