fix(extension): remove dead matchPullRequestTarget from content.js - #8037
Conversation
matchPullRequestTarget duplicated matchGitHubPageTarget's logic (minus the kind field) and was stranded by JSONbored#7487's issue-page match removal. Confirmed via grep it's referenced nowhere else, including production code and the __loopoverContentInternals test-hook object. 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 14:42:51 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 still asserts on `internals.matchPullRequestTarget(...)` in multiple places, but content.js:186-193 removes that symbol from `__loopoverContentInternals`, so those assertions would throw a TypeError rather than pass — the PR's own checklist ('referenced nowhere else... only the (now-removed) definition and export existed') is contradicted by this visible test file, and the test wasn't updated in this diff.). 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. |

Closes #8023
Summary
matchPullRequestTargetinapps/loopover-extension/content.jsduplicatedmatchGitHubPageTarget's logic (minus thekindfield) and was stranded by fix(extension): drop dead issue-page content-script match #7487's issue-page match removal.__loopoverContentInternalstest-hook object.__loopoverContentInternalsexport.Scope checklist
apps/loopover-extension/content.jsValidation checklist
matchPullRequestTarget— only the (now-removed) definition and export existedapps/loopover-extensionhas no automated test suite (confirmed), matching the issue's own note; no test changes neededSafety checklist
site/,CNAME, or**/lovable/**