diff --git a/components/server/src/projects/projects-service.ts b/components/server/src/projects/projects-service.ts index 0bbe85ce241542..b0d7bf93ea7dfe 100644 --- a/components/server/src/projects/projects-service.ts +++ b/components/server/src/projects/projects-service.ts @@ -137,7 +137,7 @@ export class ProjectsService { const parsedUrl = RepoURL.parseRepoUrl(project.cloneUrl); const hostContext = parsedUrl?.host ? this.hostContextProvider.get(parsedUrl?.host) : undefined; const type = hostContext && hostContext.authProvider.info.authProviderType; - if (type !== "github.com") { + if (type === "GitLab" || type === "Bitbucket") { const repositoryService = hostContext?.services?.repositoryService; if (repositoryService) { // Note: For GitLab, we expect .canInstallAutomatedPrebuilds() to always return true, because earlier