2019-07-26 02:50:39 -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
|
|
|
|
*/
|
|
|
|
|
|
|
|
module.exports = (gulp) => () => {
|
2019-07-30 17:21:52 -04:00
|
|
|
const tag = process.env.TAG;
|
|
|
|
const ptag = process.env.PREVIOUS_ZONE_TAG;
|
2019-07-26 02:50:39 -04:00
|
|
|
const conventionalChangelog = require('gulp-conventional-changelog');
|
|
|
|
return gulp.src('packages/zone.js/CHANGELOG.md')
|
2019-07-30 17:21:52 -04:00
|
|
|
.pipe(conventionalChangelog({preset: 'angular'}, {}, {
|
|
|
|
// Ignore commits that have a different scope than `zone.js`.
|
|
|
|
extendedRegexp: true,
|
|
|
|
grep: '^[^(]+\\(zone\\.js\\)',
|
|
|
|
from: ptag,
|
|
|
|
to: tag,
|
|
|
|
}))
|
2019-07-26 02:50:39 -04:00
|
|
|
.pipe(gulp.dest('./packages/zone.js/'));
|
|
|
|
};
|