Skip to content

Conversation

@inidona
Copy link

@inidona inidona commented Jan 23, 2026

Hi, would be very helpfull if you can check this and publish it to the browsers

Copilot AI review requested due to automatic review settings January 23, 2026 12:08
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds an additional URL match pattern to the browser extension manifests to load the content script on a GitHub Enterprise-related domain pattern.

Changes:

  • Update Chrome (MV3) manifest content_scripts.matches to include https://*.ghe.com/*
  • Update Firefox (MV2) manifest content_scripts.matches to include https://*.ghe.com/*

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
chrome/manifest.json Extends content script URL match list with a *.ghe.com pattern
mozilla/manifest.json Extends content script URL match list with a *.ghe.com pattern

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

"content_scripts": [
{
"matches": ["https://github.com/*", "https://gist.github.com/*"],
"matches": ["https://github.com/*", "https://gist.github.com/*", "https://*.ghe.com/*"],
Copy link

Copilot AI Jan 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The added match pattern only covers subdomains of ghe.com (and not ghe.com itself), and it likely won’t satisfy the stated goal of “GitHub Enterprise URLs” since most Enterprise Server instances run on arbitrary custom hostnames (e.g., github.company.com). Consider either adding an explicit pattern for https://ghe.com/* (if desired) and/or switching to a configurable/optional host permission + dynamic script injection approach so users can add their own Enterprise domain(s).

Copilot uses AI. Check for mistakes.
"content_scripts": [
{
"matches": ["https://github.com/*", "https://gist.github.com/*"],
"matches": ["https://github.com/*", "https://gist.github.com/*", "https://*.ghe.com/*"],
Copy link

Copilot AI Jan 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The added match pattern only covers subdomains of ghe.com (and not ghe.com itself), and it likely won’t satisfy the stated goal of “GitHub Enterprise URLs” since most Enterprise Server instances run on arbitrary custom hostnames (e.g., github.company.com). Consider either adding an explicit pattern for https://ghe.com/* (if desired) and/or switching to a configurable/optional host permission + dynamic script injection approach so users can add their own Enterprise domain(s).

Copilot uses AI. Check for mistakes.
@inidona
Copy link
Author

inidona commented Jan 23, 2026

#9 should fix if using a subdomain of ghe.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant