Skip to content

Commit

Permalink
[core] Fixes error in changelog generator for item sorting/padding (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitropoulos authored Mar 28, 2022
1 parent 9ff2330 commit a3f0060
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/releaseChangelog.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ async function main(argv) {
.toString()
// Padding them with a zero means we can just feed a list into online sorting tools like https://www.online-utility.org/text/sort.jsp
// i.e. we can sort the lines alphanumerically
.padStart(Math.ceil(Math.log10(commitsItemsByDateDesc.length)), '0')} -->`;
.padStart(Math.floor(Math.log10(commitsItemsByDateDesc.length)) + 1, '0')} -->`;
const shortMessage = commitsItem.commit.message.split('\n')[0];
return `- ${dateSortMarker}${shortMessage} @${commitsItem.author.login}`;
});
Expand Down

0 comments on commit a3f0060

Please sign in to comment.