diff --git a/templates/mail/issue/default.tmpl b/templates/mail/issue/default.tmpl
index 00bb561d69..e062dca7f1 100644
--- a/templates/mail/issue/default.tmpl
+++ b/templates/mail/issue/default.tmpl
@@ -17,7 +17,7 @@
 
 <body>
 	{{if .IsMention}}<p><b>@{{.Doer.Name}}</b> mentioned you:</p>{{end}}
-	{{if eq .Comment.Type 29}}
+	{{if eq .ActionName "push"}}
 		<p>
 			<b>{{.Doer.Name}}</b>  
 			{{if .Comment.IsForcePush}}
@@ -66,7 +66,7 @@
 				<div>{{.RenderedContent | Safe}}</div>
 			</div>
 		{{end -}}
-		{{if eq .Comment.Type 29}}
+		{{if eq .ActionName "push"}}
 			{{ $r:= List .Comment.Commits}}
 			<ul>
 			{{range $r}}