Skip to content

Commit b10bdc6

Browse files
jankeromnesroboquat
authored andcommitted
[server][hotfix] Disable webhooks for github.com and GitHub Enterprise
1 parent 2a9a50f commit b10bdc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/server/src/projects/projects-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export class ProjectsService {
135135
const parsedUrl = RepoURL.parseRepoUrl(project.cloneUrl);
136136
const hostContext = parsedUrl?.host ? this.hostContextProvider.get(parsedUrl?.host) : undefined;
137137
const type = hostContext && hostContext.authProvider.info.authProviderType;
138-
if (type !== "github.com") {
138+
if (type === "GitLab" || type === "Bitbucket") {
139139
const repositoryService = hostContext?.services?.repositoryService;
140140
if (repositoryService) {
141141
// Note: For GitLab, we expect .canInstallAutomatedPrebuilds() to always return true, because earlier

0 commit comments

Comments
 (0)