{{if len .comments}} {{$comment := index .comments 0}} {{$invalid := $comment.Invalidated}} {{$resolved := $comment.IsResolved}} {{$resolveDoer := $comment.ResolveDoer}} {{$hasReview := and $comment.Review}} {{$isReviewPending := and $hasReview (eq $comment.Review.Type 0)}}