Skip to content

Commit b128d26

Browse files
author
Benjamin Brown
committed
add --no-verify switch
1 parent 17e9dee commit b128d26

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

bin/bump.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ program
1919
.option("--prompt", "Prompt for type of bump (patch, minor, major, premajor, prerelase, etc.)")
2020
.option("--preid <name>", 'The identifier for prerelease versions (default is "beta")')
2121
.option("--commit [message]", 'Commit changed files to Git (default message is "release vX.X.X")')
22+
.option("--no-verify", "Bypasses the pre-commit and commit-msg hooks")
2223
.option("--tag", "Tag the commit in Git")
2324
.option("--push", "Push the Git commit")
2425
.option("--all", "Commit/tag/push ALL pending files, not just the ones changed by bump")

lib/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,9 @@ function git (manifests, options) {
192192

193193
// Git Commit
194194
let commitArgs = ["commit"];
195+
if (!options.verify) {
196+
commitArgs.push("--no-verify");
197+
}
195198
commitArgs = commitArgs.concat(options.all ? "-a" : manifests);
196199
let commitMessage = "release v" + newVersion;
197200
if (options.commitMessage) {

0 commit comments

Comments
 (0)