Skip to content

Commit

Permalink
[server][hotfix] Disable webhooks for github.com and GitHub Enterprise
Browse files Browse the repository at this point in the history
  • Loading branch information
jankeromnes committed Mar 10, 2022
1 parent a9715ee commit 45ffc24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/server/src/projects/projects-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 45ffc24

Please sign in to comment.