Skip to content

Commit

Permalink
build: sort changelog by commit message scope
Browse files Browse the repository at this point in the history
Previously `a.type - b.type` always returned NaN, which broke sorting
  • Loading branch information
alan-agius4 committed Mar 18, 2021
1 parent d50810a commit 9c91af6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/templates/changelog.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
continue;
}
scopeCommits.sort((a, b) => a.type - b.type);
scopeCommits.sort((a,b) => a.type > b.type ? 1 : -1);
%>
<tr><td colspan=3><h3><%
if (scope) {
Expand Down

0 comments on commit 9c91af6

Please sign in to comment.