summaryrefslogtreecommitdiffstats
path: root/services/pull
diff options
context:
space:
mode:
authorguillep2k <18600385+guillep2k@users.noreply.github.com>2019-11-13 15:36:04 -0300
committerzeripath <art27@cantab.net>2019-11-13 18:36:04 +0000
commit8282f262509587088277ea5d5981eacfcf81cc60 (patch)
treef548db45f3c7827be305a5754418c499f3bc8880 /services/pull
parent3b0303a4fcbb8b8fda258e11edb3fd3c5c09396e (diff)
downloadgitea-8282f262509587088277ea5d5981eacfcf81cc60.tar.gz
gitea-8282f262509587088277ea5d5981eacfcf81cc60.zip
Don't send notification on pending reviews (#8943)
Diffstat (limited to 'services/pull')
-rw-r--r--services/pull/review.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/services/pull/review.go b/services/pull/review.go
index e4aae3c0d5..294297f956 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
}