diff --git a/packages/shipjs/src/flow/prepare.js b/packages/shipjs/src/flow/prepare.js index c30e7a65..651e0587 100644 --- a/packages/shipjs/src/flow/prepare.js +++ b/packages/shipjs/src/flow/prepare.js @@ -25,6 +25,7 @@ async function prepare({ firstRelease = false, releaseCount, dryRun = false, + noBrowse = false, }) { if (help) { printHelp(); @@ -61,6 +62,7 @@ async function prepare({ stagingBranch, currentVersion, nextVersion, + noBrowse, config, dir, dryRun, diff --git a/packages/shipjs/src/step/prepare/createPullRequest.js b/packages/shipjs/src/step/prepare/createPullRequest.js index 9309446e..01151e4c 100644 --- a/packages/shipjs/src/step/prepare/createPullRequest.js +++ b/packages/shipjs/src/step/prepare/createPullRequest.js @@ -8,6 +8,7 @@ export default ({ stagingBranch, currentVersion, nextVersion, + noBrowse, config, dir, dryRun, @@ -60,7 +61,7 @@ export default ({ const createPullRequestCommand = [ 'hub pull-request', `--base ${destinationBranch}`, - '--browse', + noBrowse ? undefined : '--browse', '--push', pullRequestReviewer ? `--reviewer ${pullRequestReviewer}` : undefined, `--file ${filePath}`,