Skip to content

Promote the Title-Anchor Unthreaded Entry Count to Main - #2642

Merged
ptr727 merged 1 commit into
mainfrom
develop
Oct 9, 2026
Merged

ptr727 merged 1 commit into
mainfrom
develop

Conversation

@ptr727

@ptr727 ptr727 commented Oct 9, 2026

Copy link
Copy Markdown
Owner

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

## Summary

`unthreaded_entries` in `scripts/pr_review.py` counted 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
to `FINDINGS WITH NO THREAD` although the entry has a thread.

- `open_entry_ids` now reads each entry by its first link, its title's
own anchor, as `carried_open_threads` already does. A title anchor past
the hundred threads read, and an entry with no recognized link, still
overstate as documented.
- The `FINDINGS WITH NO THREAD` wording now says "no title link" to
match the per-entry count. That covers the digest block, the module
usage text, `scripts/README.md`, and the `pr-review-conduct` Merge Gate
item. The skill's generated trees were regenerated with
`scripts/build_dist.py`.
- Two tests: a threaded title beside an unread back-reference reads 0,
and an unthreaded title beside a threaded back-reference still reads 1.
The first fails against the base.

## Verification

- `python3 -m unittest tests.test_pr_review`: 665 tests OK.
- ruff format/check, mypy, `spec/validate.py`, `build_dist.py --check`,
and both prose_lint diff runs are clean.
- A local-strict-review pass ran over three rounds, with 1, 2, and then
0 findings, and it is recorded.

Closes on promotion: #2621

🤖 Generated with [Claude Code](https://claude.com/claude-code)


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Bug Fixes**
* Open findings are now counted as threaded only when their title links
to a pull-request thread. Other links in the entry no longer affect
whether it is reported as unthreaded.
* **Tests**
* Added coverage for title links and back-references when identifying
unthreaded findings.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings October 9, 2026 10:27
@coderabbitai

coderabbitai Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You'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 41 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Repository: ptr727/ProjectTemplate/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: dbb5bbb1-c3c2-45b6-af52-8a0c3d8ed0e2

📥 Commits

Reviewing files that changed from the base of the PR and between de5d852 and 328de78.


⛔ Files ignored due to path filters (3)
  • .claude-plugin/fleet-skills/.source-digests/pr-review-conduct is excluded by !.claude-plugin/fleet-skills/**
  • .claude-plugin/fleet-skills/skills/pr-review-conduct/SKILL.md is excluded by !.claude-plugin/fleet-skills/**
  • .github/skills/pr-review-conduct/SKILL.md is excluded by !.github/skills/**

📒 Files selected for processing (4)
  • .agents/skills/pr-review-conduct/SKILL.md
  • scripts/README.md
  • scripts/pr_review.py
  • tests/test_pr_review.py


  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No unresolved review issues remain.

0 open findings

What changed in this PR

Promotes the title-anchor fix for counting unthreaded findings and synchronizes related tests, documentation, and generated skill files.

Changes:

  • Counts entries by their title anchor.
  • Adds regression coverage for back-references.
  • Updates documentation and generated skill content.
File Summary
tests/​test_pr_review.py Adds regression coverage.
scripts/​README.md Documents title-link behavior.
scripts/​pr_review.py Uses title anchors for counting.
.github/​skills/​pr-review-conduct/​SKILL.md Updates generated guidance.
.claude-plugin/​fleet-skills/​skills/​pr-review-conduct/​SKILL.md Updates generated guidance.
.claude-plugin/​fleet-skills/​.source-digests/​pr-review-conduct Updates the 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

codecov Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 59.34%. Comparing base (11ad234) to head (328de78).
⚠️ Report is 348 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2642   +/-   ##
=======================================
  Coverage   59.34%   59.34%           
=======================================
  Files          16       16           
  Lines        8282     8282           
=======================================
  Hits         4915     4915           
  Misses       3367     3367           
Flag Coverage Δ
python-3.13 59.34% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ptr727

ptr727 commented Oct 9, 2026

Copy link
Copy Markdown
Owner Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
⚠️ Action not completed

Review rate limited.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

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.

pr_review.py Counts a Back-Reference to an Unread Thread as a Finding With No Thread

2 participants