diff options
Diffstat (limited to 'services/pull/review.go')
-rw-r--r-- | services/pull/review.go | 4 |
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 } |