Added basic cherry pick helping task

This commit is contained in:
Torkel Ödegaard
2019-03-06 13:18:13 +01:00
parent 153b3e5cf5
commit 7b67dcfbb8
3 changed files with 52 additions and 3 deletions
+9 -1
View File
@@ -5,6 +5,7 @@ import { startTask } from './tasks/core.start';
import { buildTask } from './tasks/grafanaui.build';
import { releaseTask } from './tasks/grafanaui.release';
import { changelogTask } from './tasks/changelog';
import { cherryPickTask } from './tasks/cherrypick';
program.option('-d, --depreciate <scripts>', 'Inform about npm script deprecation', v => v.split(','));
@@ -40,7 +41,7 @@ program
});
program
.command('core:changelog')
.command('changelog')
.option('-m, --milestone <milestone>', 'Specify milestone')
.description('Builds changelog markdown')
.action(async cmd => {
@@ -54,6 +55,13 @@ program
});
});
program
.command('cherrypick')
.description('Helps find commits to cherry pick')
.action(async cmd => {
await execTask(cherryPickTask)({});
});
program.parse(process.argv);
if (program.depreciate && program.depreciate.length === 2) {