1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-26 13:29:12 -05:00

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

This commit is contained in:
guillep2k 2019-11-13 15:36:04 -03:00 committed by zeripath
parent 3b0303a4fc
commit 8282f26250

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
}