mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-10-01 01:05:53 -04:00
Actually send github bridge info
This commit is contained in:
parent
ae320babb4
commit
9ab6c8f3f2
@ -127,7 +127,7 @@ export class HookshotGithubBridgeConfigComponent extends BridgeComponent<Hooksho
|
||||
}
|
||||
}
|
||||
|
||||
this.hookshot.bridgeRoom(this.roomId).then(conn => {
|
||||
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) => {
|
||||
|
@ -14,9 +14,10 @@ export class HookshotGithubApiService extends AuthedApi {
|
||||
super(http);
|
||||
}
|
||||
|
||||
public bridgeRoom(roomId: string): Promise<FE_HookshotGithubConnection> {
|
||||
public bridgeRoom(roomId: string, orgId: string, repoId: string): Promise<FE_HookshotGithubConnection> {
|
||||
return this.authedPost<FE_HookshotGithubConnection>("/api/v1/dimension/hookshot/github/room/" + roomId + "/connect", {
|
||||
// TODO
|
||||
orgId,
|
||||
repoId,
|
||||
}).toPromise();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user