Skip to content

Commit

Permalink
fix: value name
Browse files Browse the repository at this point in the history
  • Loading branch information
adelkahomolova committed Dec 16, 2019
1 parent f11ac89 commit eacdd7b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/services/bitbucket/BitbucketService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/services/git/GitHubService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: <number>(<unknown>sha) }));
const response = await this.unwrap(this.client.pulls.get({ owner, repo, pull_number: <number>(<unknown>prNumber) }));

return {
additions: response.data.additions,
Expand Down

0 comments on commit eacdd7b

Please sign in to comment.