Skip to content

Commit

Permalink
Don't send notification on pending reviews (#8943)
Browse files Browse the repository at this point in the history
  • Loading branch information
guillep2k authored and zeripath committed Nov 13, 2019
1 parent 3b0303a commit 8282f26
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion services/pull/review.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 8282f26

Please sign in to comment.