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

@ -0,0 +1,8 @@
<div class="commit-stats info-line">
<%~ include('../icons/file-plus-minus.eta') %>
<p><%= it.stats.total %> lines changed</p>
<p style="display: flex; gap: 0.125em; font-weight: 700;">
<span style="color: #53d37c;">+<%= it.stats.additions %></span>
<span style="color: #d35353;">-<%= it.stats.deletions %></span>
</p>
</div>