Repository navigation
Read an Absolute-URL Thread Link in pr_review.py's Overview Sections - #2678
Conversation
Copilot's open-findings section now links each entry to its thread by an absolute pull request URL ending in #discussion_r<id>, which the relative-only DISCUSSION_LINK pattern did not match, so every such entry read as unlinked and status printed a false FINDINGS WITH NO THREAD block. The pattern now also accepts a github.com pull request URL before the fragment. The URL's pull request is not compared with the one being read, since an id no thread here carries is still counted unthreaded by its id. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Give the test helper a link base, defaulting to the relative form, so the new tests write absolute links directly instead of replacing the relative ones after the fact. 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 11 minutes. View limit detailsLimit details: You’ve used the included review currently available. Review configuration: ⚙️ Run configuration
📒 Files selected for processing (2)
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
No approval-blocking issues were identified; the remaining comment is a minor documentation nit.
1 open finding
What changed in this PR
Updates pr_review.py to recognize absolute pull-request discussion URLs while preserving relative links.
Changes:
- Expanded discussion-link parsing.
- Added regression tests for linked and unthreaded absolute URLs.
| File | Description |
|---|---|
tests/test_pr_review.py |
Covers absolute-link behavior. |
scripts/pr_review.py |
Recognizes absolute discussion URLs. |
🧠 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 #2678 +/- ##
==========================================
Coverage ? 59.58%
==========================================
Files ? 16
Lines ? 8317
Branches ? 0
==========================================
Hits ? 4956
Misses ? 3361
Partials ? 0
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:
|
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |
|
@coderabbitai review |
|
…ain (#2683) ## Summary Promotes develop to main. It carries five changes: - #2673 Adds the removal of the `push:` block to the Docker delta list in `docs/reusable-workflows.md` "Adopting the Release Chain". - #2675 Mounts a snapshot of tracked files, rather than the live checkout, into `docker_lint.py` lint containers, so git-ignored files and build output never reach a linter. - #2684 Drops tracked files deleted from disk from `docker_lint.py`'s lint targets, answering this pull request's review finding. - #2678 Reads an absolute-URL thread link in `pr_review.py`'s overview sections. - #2661 Stops calling closed issues #699 and #700 open in `docs/fleet-map.md`. Fixes #1497 Fixes #1090 Fixes #1185 Fixes #2676 Fixes #2659 🤖 Generated with [Claude Code](https://claude.com/claude-code)

Summary
DISCUSSION_LINKinscripts/pr_review.pyso an open-findings entry linking its thread by an absolute pull request URL ending in#discussion_r<id>reads as linked, keeping the fragment-relative form.open_entry_idsagainst the thread ids, so the widening hides no finding.example-owner/example-repoURL: every entry linked absolutely prints noFINDINGS WITH NO THREADblock, and an absolutely linked id no thread carries is still counted. Both fail with the fix reverted.Closes on promotion: #2676
Verification
python3 -m unittest discover -s tests -p 'test_*.py': 2411 tests, OK.ruff format --check,ruff check,mypy,spec/validate.py: clean.local-strict-reviewpass recorded on the pushed content.🤖 Generated with Claude Code