Skip to content

Commit

Permalink
sort changelog messages
Browse files Browse the repository at this point in the history
  • Loading branch information
TimurRin committed Jul 22, 2024
1 parent 311efab commit de3f12b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/changelog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@ function prepareVersionChangelog(
});
});

const sortedChanges = Array.from(changesMap).sort();

let fullListMarkdown = "";
changesMap.forEach((hashes, message) => {
fullListMarkdown += `- [[${hashes.join("], [")}]] ${message}\n`;
sortedChanges.forEach(([message, hashes]) => {
fullListMarkdown += `- [[${hashes.sort().join("], [")}]] ${message}\n`;
});

const releaseDate = new Date().toISOString().split("T")[0];
Expand Down

0 comments on commit de3f12b

Please sign in to comment.