Skip to content

fix(extension): remove dead matchPullRequestTarget from content script - #8045

Closed
lourincedaging0-commits wants to merge 1 commit into
JSONbored:mainfrom
lourincedaging0-commits:fix/remove-dead-matchpullrequesttarget-8023
Closed

fix(extension): remove dead matchPullRequestTarget from content script#8045
lourincedaging0-commits wants to merge 1 commit into
JSONbored:mainfrom
lourincedaging0-commits:fix/remove-dead-matchpullrequesttarget-8023

Conversation

@lourincedaging0-commits

Copy link
Copy Markdown
Contributor

Summary

matchPullRequestTarget in apps/loopover-extension/content.js duplicated matchGitHubPageTarget (minus the kind field) and was left stranded when #7462/#7487 narrowed content-script matching to pull/* and simplified the if (target) guard. Nothing in production consumed it — only the __loopoverContentInternals test-hook re-exported it.

Changes

  • Delete matchPullRequestTarget and its entry in the __loopoverContentInternals export.
  • Drop the now-dead matchPullRequestTarget assertions and type declaration from test/unit/extension-content.test.ts (the matchGitHubPageTarget coverage in the same test is retained).

node --check content.js passes and the content-script test suite is green (5 tests).

Closes #8023

matchPullRequestTarget duplicated matchGitHubPageTarget minus the kind
field and was left stranded by JSONbored#7462/JSONbored#7487 — nothing in production
consumed it, only the __loopoverContentInternals test hook re-exported
it. Remove the function and its export entry, and drop the now-dead
assertions/type from the content-script test.

Closes JSONbored#8023
@lourincedaging0-commits

Copy link
Copy Markdown
Contributor Author

Closing: this change is entirely within apps/loopover-extension (coverage-excluded), so the changed-file test run produces an empty coverage/lcov.info and the 'Verify coverage report exists' gate fails. The dead-code removal is still valid but needs a maintainer merge that bypasses that guard rather than the fork CI path.

@loopover-orb loopover-orb Bot added the gittensor:bug Gittensor-scored bug fix — scores a 0.05x multiplier. label Jul 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gittensor:bug Gittensor-scored bug fix — scores a 0.05x multiplier.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

matchPullRequestTarget is dead code left behind in loopover-extension/content.js by #7487's issue-page match removal

1 participant