Skip to content

Commit 28fb3ab

Browse files
devversionjelbourn
authored andcommitted
build: changelog task prompt for release name (#13915)
1 parent 94e4a27 commit 28fb3ab

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

tools/gulp/tasks/changelog.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import {grey, red, yellow} from 'chalk';
22
import {readFileSync} from 'fs';
33
import {dest, src, task} from 'gulp';
4+
import {prompt} from 'inquirer';
45
import {buildConfig} from 'material2-build-tools';
56
import {join} from 'path';
67

@@ -26,8 +27,15 @@ task('changelog', async () => {
2627
return;
2728
}
2829

30+
const {releaseName} = await prompt<{releaseName: string}>({
31+
type: 'text',
32+
name: 'releaseName',
33+
message: 'What should be the name of the release?'
34+
});
35+
2936
return src(changelogFile)
30-
.pipe(gulpChangelog(changelogOptions, null, null, null, createDedupeWriterOptions()))
37+
.pipe(gulpChangelog(changelogOptions, {title: releaseName}, null, null,
38+
createDedupeWriterOptions()))
3139
.pipe(dest('./'));
3240
});
3341

0 commit comments

Comments
 (0)