Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Eli Barzilay <[email protected]>
  • Loading branch information
jablko and elibarzilay committed Jan 22, 2021
1 parent 43d41fc commit 17adcf9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pr-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,9 @@ function getReviews(prInfo: PR_repository_pullRequest) {
if (!prInfo.reviewRequests?.nodes?.some(reviewRequest =>
reviewRequest?.requestedReviewer
&& "login" in reviewRequest.requestedReviewer
&& sameUser(reviewRequest.requestedReviewer.login, reviewer))) reviews.push({ type: "changereq", reviewer, date });
&& sameUser(reviewRequest.requestedReviewer.login, reviewer))) {
reviews.push({ type: "changereq", reviewer, date });
}
continue;
}
if (r.state !== PullRequestReviewState.APPROVED) continue;
Expand Down

0 comments on commit 17adcf9

Please sign in to comment.