Browse Source

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

tags/v1.11.0-rc1
guillep2k zeripath 5 years ago
parent
commit
0ab5c7f2b3
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      services/pull/review.go

+ 3
- 1
services/pull/review.go View File

@@ -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