From 35330268664d395c50d3af57e6c44d1d21bc8167 Mon Sep 17 00:00:00 2001 From: Adela Homolova Date: Thu, 16 Jan 2020 16:30:44 +0100 Subject: [PATCH] fix: save the right value to the id (prNumber) --- src/services/git/GitHubService.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/git/GitHubService.ts b/src/services/git/GitHubService.ts index 27f3ce59c..fdb056866 100644 --- a/src/services/git/GitHubService.ts +++ b/src/services/git/GitHubService.ts @@ -93,7 +93,7 @@ export class GitHubService implements IVCSService { closedAt: val.closed_at, mergedAt: val.merged_at, state: val.state, - id: val.id, + id: val.number, base: { repo: { url: val.base.repo.url, @@ -105,7 +105,7 @@ export class GitHubService implements IVCSService { }; // Get number of changes, additions and deletions in PullRequest if the withDiffStat is true if (options?.withDiffStat) { - const lines = await this.getPullsDiffStat(owner, repo, val.id); + const lines = await this.getPullsDiffStat(owner, repo, val.number); return { ...pullRequest, lines }; } return pullRequest;