fix(review): elect same-issue duplicate winners by claim time - #1765
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1765 +/- ##
=======================================
Coverage 95.61% 95.61%
=======================================
Files 214 214
Lines 23233 23249 +16
Branches 8393 8397 +4
=======================================
+ Hits 22214 22230 +16
Misses 422 422
Partials 597 597
🚀 New features to boost your workflow:
|
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-06-30 01:38:02 UTC
⏸️ Suggested Action - Manual Review
Review summary Nits — 6 non-blocking
Review context
Contributor next steps
Signal definitions
🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
a0bc382 to
ebd8d2d
Compare
ebd8d2d to
84bd7d6
Compare
Summary
Why
Sparse migrated PR rows can lack
linkedIssueClaimedAt. Treating any missing timestamp as a hard failure leaves every sibling duplicate-blocked until all cached rows are refreshed. The elected winner also should not keep showing the same-linked duplicate PR as blocking related-work evidence, but unrelated or mixed overlap context should remain visible for maintainers.What changed
Validation
npm run typechecknpx vitest run test/unit/duplicate-winner.test.tsnpx vitest run test/unit/signals-coverage.test.ts -t "dup-winner"npx vitest run test/unit/rules.test.ts -t "dup-winner"npx vitest run test/unit/queue.test.ts -t "flag ON spares the lowest open sibling"npx vitest run test/unit/unified-comment-parity.test.tsnpm run test:coveragegit diff --checkNotes
src/**line with zero hits or zero-hit branch records.