mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-16 18:43:42 +08:00
docs: sort changelog by feature first, then fixes
This commit is contained in:
parent
4b7bff0512
commit
52b22bf2e4
@ -56,9 +56,13 @@
|
||||
});
|
||||
|
||||
for (const scope of scopes) {
|
||||
const scopeCommits = commits
|
||||
.filter(x => x.scope === scope)
|
||||
.filter(x => ['fix', 'feat'].includes(x.type));
|
||||
// Do feature first, then fixes.
|
||||
const allScopeCommits = commits.filter(x => x.scope === scope);
|
||||
|
||||
const scopeCommits = [
|
||||
...allScopeCommits.filter(x => x.type === 'feat'),
|
||||
...allScopeCommits.filter(x => x.type === 'fix'),
|
||||
];
|
||||
|
||||
if (scopeCommits.length == 0) {
|
||||
continue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user