angular-cli/scripts/templates/changelog-fix.ejs
Hans Larsen eaccc04852 docs: change the changelog commits format
See #11740 for an example of how it looks.

Fixes #11740
2018-08-02 13:12:22 -04:00

40 lines
841 B
Plaintext

<%
if (!hash) {
return;
}
const shortSha = hash && hash.slice(0, 7);
%>
<tr>
<%# Commit: %>
<td><%
if (shortSha) {
%>
<a href="https://github.com/angular/angular-cli/commit/<%= hash %>"><img
align="top"
title="Feature" src="https://img.shields.io/badge/<%= shortSha %>-fix-green.svg" />
</a><%
} %>
</td>
<%# Desc: %>
<td><%= subject %></td>
<%# Notes: %>
<td><%
for (const reference of 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>