% layout('layout') %>
<%
let title = it.commit.message.split('\n')[0]
let body = it.commit.message.split('\n').slice(1).join('\n').trim()
const titleCharLimit = 50
if (title.length > titleCharLimit) {
title = title.slice(0, titleCharLimit).trim() + '...'
}
%>
@<%= it.commit.repository.full_name %>
<%= title %>
<% if (body) { %>
<%= body %>
<% } %>
<%~ include('partials/commit-stats.eta', {stats: it.commit.stats}) %>
<%= it.commit.committer.full_name || it.commit.committer.name || it.commit.committer.login %>
committed <%= new Intl.DateTimeFormat('en-US', { dateStyle: 'long' }).format(new Date(it.commit.created_at)) %>
<%~ include('icons/code-commit.eta') %>
<%= it.commit.sha.slice(0, 7) %>