Browse Source

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
tags/v1.15.0-dev
Jimmy Praet GitHub 4 years ago
parent
commit
8075682a82
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/notification/mail/mail.go

+ 1
- 1
modules/notification/mail/mail.go View File

@@ -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