From 9ab6c8f3f25cc8aca2803412da5fd544cb9d6a5e Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Mon, 6 Dec 2021 15:43:17 -0700 Subject: [PATCH] Actually send github bridge info --- .../hookshot-github/hookshot-github.bridge.component.ts | 2 +- .../services/integrations/hookshot-github-api.service.ts | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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(); }