show commit stats on PRs

This commit is contained in:
hazycora 2023-08-03 06:54:05 -05:00
parent 9f9ea12a0b
commit 6e3e5b9876
No known key found for this signature in database
GPG key ID: 215AF1F81F86940E
3 changed files with 17 additions and 8 deletions

View file

@ -22,13 +22,7 @@
<img width="120" height="120" src="<%= it.commit.committer.avatar_url %>?size=120"></img>
</div>
</div>
<div class="commit-stats info-line">
<p><%= it.commit.stats.total %> lines changed</p>
<p style="display: flex; gap: 0.25em; font-weight: 600;">
<span style="color: #53d37c;">+<%= it.commit.stats.additions %></span>
<span style="color: #d35353;">-<%= it.commit.stats.deletions %></span>
</p>
</div>
<%~ include('partials/commit-stats.eta', {stats: it.commit.stats}) %>
<div class="info-line">
<img class="avatar" width="48" height="48" src="<%= it.commit.committer.avatar_url %>?size=48"></img>
<p class="author"><%= it.commit.committer.full_name || it.commit.committer.login %></p>