summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorJimmy Praet <jimmy.praet@ksz-bcss.fgov.be>2020-11-28 12:06:59 +0100
committerGitHub <noreply@github.com>2020-11-28 13:06:59 +0200
commit48c9865fce915c28fe3759cfb1b75c65feac2f55 (patch)
tree77a8ceb05659fbd7f4fee90c757cb5086b4e889a /modules
parente7b47c521523099826f42b166f7b562741c07834 (diff)
downloadgitea-48c9865fce915c28fe3759cfb1b75c65feac2f55.tar.gz
gitea-48c9865fce915c28fe3759cfb1b75c65feac2f55.zip
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
Diffstat (limited to 'modules')
-rw-r--r--modules/notification/mail/mail.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/notification/mail/mail.go b/modules/notification/mail/mail.go
index 9b2c27280f..847a2f30a7 100644
--- a/modules/notification/mail/mail.go
+++ b/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})
}
}