angular-cli/scripts/templates/changelog-commit.ejs

39 lines
917 B
Plaintext

<%
if (!commit.hash) {
return;
}
const shortSha = commit.hash.slice(0, 7);
%>
<tr>
<%# Commit: %>
<td><%
if (shortSha) {
%>
<a href="https://github.com/angular/angular-cli/commit/<%= commit.hash %>"><img
align="top"
title="<%= typeInfo.title %>" src="https://img.shields.io/badge/<%= shortSha %>-<%= commit.type %>-<%= typeInfo.badgeColor %>.svg" />
</a><%
} %>
</td>
<%# Desc: %>
<td><%= commit.subject %></td>
<%# Notes: %>
<td><%
for (const reference of commit.references) {
if (!reference.action || !reference.issue) {
continue;
}
const issue = reference.issue;
const owner = reference.owner || 'angular';
const repository = reference.repository || 'angular-cli';
%>
<a href="https://github.com/<%= owner %>/<%= repository %>/issues/<%= issue %>">
[Closes #<%= issue %>]<br />
</a>
<% } %>
</td>
</tr>