From 9610d93954d04666969724321518870c78d0130f Mon Sep 17 00:00:00 2001 From: Javier Bullrich Date: Wed, 26 Jul 2023 12:48:21 +0000 Subject: [PATCH] added more logs --- src/github/pullRequest.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/github/pullRequest.ts b/src/github/pullRequest.ts index bdb4c71..baaaf93 100644 --- a/src/github/pullRequest.ts +++ b/src/github/pullRequest.ts @@ -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); }