diff --git a/changelog.d/362.bugfix b/changelog.d/362.bugfix new file mode 100644 index 00000000..d1fd0bc9 --- /dev/null +++ b/changelog.d/362.bugfix @@ -0,0 +1 @@ +Fixed an issue that prevented GitLab repo connections from working if GitHub support is disabled. \ No newline at end of file diff --git a/src/Connections/GitlabRepo.ts b/src/Connections/GitlabRepo.ts index 631b58b5..feaa9d05 100644 --- a/src/Connections/GitlabRepo.ts +++ b/src/Connections/GitlabRepo.ts @@ -155,8 +155,8 @@ export class GitLabRepoConnection extends CommandConnection { throw new ValidatorApiError(validator.errors); } - static async createConnectionForState(roomId: string, event: StateEvent>, {as, tokenStore, github, config}: InstantiateConnectionOpts) { - if (!github || !config.gitlab) { + static async createConnectionForState(roomId: string, event: StateEvent>, {as, tokenStore, config}: InstantiateConnectionOpts) { + if (!config.gitlab) { throw Error('GitLab is not configured'); } const state = this.validateState(event.content, true);