diff --git a/tools/gulp-tasks/changelog.js b/tools/gulp-tasks/changelog.js index fa97a3eccd..44c936bf7d 100644 --- a/tools/gulp-tasks/changelog.js +++ b/tools/gulp-tasks/changelog.js @@ -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 `()` for any of the ignored scopes. + extendedRegexp: true, + grep: `^[^(]+\\((${ignoredScopes.join('|')})\\)`, + invertGrep: true, + })) .pipe(gulp.dest('./')); };