Skip to content

Commit

Permalink
fix: Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
adelkahomolova committed Dec 16, 2019
1 parent f8c513e commit 2c33c17
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/services/bitbucket/BitbucketService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ export class BitbucketService 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}`);
return { ...pullRequest, lines };
Expand Down Expand Up @@ -186,6 +187,7 @@ export class BitbucketService implements IVCSService {
},
},
};
// Get number of changes, additions and deletions in PullRequest if the withDiffStat is true
if (withDiffStat) {
const lines = await this.getPullsDiffStat(owner, repo, `${prNumber}`);
return { ...pullRequest, lines };
Expand Down
2 changes: 2 additions & 0 deletions src/services/git/GitHubService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,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}`);
return { ...pullRequest, lines };
Expand Down Expand Up @@ -158,6 +159,7 @@ export class GitHubService implements IVCSService {
},
},
};
// Get number of changes, additions and deletions in PullRequest if the withDiffStat is true
if (withDiffStat) {
const lines = await this.getPullsDiffStat(owner, repo, `${prNumber}`);
return { ...pullRequest, lines };
Expand Down

0 comments on commit 2c33c17

Please sign in to comment.