mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-16 10:33:43 +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) {
|
for (const scope of scopes) {
|
||||||
const scopeCommits = commits
|
// Do feature first, then fixes.
|
||||||
.filter(x => x.scope === scope)
|
const allScopeCommits = commits.filter(x => x.scope === scope);
|
||||||
.filter(x => ['fix', 'feat'].includes(x.type));
|
|
||||||
|
const scopeCommits = [
|
||||||
|
...allScopeCommits.filter(x => x.type === 'feat'),
|
||||||
|
...allScopeCommits.filter(x => x.type === 'fix'),
|
||||||
|
];
|
||||||
|
|
||||||
if (scopeCommits.length == 0) {
|
if (scopeCommits.length == 0) {
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user