From 45ffc24c80cbb7637af30eb559530308033f3689 Mon Sep 17 00:00:00 2001 From: Jan Keromnes Date: Thu, 10 Mar 2022 15:24:00 +0000 Subject: [PATCH] [server][hotfix] Disable webhooks for github.com and GitHub Enterprise --- components/server/src/projects/projects-service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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