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
tokarchuk/v1.17
Jimmy Praet 4 years ago committed by GitHub
parent e7b47c5215
commit 48c9865fce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      modules/notification/mail/mail.go

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

Loading…
Cancel
Save