diff --git a/src/services/bitbucket/BitbucketService.ts b/src/services/bitbucket/BitbucketService.ts index 36d73bc51..cd6a17745 100644 --- a/src/services/bitbucket/BitbucketService.ts +++ b/src/services/bitbucket/BitbucketService.ts @@ -94,7 +94,7 @@ export class BitbucketService implements IVCSService { } const ownerUrl = `www.bitbucket.org/${owner}`; - const ownerId =`${(await this.client.users.get({ username: owner })).data.uuid}`; + const ownerId = `${(await this.client.users.get({ username: owner })).data.uuid}`; const response: DeepRequired> = await axios.get(apiUrl); @@ -144,6 +144,9 @@ export class BitbucketService implements IVCSService { username: owner, }; + const ownerUrl = `www.bitbucket.org/${owner}`; + const ownerId = `${(await this.client.users.get({ username: owner })).data.uuid}`; + const response = >>await this.client.pullrequests.get(params); response.data; @@ -169,9 +172,9 @@ export class BitbucketService implements IVCSService { name: response.data.destination.repository.name, id: response.data.destination.repository.uuid, owner: { - login: response.data.author.nickname, - id: response.data.author.uuid, - url: response.data.author.links.html.href, + login: owner, + id: ownerId, + url: ownerUrl, }, }, },