Skip to content

Commit 2141aa1

Browse files
committed
2.3.1
1 parent b847dde commit 2141aa1

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@fab1o/node-utility",
3-
"version": "2.3.0",
3+
"version": "2.3.1",
44
"description": "A swiss-knife Library for Node applications.",
55
"main": "src/index.js",
66
"author": {

src/git/pullRequest.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const execSync = require('../shell/execSync');
99
* @param {String} options.baseBranch - PR base branch
1010
* @param {String} options.branchName - The PR Branch
1111
* @param {Boolean} [options.noEdit=false] - Use the commit message on the branch as pull request title and description
12-
* @param {Boolean} [options.browse=false] - Open the new pull request in a web browser
12+
* @param {Boolean} [options.browse=false] - Open the pull request in a web browser
1313
* @param {Boolean} [options.draft=false] - Create the pull request as a draft
1414
* @param {String} [options.milestone=''] - The milestone name to add to this pull request. Passing the milestone number is deprecated
1515
* @param {String} [options.labels=''] - PR labels separated by comma
@@ -57,7 +57,7 @@ module.exports = function pullRequest(title, description, options) {
5757
''
5858
);
5959

60-
if (prNumber) {
60+
if (prNumber && browse) {
6161
execSync(`hub pr show ${prNumber}`, shellOptions);
6262

6363
return;

0 commit comments

Comments
 (0)