1
1
mirror of https://github.com/leon-ai/leon.git synced 2024-12-18 22:31:32 +03:00
leon/scripts/assets/CHANGELOG-TEMPLATE.md
2019-02-10 20:26:50 +08:00

764 B

<%= (parseInt(version.name.substr(4, 1), 10) > 0) ? '#' : '' %># <%= version.name %> (<%= version.date.getFullYear() %>-<%= ((version.date.getMonth() + 1) < 10) ? '0' : '' %><%= version.date.getMonth() + 1 %>-<%= (version.date.getDate() < 10) ? '0' : '' %><%= version.date.getDate() %>) <% _.forEach(sections, (section) => { if(section.commitsCount > 0) { %>### <%= section.title %> <% _.forEach(section.commits, (commit) => { %> - <%= printCommit(commit, true) %><% }) %> <% _.forEach(section.components.sort((a, b) => a !== b ? a < b ? -1 : 0 : 1), (component) => { %> - <%= component.name %>: <% _.forEach(component.commits, (commit) => { %> <%= (component.commits.length > 1) ? ' -' : '' %> <%= printCommit(commit, true) %><% }) %><% }) %><% } %><% }) %>