Skip to content

Skip source GHES version check when the source host ends in ghe.com#1530

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/skip-source-ghes-version-check
Draft

Skip source GHES version check when the source host ends in ghe.com#1530
Copilot wants to merge 2 commits intomainfrom
copilot/skip-source-ghes-version-check

Conversation

Copy link
Contributor

Copilot AI commented Mar 20, 2026

Hosts ending in ghe.com (GitHub Enterprise Cloud with data residency) are not GHES instances and don't support the GetEnterpriseServerVersion API. The version checker now detects ghe.com hosts and skips the version check, returning false for AreBlobCredentialsRequired.

  • Added IsGheHost helper using Uri parsing to check if the host ends with .ghe.com

  • Early return in AreBlobCredentialsRequired before calling GetEnterpriseServerVersion

  • Two new unit tests: return value correctness and verification that the API is never called

  • Did you write/update appropriate tests

  • Release notes updated (if appropriate)

  • Appropriate logging output

  • Issue linked

  • Docs updated (or issue created)

  • New package licenses are added to ThirdPartyNotices.txt (if applicable)

Original prompt

Skip the source GHES version check when the source host ends in ghe.com


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Copilot AI changed the title [WIP] Skip source GHES version check for ghe.com hosts Skip source GHES version check when the source host ends in ghe.com Mar 20, 2026
Copilot AI requested a review from tambling March 20, 2026 01:08
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.

2 participants