Repository navigation
Count No Earlier Round When the Head Is Unreadable and Import Audit at Module Scope - #2933
Conversation
…t Module Scope round_before_head compared every review oid against an empty head, so an unreadable headRefOid made any review an earlier round and wait requested nothing. The audit import comment became false once hub_name() went lazy, so the import moves to module scope. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
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 small changes match their stated purpose, have focused regression coverage, and have no unresolved findings.
0 open findings
What changed in this PR
This PR fixes review-round detection when a pull request’s head is unreadable and updates an audit test import after hub-name resolution became lazy.
Changes:
- Treat an unreadable head as having no earlier review round, with regression cases for
Noneand an empty string. - Move the audit import to module scope and remove its obsolete explanation.
| File | Description |
|---|---|
scripts/pr_review.py |
Corrects earlier-round detection for an unreadable head. |
tests/test_pr_review.py |
Tests both unreadable-head cases. |
tests/test_spec_validate.py |
Moves the audit import and removes the outdated comment. |
🧠 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 #2933 +/- ##
========================================
Coverage 59.96% 59.96%
========================================
Files 17 17
Lines 8777 8777
========================================
Hits 5263 5263
Misses 3514 3514
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:
|
round_before_head compared every review oid against an empty head when headRefOid was unreadable, so any review counted as an earlier round and wait requested nothing. It now returns False, matching its docstring.
The comment justifying a function-local import of audit in the spec tests became false when hub_name() went lazy, so the import moves to module scope and the comment is dropped.
Part of #2897 and #2829.
🤖 Generated with Claude Code