Skip to content

Commit 48c9865

Browse files
authored
Fix review request notification issue link when external issue tracker is enabled (#13723)
The issue.HTMLURL() automatically gets converted to the expected #issue format by the post processors
1 parent e7b47c5 commit 48c9865

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/notification/mail/mail.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ func (m *mailNotifier) NotifyIssueChangeAssignee(doer *models.User, issue *model
104104

105105
func (m *mailNotifier) NotifyPullReviewRequest(doer *models.User, issue *models.Issue, reviewer *models.User, isRequest bool, comment *models.Comment) {
106106
if isRequest && doer.ID != reviewer.ID && reviewer.EmailNotifications() == models.EmailNotificationsEnabled {
107-
ct := fmt.Sprintf("Requested to review #%d.", issue.Index)
107+
ct := fmt.Sprintf("Requested to review %s.", issue.HTMLURL())
108108
mailer.SendIssueAssignedMail(issue, doer, ct, comment, []string{reviewer.Email})
109109
}
110110
}

0 commit comments

Comments
 (0)