mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-02 19:39:49 +02:00
Don't send notification on pending reviews (#8943)
This commit is contained in:
1 parent
3b0303a4fc
commit
8282f26250
1 file changed
+3
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user