fix(extension): drop dead issue-page content-script match - #7487
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com>
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7487 +/- ##
==========================================
- Coverage 91.41% 91.39% -0.02%
==========================================
Files 717 717
Lines 73032 73032
Branches 21636 21635 -1
==========================================
- Hits 66762 66751 -11
- Misses 5227 5234 +7
- Partials 1043 1047 +4
Flags with carried forward coverage won't be shown. Click here to find out more. |
|
Tip ✅ LoopOver review result - approve/merge recommendedReview updated: 2026-07-20 12:37:13 UTC
Review summary Nits — 3 non-blocking
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.
|
…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.

Summary
https://github.com/*/*/issues/*from the maintainer overlay content-script matches so the extension no longer loads on issue pages it never acts on.matchGitHubPageTargetto pull-request URLs only and simplifymatchPullRequestTargetnow thatkind: "issue"cannot be produced.test/unit/extension-content.test.tswith a regression that issue URLs are out of scope and that the manifest no longer declares an issues match.Closes #7462
Scope
type(scope): short summaryConventional Commit format, for examplefix(api): restore profile access checks.CONTRIBUTING.mdand does not reintroduce GitHub Pages, VitePress,site/, orCNAME.Closes #123) — a linked open issue is required for every contributor PR.Validation
git diff --checknpm run actionlintnpm run typechecknpm run test:coveragelocally;codecov/patchrequires ≥99% coverage of the lines AND branches you changed (aim for 100% on your diff so CI variance does not fail near the threshold). Global coverage is a non-blocking trend with a loose 90% backstop, not the gate.npm run test:workersnpm run build:mcpnpm run test:mcp-packnpm run ui:openapi:checknpm run ui:lintnpm run ui:typechecknpm run ui:buildnpm audit --audit-level=moderateIf any required check was skipped, explain why:
apps/**is outside Codecovcoverage.include). Rannpx vitest run test/unit/extension-content.test.ts(4 pass). Remainingtest:cisurface is unchanged and will run in CI.Safety
UI Evidencesection below with JPG/JPEG or PNG screenshots arranged as organized, captioned, clickable thumbnails. SVG screenshots are not used as review evidence. Review-only screenshots or recordings are not committed to the repository.UI Evidence
N/A — no visible overlay change. PR pages still mount the same private pull-context overlay; issue pages already did nothing and are now simply not matched by the content script.
Notes
apps/loopover-miner-extension, which correctly targets issue pages.