Skip to content

Commit 8282f26

Browse files
guillep2kzeripath
authored andcommitted
Don't send notification on pending reviews (#8943)
1 parent 3b0303a commit 8282f26

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

services/pull/review.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ func CreateReview(opts models.CreateReviewOptions) (*models.Review, error) {
1717
return nil, err
1818
}
1919

20-
notification.NotifyPullRequestReview(review.Issue.PullRequest, review, nil)
20+
if opts.Type != models.ReviewTypePending {
21+
notification.NotifyPullRequestReview(review.Issue.PullRequest, review, nil)
22+
}
2123

2224
return review, nil
2325
}

0 commit comments

Comments
 (0)