fix(extension): remove dead matchPullRequestTarget from content script - #8048
fix(extension): remove dead matchPullRequestTarget from content script#8048xfodev wants to merge 1 commit into
Conversation
JSONbored#8023) JSONbored#7487 narrowed matchGitHubPageTarget to pull/* pages and simplified the target guard, leaving matchPullRequestTarget behind — a stranded duplicate of matchGitHubPageTarget minus its `kind` field. It has no production caller; it was only re-exported through the __loopoverContentInternals test-hook, which apps/loopover-extension has no test suite to consume. Remove the function and its __loopoverContentInternals entry. Pure dead-code removal, no behavior change; matchGitHubPageTarget (the canonical matcher, still used by the content-script guard) is untouched. Closes JSONbored#8023
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Caution 🛑 LoopOver review result - reject/close recommendedReview updated: 2026-07-22 15:35:17 UTC
Review summary Blockers
Nits — 4 non-blocking
Why this is blocked
📋 Copy for AI agents — paste into your coding agentDecision 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 (AI reviewers agree on a likely critical defect: test/unit/extension-content.test.ts's 'detects GitHub pull request routes and treats issue pages as out of scope' test calls `internals.matchPullRequestTarget(...)` several times, but this diff deletes the `matchPullRequestTarget` export from content.js's `__loopoverContentInternals` object without updating that test, so `internals.matchPullRequestTarget` becomes `undefined` and the call will throw a TypeError when that test runs.). 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
#7487 narrowed
matchGitHubPageTargettopull/*pages and simplified theif (target)guard, but leftmatchPullRequestTargetbehind inapps/loopover-extension/content.js— a stranded duplicate ofmatchGitHubPageTargetminus itskindfield.__loopoverContentInternalstest-hook object, andapps/loopover-extensionhas no test suite to consume it (unlike its siblingapps/loopover-miner-extension).__loopoverContentInternalsentry (line 195).matchGitHubPageTarget— the canonical matcher still used by the content-script guard (location.pathname) — is untouched.Pure dead-code removal, no behavior change.
UI Evidence
N/A — content-script logic only (a browser-extension dead-code deletion); no rendered UI/frontend change, no visual surface affected.
Validation
grepconfirms zero remaining references tomatchPullRequestTarget.extension:lint,extension:typecheck(node --check), andextension:buildall pass.ui:version-auditclean.matchGitHubPageTargetstill used in production (location.pathnameguard) — not orphaned.Closes #8023