fix: mail template for push event (#38467)

fix #38465
This commit is contained in:
wxiaoguang
2026-07-15 18:57:44 +02:00
committed by GitHub
parent fa50ad2aa9
commit ce683b34c6
3 changed files with 38 additions and 4 deletions
+2 -3
View File
@@ -68,10 +68,9 @@
<ul>
{{$repoURL := $.Comment.Issue.PullRequest.BaseRepo.HTMLURL}}
{{range $commit := $.Comment.Commits}}
{{$gitCommit := $commit.UserCommit.GitCommit}}
<li>
<a href="{{$repoURL}}/commit/{{$commit.ID}}">
{{ShortSha $commit.ID.String}}
</a> - {{$commit.MessageTitle}}
<a href="{{$repoURL}}/commit/{{$gitCommit.ID}}">{{ShortSha $gitCommit.ID.String}}</a> - {{$gitCommit.MessageTitle}}
</li>
{{end}}
</ul>