mail issue: Display issue type in email header
Currently notification emails for Pull Requests or Issues are indistinguishable at first glance. This adds the type ("PR" or "Issue") before the index number.
This commit is contained in:
parent
60bcdc8bc3
commit
74403d1f0f
2 changed files with 15 additions and 4 deletions
|
@ -19,7 +19,10 @@ import (
|
|||
)
|
||||
|
||||
func fallbackMailSubject(issue *issues_model.Issue) string {
|
||||
return fmt.Sprintf("[%s] %s (#%d)", issue.Repo.FullName(), issue.Title, issue.Index)
|
||||
if issue.IsPull {
|
||||
return fmt.Sprintf("[%s] %s (PR #%d)", issue.Repo.FullName(), issue.Title, issue.Index)
|
||||
}
|
||||
return fmt.Sprintf("[%s] %s (Issue #%d)", issue.Repo.FullName(), issue.Title, issue.Index)
|
||||
}
|
||||
|
||||
type mailCommentContext struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue