Skip to content

Conversation

@setchy
Copy link
Member

@setchy setchy commented Jan 24, 2026

Closes #2560

Signed-off-by: Adam Setch <adam.setch@outlook.com>
@github-actions github-actions bot added the enhancement New feature or enhancement to existing functionality label Jan 24, 2026
@setchy setchy requested review from Copilot and removed request for afonsojramos and bmulholland January 24, 2026 04:11
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

This PR adds support for GitHub Enterprise Cloud with Data Residency, which uses *.ghe.com domains according to GitHub's documentation. The implementation extends the existing platform detection and API configuration logic to handle this new platform type alongside GitHub Cloud and GitHub Enterprise Server.

Changes:

  • Added 'GitHub Enterprise Cloud with Data Residency' as a new PlatformType
  • Implemented hostname detection for .ghe.com domains
  • Updated API and authentication URL construction to use api.subdomain.ghe.com pattern
  • Added ShieldCheckIcon for the new platform type

Reviewed changes

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

Show a summary per file
File Description
src/renderer/utils/auth/types.ts Extended PlatformType union type to include 'GitHub Enterprise Cloud with Data Residency'
src/renderer/constants.ts Added GITHUB_ENTERPRISE_CLOUD_DATA_RESIDENCY_HOSTNAME constant for 'ghe.com'
src/renderer/utils/helpers.ts Updated getPlatformFromHostname to detect .ghe.com domains and added isCloudDataResidencyHost helper
src/renderer/utils/helpers.test.ts Added comprehensive tests for Data Residency hostname detection
src/renderer/utils/api/utils.ts Updated getGitHubAPIBaseUrl to construct api.subdomain.ghe.com URLs for Data Residency
src/renderer/utils/api/utils.test.ts Added tests for Data Residency REST and GraphQL API URL generation
src/renderer/utils/auth/utils.ts Updated getGitHubAuthBaseUrl to support Data Residency, replaced isEnterpriseServerHost check with getPlatformFromHostname
src/renderer/utils/icons.ts Added ShieldCheckIcon for Data Residency platform
src/renderer/utils/icons.test.ts Added snapshot test for Data Residency platform icon
src/renderer/utils/snapshots/icons.test.ts.snap Generated snapshot for ShieldCheckIcon
src/renderer/mocks/account-mocks.ts Added mock account for Data Residency testing

Signed-off-by: Adam Setch <adam.setch@outlook.com>
@sonarqubecloud
Copy link

@setchy setchy merged commit acfc614 into main Jan 24, 2026
14 checks passed
@setchy setchy deleted the feat/cloud-data-residency branch January 24, 2026 04:30
@github-actions github-actions bot added this to the Release 6.15.0 milestone Jan 24, 2026
@setchy setchy modified the milestones: Release 6.15.0, Release 6.16.0 Jan 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or enhancement to existing functionality

Development

Successfully merging this pull request may close these issues.

Add GitHub Enterprise Cloud with Data Residency support

2 participants