build: ignore `aio`/`docs-infra` commits in `changelog` gulp task (#25838)

PR Close #25838
This commit is contained in:
George Kalpakas 2018-09-06 14:13:42 +03:00 committed by Ben Lesh
parent 2c40a86b61
commit 96ee898cee
1 changed files with 11 additions and 1 deletions

View File

@ -8,7 +8,17 @@
module.exports = (gulp) => () => {
const conventionalChangelog = require('gulp-conventional-changelog');
const ignoredScopes = [
'aio',
'docs-infra',
];
return gulp.src('CHANGELOG.md')
.pipe(conventionalChangelog({preset: 'angular'}))
.pipe(conventionalChangelog({preset: 'angular'}, {}, {
// Ignore commits that start with `<type>(<scope>)` for any of the ignored scopes.
extendedRegexp: true,
grep: `^[^(]+\\((${ignoredScopes.join('|')})\\)`,
invertGrep: true,
}))
.pipe(gulp.dest('./'));
};