We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c99662 commit 8d4600dCopy full SHA for 8d4600d
scripts/templates/changelog.ejs
@@ -56,9 +56,13 @@
56
});
57
58
for (const scope of scopes) {
59
- const scopeCommits = commits
60
- .filter(x => x.scope === scope)
61
- .filter(x => ['fix', 'feat'].includes(x.type));
+ // Do feature first, then fixes.
+ const allScopeCommits = commits.filter(x => x.scope === scope);
+
62
+ const scopeCommits = [
63
+ ...allScopeCommits.filter(x => x.type === 'feat'),
64
+ ...allScopeCommits.filter(x => x.type === 'fix'),
65
+ ];
66
67
if (scopeCommits.length == 0) {
68
continue;
0 commit comments