1
1
mirror of https://github.com/leon-ai/leon.git synced 2024-12-21 15:51:49 +03:00
leon/scripts/assets/CHANGELOG-TEMPLATE.md
2022-09-03 19:12:41 +08:00

763 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) %><% }) %><% }) %><% } %><% }) %>