From 96ee898cee043d20d66b36905c8992f9276a3b20 Mon Sep 17 00:00:00 2001 From: George Kalpakas Date: Thu, 6 Sep 2018 14:13:42 +0300 Subject: [PATCH] build: ignore `aio`/`docs-infra` commits in `changelog` gulp task (#25838) PR Close #25838 --- tools/gulp-tasks/changelog.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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('./')); };