From eacdd7bfd43fe959841e7dd37f0d1dfd9dc10350 Mon Sep 17 00:00:00 2001 From: Adela Homolova Date: Mon, 16 Dec 2019 14:17:34 +0100 Subject: [PATCH] fix: value name --- src/services/bitbucket/BitbucketService.ts | 4 ++-- src/services/git/GitHubService.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/services/bitbucket/BitbucketService.ts b/src/services/bitbucket/BitbucketService.ts index 487f505dd..64548dcf7 100644 --- a/src/services/bitbucket/BitbucketService.ts +++ b/src/services/bitbucket/BitbucketService.ts @@ -387,8 +387,8 @@ export class BitbucketService implements IVCSService { throw new Error('Method not implemented yet.'); } - async getPullsDiffStat(owner: string, repo: string, sha: string) { - const diffStatData = (await this.client.pullrequests.getDiffStat({ repo_slug: repo, username: owner, pull_request_id: sha })).data; + async getPullsDiffStat(owner: string, repo: string, prNumber: string) { + const diffStatData = (await this.client.pullrequests.getDiffStat({ repo_slug: repo, username: owner, pull_request_id: prNumber })).data; let linesRemoved = 0, linesAdded = 0; diff --git a/src/services/git/GitHubService.ts b/src/services/git/GitHubService.ts index 54e9a4963..3c79eee7d 100644 --- a/src/services/git/GitHubService.ts +++ b/src/services/git/GitHubService.ts @@ -493,9 +493,9 @@ export class GitHubService implements IVCSService { return { items, ...pagination }; } - async getPullsDiffStat(owner: string, repo: string, sha: string) { + async getPullsDiffStat(owner: string, repo: string, prNumber: string) { // eslint-disable-next-line @typescript-eslint/camelcase - const response = await this.unwrap(this.client.pulls.get({ owner, repo, pull_number: (sha) })); + const response = await this.unwrap(this.client.pulls.get({ owner, repo, pull_number: (prNumber) })); return { additions: response.data.additions,