Browse Source

include anchor when linking to issue comments

tags/v0.4.0
Peter van Dijk 5 years ago
parent
commit
b11ffe4f80
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      httplistener/templates.go

+ 1
- 1
httplistener/templates.go View File

@@ -16,7 +16,7 @@ var defaultTemplates = map[string]string{
16 16
  • {{g .Username}} ({{.Sha|truncateSha|h}}): {{trunc .Message 150}}
17 17
 {{end}}`,
18 18
 	"github.issue":        "[{{b .Repository.Name}}] {{g .Sender.Login}} {{.Action}} issue #{{.Issue.Number}}: {{.Issue.Title}} {{.Issue.HTMLURL}}",
19
-	"github.issuecomment": "[{{b .Repository.Name}}] {{g .Comment.User.Login}} commented on issue #{{.Issue.Number}}: {{trunc .Comment.Body 150}} {{.Issue.HTMLURL}}",
19
+	"github.issuecomment": "[{{b .Repository.Name}}] {{g .Comment.User.Login}} commented on issue #{{.Issue.Number}}: {{trunc .Comment.Body 150}} {{.Comment.HTMLURL}}",
20 20
 	"github.pullrequest":  "[{{b .Repository.Name}}] {{g .Sender.Login}} {{if .PullRequest.Merged}}merged{{else}}{{.Action}}{{end}} pull request #{{.PullRequest.Number}} (\x0303{{.PullRequest.Base.Ref}}…{{.PullRequest.Head.Ref}}\x0f): {{.PullRequest.Title}} {{.PullRequest.HTMLURL}}",
21 21
 }
22 22
 

Loading…
Cancel
Save