@@ -36,6 +36,7 @@ import { ChargebeeService } from "../user/chargebee-service";
36
36
import { Chargebee as chargebee } from '@gitpod/gitpod-payment-endpoint/lib/chargebee' ;
37
37
38
38
import { GitHubAppSupport } from "../github/github-app-support" ;
39
+ import { GitHubEnterpriseAppSupport } from "../github/github-enterprise-app-support" ;
39
40
import { GitLabAppSupport } from "../gitlab/gitlab-app-support" ;
40
41
import { Config } from "../../../src/config" ;
41
42
import { SnapshotService , WaitForSnapshotOptions } from "./snapshot-service" ;
@@ -68,6 +69,7 @@ export class GitpodServerEEImpl extends GitpodServerImpl {
68
69
@inject ( ChargebeeService ) protected readonly chargebeeService : ChargebeeService ;
69
70
70
71
@inject ( GitHubAppSupport ) protected readonly githubAppSupport : GitHubAppSupport ;
72
+ @inject ( GitHubEnterpriseAppSupport ) protected readonly gitHubEnterpriseAppSupport : GitHubEnterpriseAppSupport ;
71
73
@inject ( GitLabAppSupport ) protected readonly gitLabAppSupport : GitLabAppSupport ;
72
74
@inject ( BitbucketAppSupport ) protected readonly bitbucketAppSupport : BitbucketAppSupport ;
73
75
@@ -1476,6 +1478,8 @@ export class GitpodServerEEImpl extends GitpodServerImpl {
1476
1478
1477
1479
if ( providerHost === "github.com" ) {
1478
1480
repositories . push ( ...( await this . githubAppSupport . getProviderRepositoriesForUser ( { user, ...params } ) ) ) ;
1481
+ } else if ( provider ?. authProviderType === "GitHub" ) {
1482
+ repositories . push ( ...( await this . gitHubEnterpriseAppSupport . getProviderRepositoriesForUser ( { user, provider } ) ) ) ;
1479
1483
} else if ( providerHost === "bitbucket.org" && provider ) {
1480
1484
repositories . push ( ...( await this . bitbucketAppSupport . getProviderRepositoriesForUser ( { user, provider } ) ) ) ;
1481
1485
} else if ( provider ?. authProviderType === "GitLab" ) {
0 commit comments