2017-09-22 13:51:03 -04:00
|
|
|
/**
|
|
|
|
* @license
|
|
|
|
* Copyright Google Inc. All Rights Reserved.
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
|
|
* found in the LICENSE file at https://angular.io/license
|
|
|
|
*/
|
|
|
|
|
2017-02-03 03:10:41 -05:00
|
|
|
module.exports = (gulp) => () => {
|
|
|
|
const conventionalChangelog = require('gulp-conventional-changelog');
|
2018-09-06 07:13:42 -04:00
|
|
|
const ignoredScopes = [
|
|
|
|
'aio',
|
2020-03-10 11:11:09 -04:00
|
|
|
'dev-infra',
|
2018-09-06 07:13:42 -04:00
|
|
|
'docs-infra',
|
2019-06-26 12:17:07 -04:00
|
|
|
'zone.js',
|
2018-09-06 07:13:42 -04:00
|
|
|
];
|
|
|
|
|
2017-02-03 03:10:41 -05:00
|
|
|
return gulp.src('CHANGELOG.md')
|
2018-09-06 07:13:42 -04:00
|
|
|
.pipe(conventionalChangelog({preset: 'angular'}, {}, {
|
|
|
|
// Ignore commits that start with `<type>(<scope>)` for any of the ignored scopes.
|
|
|
|
extendedRegexp: true,
|
|
|
|
grep: `^[^(]+\\((${ignoredScopes.join('|')})\\)`,
|
|
|
|
invertGrep: true,
|
|
|
|
}))
|
2017-02-03 03:10:41 -05:00
|
|
|
.pipe(gulp.dest('./'));
|
|
|
|
};
|