build: ignore aio
/docs-infra
commits in changelog
gulp task (#25838)
PR Close #25838
This commit is contained in:
parent
ef4b5c7e59
commit
110c81f359
@ -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('./'));
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user