From 3803bc84383e7ce18da4f5aaa7f14bf515d8fa08 Mon Sep 17 00:00:00 2001 From: Zeno Rocha Date: Tue, 4 Jun 2013 00:36:06 -0300 Subject: [PATCH] Remove number option from payload --- bin/gh.js | 1 + lib/cmds/pull-request.js | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/gh.js b/bin/gh.js index c4c07b1d..59f4fa20 100755 --- a/bin/gh.js +++ b/bin/gh.js @@ -78,6 +78,7 @@ if (command) { options.user = options.user || base.getUser(); options.repo = options.repo || results[2]; options.currentBranch = options.currentBranch || results[3]; + options.number = options.number || parseInt(remain[1], 10); if ((remain.length === cooked.length) && command.DETAILS.payload) { payload = options.argv.cooked.concat(); diff --git a/lib/cmds/pull-request.js b/lib/cmds/pull-request.js index 200a811e..a78e93c5 100755 --- a/lib/cmds/pull-request.js +++ b/lib/cmds/pull-request.js @@ -74,7 +74,6 @@ PullRequest.DETAILS = { payload: function(payload, options) { if (payload[0]) { options.fetch = true; - options.number = options.number || parseInt(payload[0], 10); } else { options.list = true;