mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-15 01:54:04 +08:00
24 lines
711 B
Plaintext
24 lines
711 B
Plaintext
<%
|
|
if (!hash) {
|
|
return;
|
|
}
|
|
|
|
const shortSha = hash && hash.slice(0, 7);
|
|
%>| <%# Commit: %><%
|
|
if (shortSha) {
|
|
%>[](https://github.com/angular/angular-cli/commit/<%= hash %>)<%
|
|
} %><%
|
|
%>| <%# Desc: %><%= subject
|
|
%>| <%# Notes: %><%
|
|
for (const reference of references) {
|
|
if (!reference.action || !reference.issue) {
|
|
continue;
|
|
}
|
|
|
|
const issue = reference.issue;
|
|
const owner = reference.owner || 'angular';
|
|
const repository = reference.repository || (issue > 10000 ? 'angular-cli' : 'devkit');
|
|
%>[Closes #<%= issue %>](https://github.com/<%= owner %>/<%= repository %>/issues/<%= issue %>)<%
|
|
}
|
|
%>
|