Skip to content

Commit d8b3932

Browse files
Load reviewer before sending notification (#27063) (#27064)
Fixes #27035
1 parent 9df573b commit d8b3932

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

modules/notification/mail/mail.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,9 @@ func (m *mailNotifier) NotifyPullRequestPushCommits(ctx context.Context, doer *u
177177
}
178178

179179
func (m *mailNotifier) NotifyPullReviewDismiss(ctx context.Context, doer *user_model.User, review *issues_model.Review, comment *issues_model.Comment) {
180+
if err := comment.Review.LoadReviewer(ctx); err != nil {
181+
log.Error("Error in PullReviewDismiss while loading reviewer for issue[%d], review[%d] and reviewer[%d]: %v", review.Issue.ID, comment.Review.ID, comment.Review.ReviewerID, err)
182+
}
180183
if err := mailer.MailParticipantsComment(ctx, comment, activities_model.ActionPullReviewDismissed, review.Issue, nil); err != nil {
181184
log.Error("MailParticipantsComment: %v", err)
182185
}

0 commit comments

Comments
 (0)