Fix handling of skip-commit (#212)

* Fix handling of skip-commit

* Expose skip-commit
Jeremy Tuloup 5 years ago committed by GitHub
parent 8dd791de08
commit ecdeb28163
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -33,6 +33,9 @@ commander
if (opts.force) {
cmd += ' --force';
}
if (opts.skipCommit) {
cmd += ' --skip-commit';
}
utils.run(cmd);
process.exit(0);
}

@ -17,6 +17,7 @@ import { postbump } from './utils';
commander
.description('Create a patch release')
.option('--force', 'Force the upgrade')
.option('--skip-commit', 'Whether to skip commit changes')
.action((options: any) => {
// Make sure we can patch release.
const pyVersion = utils.getPythonVersion();
@ -45,8 +46,9 @@ commander
}
utils.run(cmd);
// Run post-bump actions.
postbump();
// Whether to commit after bumping
const commit = options.skipCommit !== true;
postbump(commit);
});
commander.parse(process.argv);

Loading…
Cancel
Save