{{ $r:= List .Commits}} {{ $index := 0}}
{{range $r}} {{ $tag := printf "%s-%d" $.HashTag $index }} {{ $index = Add $index 1}}
{{svg "octicon-git-commit" 16}} {{if .User}} {{else}} {{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 $.Issue.PullRequest.BaseRepo.Name}} {{else}} {{end}} {{ShortSha .ID.String}} {{if $.Issue.PullRequest.BaseRepo.Name}} {{else}} {{end}} {{ $commitLink:= printf "%s/%s/%s/commit/%s" AppSubUrl $.Issue.PullRequest.BaseRepo.OwnerName $.Issue.PullRequest.BaseRepo.Name .ID }} {{RenderCommitMessageLinkSubject .Message ($.Issue.PullRequest.BaseRepo.Link|Escape) $commitLink $.Issue.PullRequest.BaseRepo.ComposeMetas}} {{if IsMultilineCommitMessage .Message}} {{end}} {{if eq (CommitType .) "SignCommitWithStatuses"}} {{template "repo/commit_status" .Status}} {{end}} {{if IsMultilineCommitMessage .Message}} {{end}}
{{end}}