fix(signals): move isTestFile/isCodeFile out of local-branch.ts to unbreak ui:typecheck - #3709
Conversation
…break ui:typecheck path-matchers.ts importing isCodeFile/isTestFile from local-branch.ts pulled the whole review-scoring/Gittensor-API subsystem into any caller's import graph. focus-manifest.ts (which PR #3690 made import classifyChangedFile from path-matchers.ts) is reachable from the UI via a long-standing cross-boundary import, so ui:typecheck started failing repo-wide with Env/D1Database ambient-type errors it has no way to resolve. Both functions were only ever thin, self-contained path-matching helpers incidentally defined in local-branch.ts. Move them into path-matchers.ts (zero remaining dependency on local-branch.ts), with local-branch.ts importing them back and re-exporting for its existing importers. Add a structural test asserting path-matchers.ts never imports from local-branch.ts again.
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-06 05:29:30 UTC
⏸️ Suggested Action - Manual Review Review summary Nits — 5 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.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3709 +/- ##
=======================================
Coverage 93.36% 93.36%
=======================================
Files 315 315
Lines 32204 32204
Branches 11812 11812
=======================================
Hits 30066 30066
Misses 1507 1507
Partials 631 631
🚀 New features to boost your workflow:
|
Summary
Closes #3708
Scope
No behavior change: both functions' bodies are byte-identical, just relocated.
Validation
Safety