From 44ef09e837d61a58f13bed4d4ea6ebd5431ad3ab Mon Sep 17 00:00:00 2001 From: mrsdizzie Date: Thu, 11 Jun 2020 23:29:55 -0400 Subject: [PATCH 1/2] Fix nil pointer in default issue mail template Fix: template: issue/default:20:17: executing "issue/default" at <.Comment.Type>: nil pointer evaluating interface {}.Type Introduced in #11167 --- templates/mail/issue/default.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/mail/issue/default.tmpl b/templates/mail/issue/default.tmpl index 00bb561d6969f..d605a15c9d854 100644 --- a/templates/mail/issue/default.tmpl +++ b/templates/mail/issue/default.tmpl @@ -17,7 +17,7 @@ {{if .IsMention}}

@{{.Doer.Name}} mentioned you:

{{end}} - {{if eq .Comment.Type 29}} + {{if eq .ActionName "push"}}

{{.Doer.Name}} {{if .Comment.IsForcePush}} From dafd8454d156c331172dfdf223b6f306f5720b37 Mon Sep 17 00:00:00 2001 From: mrsdizzie Date: Fri, 12 Jun 2020 00:54:05 -0400 Subject: [PATCH 2/2] another one --- templates/mail/issue/default.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/mail/issue/default.tmpl b/templates/mail/issue/default.tmpl index d605a15c9d854..e062dca7f1b5d 100644 --- a/templates/mail/issue/default.tmpl +++ b/templates/mail/issue/default.tmpl @@ -66,7 +66,7 @@

{{.RenderedContent | Safe}}
{{end -}} - {{if eq .Comment.Type 29}} + {{if eq .ActionName "push"}} {{ $r:= List .Comment.Commits}}