diff --git a/web/app/configs/bridge/hookshot-github/hookshot-github.bridge.component.ts b/web/app/configs/bridge/hookshot-github/hookshot-github.bridge.component.ts index 02aa1d9..33aa7bb 100644 --- a/web/app/configs/bridge/hookshot-github/hookshot-github.bridge.component.ts +++ b/web/app/configs/bridge/hookshot-github/hookshot-github.bridge.component.ts @@ -127,7 +127,7 @@ export class HookshotGithubBridgeConfigComponent extends BridgeComponent { + this.hookshot.bridgeRoom(this.roomId, this.orgId, this.repoId).then(conn => { this.bridge.config.connections.push(conn); this.isBusy = false; this.translate.get('Bridge requested').subscribe((res: string) => { diff --git a/web/app/shared/services/integrations/hookshot-github-api.service.ts b/web/app/shared/services/integrations/hookshot-github-api.service.ts index 15bd232..f209c4a 100644 --- a/web/app/shared/services/integrations/hookshot-github-api.service.ts +++ b/web/app/shared/services/integrations/hookshot-github-api.service.ts @@ -14,9 +14,10 @@ export class HookshotGithubApiService extends AuthedApi { super(http); } - public bridgeRoom(roomId: string): Promise { + public bridgeRoom(roomId: string, orgId: string, repoId: string): Promise { return this.authedPost("/api/v1/dimension/hookshot/github/room/" + roomId + "/connect", { - // TODO + orgId, + repoId, }).toPromise(); }