Skip to content

Commit 2b573f4

Browse files
mrsdizziezeripath
andauthored
Fix nil pointer in default issue mail template (#11862)
* 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 * another one Co-authored-by: zeripath <[email protected]>
1 parent 13fcd04 commit 2b573f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/mail/issue/default.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
<body>
1919
{{if .IsMention}}<p><b>@{{.Doer.Name}}</b> mentioned you:</p>{{end}}
20-
{{if eq .Comment.Type 29}}
20+
{{if eq .ActionName "push"}}
2121
<p>
2222
<b>{{.Doer.Name}}</b>
2323
{{if .Comment.IsForcePush}}
@@ -66,7 +66,7 @@
6666
<div>{{.RenderedContent | Safe}}</div>
6767
</div>
6868
{{end -}}
69-
{{if eq .Comment.Type 29}}
69+
{{if eq .ActionName "push"}}
7070
{{ $r:= List .Comment.Commits}}
7171
<ul>
7272
{{range $r}}

0 commit comments

Comments
 (0)