refactor(extension): remove dead matchPullRequestTarget from content.js (#8023) - #8049
refactor(extension): remove dead matchPullRequestTarget from content.js (#8023)#8049real-venus wants to merge 1 commit into
Conversation
…js (JSONbored#8023) matchPullRequestTarget duplicated matchGitHubPageTarget's logic minus the kind field and was left stranded by JSONbored#7487/JSONbored#7462 (which narrowed the content-script match to pull/* only). It is unreferenced in production -- surfaced solely through the __loopoverContentInternals test hook. Remove the function and its export entry, and drop the now-orphaned assertions in extension-content.test.ts; the retained matchGitHubPageTarget coverage confirms the script still loads and routes unchanged.
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Caution 🛑 LoopOver review result - fixes requiredReview updated: 2026-07-22 15:36:23 UTC
Review summary Nits — 3 non-blocking
CI checks failing
Decision drivers
Context & advisory signals — never blocks the verdict
Linked issue satisfactionAddressed Review context
Contributor next steps
Signal definitions
🧪 Chat with LoopOverAsk LoopOver a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.
Full command reference: https://loopover.ai/docs/loopover-commands 🧪 Experimental — new and may change. Visual preview
Click any thumbnail to open the full-size screenshot. Before = production · After = this PR's preview deploy. Scroll preview
A short scroll-through clip (desktop) — click either thumbnail to open the full animation. Evidence for scroll-linked behavior a single screenshot can't show. 🟩 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 LoopOver, a quiet PR intelligence layer for OSS maintainers.
|
|
LoopOver is closing this pull request on the maintainer's behalf (CI is failing (validate, validate-tests (3), validate-tests (1), validate-tests (2))). This is an automated maintenance action — to pursue this change, please open a new pull request with the issues resolved. Closed PRs may be analyzed later to improve review accuracy, but they are not automatically reopened or re-reviewed. |

Summary
apps/loopover-extension/content.js'smatchPullRequestTargetduplicatedmatchGitHubPageTarget's logic (minus thekindfield) and was stranded by #7487/#7462, which narrowed the content-script match topull/*only and simplified the route guard. Confirmed viagit log -pthat it is unreferenced in production — it was surfaced solely through the__loopoverContentInternalstest hook.Changes
matchPullRequestTargetfromcontent.jsand remove its entry from the__loopoverContentInternalsexport.matchPullRequestTargetassertions and its type entry intest/unit/extension-content.test.ts(a backend-suite test that VM-loadscontent.js). The retainedmatchGitHubPageTargetassertions still exercise the live routing, confirming the script loads and behaves unchanged.Scope
apps/loopover-extension/**,test/**); noblockedPathsextension:buildstill succeeds)Validation
grep -rn matchPullRequestTarget— no remaining references anywhere in the reponpm run extension:lint/extension:typecheck(node --check) — passnpm run extension:build— succeedsnpx vitest run test/unit/extension-content.test.ts— 5/5 pass (the retainedmatchGitHubPageTarget+ render/overlay coverage validates the loaded script)git diff --checkcleanSafety
matchGitHubPageTarget,renderPullContext, overlay/refresh behavior all untouched and still coveredCloses #8023