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',
|
|
|
|
'docs-infra',
|
2018-12-06 17:47:42 -05:00
|
|
|
'ivy',
|
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('./'));
|
|
|
|
};
|