mirror of
https://github.com/matrix-org/matrix-hookshot.git
synced 2025-03-10 21:19:13 +00:00
Fix issue where GitLab support would break if GitHub wasn't also configured (#362)
* Drop !github * changelog
This commit is contained in:
parent
0241a90e9d
commit
2a9326a499
1
changelog.d/362.bugfix
Normal file
1
changelog.d/362.bugfix
Normal file
@ -0,0 +1 @@
|
||||
Fixed an issue that prevented GitLab repo connections from working if GitHub support is disabled.
|
@ -155,8 +155,8 @@ export class GitLabRepoConnection extends CommandConnection {
|
||||
throw new ValidatorApiError(validator.errors);
|
||||
}
|
||||
|
||||
static async createConnectionForState(roomId: string, event: StateEvent<Record<string, unknown>>, {as, tokenStore, github, config}: InstantiateConnectionOpts) {
|
||||
if (!github || !config.gitlab) {
|
||||
static async createConnectionForState(roomId: string, event: StateEvent<Record<string, unknown>>, {as, tokenStore, config}: InstantiateConnectionOpts) {
|
||||
if (!config.gitlab) {
|
||||
throw Error('GitLab is not configured');
|
||||
}
|
||||
const state = this.validateState(event.content, true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user