Don't send notification on pending reviews (#8943)

tokarchuk/v1.17
guillep2k 5 years ago committed by zeripath
parent 3b0303a4fc
commit 8282f26250
  1. 4
      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
}

Loading…
Cancel
Save