From 15cb21e08418a950edff9dd8b38bfd8b351c507d Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Tue, 28 May 2019 16:24:22 +0800 Subject: [PATCH 1/2] chore: change issue mail title. Signed-off-by: Bo-Yi Wu --- models/issue_mail.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/issue_mail.go b/models/issue_mail.go index 033c094c7562c..2df51335c9223 100644 --- a/models/issue_mail.go +++ b/models/issue_mail.go @@ -16,7 +16,7 @@ import ( ) func (issue *Issue) mailSubject() string { - return fmt.Sprintf("[%s] %s (#%d)", issue.Repo.Name, issue.Title, issue.Index) + return fmt.Sprintf("[%s/%s] %s (#%d)", issue.Repo.OwnerName, issue.Repo.Name, issue.Title, issue.Index) } // mailIssueCommentToParticipants can be used for both new issue creation and comment. From 2fec722d7d39787a6604f7dcf4bc4a61b5248a9e Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Tue, 28 May 2019 17:06:10 +0800 Subject: [PATCH 2/2] change to fullname method Signed-off-by: Bo-Yi Wu --- models/issue_mail.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/issue_mail.go b/models/issue_mail.go index 2df51335c9223..16f85ba37821f 100644 --- a/models/issue_mail.go +++ b/models/issue_mail.go @@ -16,7 +16,7 @@ import ( ) func (issue *Issue) mailSubject() string { - return fmt.Sprintf("[%s/%s] %s (#%d)", issue.Repo.OwnerName, issue.Repo.Name, issue.Title, issue.Index) + return fmt.Sprintf("[%s] %s (#%d)", issue.Repo.FullName(), issue.Title, issue.Index) } // mailIssueCommentToParticipants can be used for both new issue creation and comment.