From f283f4c8cbd2761d59645c684eb25dca62f77b3e Mon Sep 17 00:00:00 2001 From: Guillermo Prandi Date: Tue, 12 Nov 2019 22:27:32 -0300 Subject: [PATCH] Don't send notification on pending reviews --- services/pull/review.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/pull/review.go b/services/pull/review.go index e4aae3c0d5885..294297f956dac 100644 --- a/services/pull/review.go +++ b/services/pull/review.go @@ -17,7 +17,9 @@ func CreateReview(opts models.CreateReviewOptions) (*models.Review, error) { return nil, err } - notification.NotifyPullRequestReview(review.Issue.PullRequest, review, nil) + if opts.Type != models.ReviewTypePending { + notification.NotifyPullRequestReview(review.Issue.PullRequest, review, nil) + } return review, nil }