fix(review): wire category tally into unified comments#3969
Conversation
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-07 08:17:42 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 #3969 +/- ##
=======================================
Coverage 93.68% 93.68%
=======================================
Files 373 373
Lines 34895 34897 +2
Branches 12768 12770 +2
=======================================
+ Hits 32692 32694 +2
Misses 1584 1584
Partials 619 619
🚀 New features to boost your workflow:
|
Motivation
UnifiedReviewInput.inlineFindingsis present, but the live bridge built the renderer input viabuildUnifiedReviewInputwithout supplyinginlineFindings, so production unified comments omitted the new one-line tally.findingCategories, so the live path should reuse that data to enable the tally without changing rendering semantics.Description
inlineFindingsoption tobuildUnifiedReviewInputand preserve it on the returnedUnifiedReviewInputso renderers can read line-anchored finding categories. (file:src/review/unified-comment.ts)args.findingCategoriesintobuildUnifiedReviewInputasinlineFindingswhen present so the live unified comment path can render the compact category tally. (file:src/review/unified-comment-bridge.ts)buildUnifiedCommentBodyproduces both the one-line**Findings by category:**summary and the existing "Finding categories" collapsible when category data is supplied, and that both are absent when the input is missing or empty. (file:test/unit/finding-category-collapsible.test.ts)Testing
npx vitest run test/unit/finding-category-collapsible.test.ts test/unit/finding-category-tally.test.ts, and both test files passed.npm run typecheckand it completed successfully.git diff --checkto validate whitespace/conflict hygiene and it passed.npm audit --audit-level=moderatefailed due to an external registry403 Forbidden(audit endpoint), so dependency-audit could not be completed locally.npm run test:coverage; the full coverage run did not complete in time in this environment due to long-running pre-existing queue-suite output and was interrupted, so a full unsharded coverage run should be verified before pushing to ensure patch-coverage requirements are met.Codex Task