fix(review): require distinct PR for unlinked repeat close - #3672
Conversation
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-06 01:59:38 UTC
⏸️ Suggested Action - Manual Review
Review summary Nits — 4 non-blocking
Concerns raised — review before merging
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.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3672 +/- ##
=======================================
Coverage 93.20% 93.20%
=======================================
Files 313 313
Lines 31910 31915 +5
Branches 11677 11677
=======================================
+ Hits 29741 29746 +5
Misses 1517 1517
Partials 652 652
🚀 New features to boost your workflow:
|
Motivation
Description
hasRecentAuditEventForOtherTargettosrc/db/repositories.tsto query recent audit events for an actor/event type while excluding a specifictargetKey.pullNumberinto the unlinked-issue guardrail (src/review/unlinked-issue-guardrail.ts) and changed audittargetKeytorepoFullName#pullNumber; store the matchedissueNumberinmetadatawhen recording the occurrence.pullNumberinto the resolver from the queue processor (src/queue/processors.ts).test/unit/unlinked-issue-guardrail.test.tsto assert that reprocessing the same PR remains aholdwhile a later distinct PR by the same contributor escalates toclose.Testing
npx vitest run test/unit/unlinked-issue-guardrail.test.tsand the suite passed (16 tests passed).npx vitest run test/unit/unlinked-issue-guardrail.test.ts test/unit/agent-actions.test.tsand both files passed (246 tests total passed).npm run typechecksucceeded withtsc --noEmit(no type errors).git diff --checkwas clean.npm run test:coveragewas started but the full coverage run was interrupted by unrelated long-running/timeout failures in other test files; the targeted unit tests above passed.npm audit --audit-level=moderatecould not complete due to registry audit endpoint returning403 Forbidden(external).Codex Task