{{if len .comments}} {{$comment := index .comments 0}} {{$resolved := $comment.IsResolved}} {{$invalid := $comment.Invalidated}} {{$resolveDoer := $comment.ResolveDoer}} {{$hasReview := and $comment.Review}} {{$isReviewPending := and $hasReview (eq $comment.Review.Type 0)}} {{$referenceUrl := printf "%s#%s" $.Issue.Link $comment.HashTag}}