mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-18 11:44:05 +08:00
39 lines
917 B
Plaintext
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> |