Skip to content

Commit 45ffc24

Browse files
committed
[server][hotfix] Disable webhooks for github.com and GitHub Enterprise
1 parent a9715ee commit 45ffc24

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
@@ -137,7 +137,7 @@ export class ProjectsService {
137137
const parsedUrl = RepoURL.parseRepoUrl(project.cloneUrl);
138138
const hostContext = parsedUrl?.host ? this.hostContextProvider.get(parsedUrl?.host) : undefined;
139139
const type = hostContext && hostContext.authProvider.info.authProviderType;
140-
if (type !== "github.com") {
140+
if (type === "GitLab" || type === "Bitbucket") {
141141
const repositoryService = hostContext?.services?.repositoryService;
142142
if (repositoryService) {
143143
// Note: For GitLab, we expect .canInstallAutomatedPrebuilds() to always return true, because earlier

0 commit comments

Comments
 (0)