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 ef4b5c7e59
commit 110c81f359

View File

@ -8,7 +8,17 @@
module.exports = (gulp) => () => { module.exports = (gulp) => () => {
const conventionalChangelog = require('gulp-conventional-changelog'); const conventionalChangelog = require('gulp-conventional-changelog');
const ignoredScopes = [
'aio',
'docs-infra',
];
return gulp.src('CHANGELOG.md') 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('./')); .pipe(gulp.dest('./'));
}; };