Skip to content

Commit

Permalink
added more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Bullrich authored Jul 26, 2023
1 parent 2b6a7b4 commit 9610d93
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/github/pullRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export class PullRequestApi {
if (!this.usersThatApprovedThePr) {
const request = await this.api.rest.pulls.listReviews({ ...this.repoInfo, pull_number: this.number });
const reviews = request.data as PullRequestReview[];
this.logger.debug(`List of reviews: ${JSON.stringify(reviews)}`);
const approvals = reviews.filter((review) => review.state === "approved");
this.usersThatApprovedThePr = approvals.map((approval) => approval.user.login);
}
Expand Down

0 comments on commit 9610d93

Please sign in to comment.