{{ $r:= List .comment.Commits}} {{ $index := 0}}
{{range $r}} {{ $tag := printf "%s-%d" $.comment.HashTag $index }} {{ $index = Add $index 1}}
{{svg "octicon-git-commit" 16}} {{if .User}} {{else}} {{end}} {{if eq (CommitType .) "SignCommitWithStatuses"}} {{template "repo/commit_status" .Status}} {{end}} {{$class := "ui sha label"}} {{if .Signature}} {{$class = (printf "%s%s" $class " isSigned")}} {{if .Verification.Verified}} {{if eq .Verification.TrustStatus "trusted"}} {{$class = (printf "%s%s" $class " isVerified")}} {{else if eq .Verification.TrustStatus "untrusted"}} {{$class = (printf "%s%s" $class " isVerifiedUntrusted")}} {{else}} {{$class = (printf "%s%s" $class " isVerifiedUnmatched")}} {{end}} {{else if .Verification.Warning}} {{$class = (printf "%s%s" $class " isWarning")}} {{end}} {{end}} {{if $.comment.Issue.PullRequest.BaseRepo.Name}} {{else}} {{end}} {{ShortSha .ID.String}} {{if .Signature}} {{template "repo/shabox_badge" dict "root" $.root "verification" .Verification}} {{end}} {{if $.comment.Issue.PullRequest.BaseRepo.Name}} {{else}} {{end}} {{ $commitLink:= printf "%s/%s/%s/commit/%s" AppSubUrl $.comment.Issue.PullRequest.BaseRepo.OwnerName $.comment.Issue.PullRequest.BaseRepo.Name .ID }} {{RenderCommitMessageLinkSubject .Message ($.comment.Issue.PullRequest.BaseRepo.Link|Escape) $commitLink $.comment.Issue.PullRequest.BaseRepo.ComposeMetas}} {{if IsMultilineCommitMessage .Message}} {{end}} {{if IsMultilineCommitMessage .Message}} {{end}}
{{end}}