From 626990bad1335e6c5767addc6794e5bde55a184e Mon Sep 17 00:00:00 2001 From: Henrique Vicente Date: Thu, 5 Mar 2015 18:10:25 -0300 Subject: [PATCH] Adding support for gh is --browser. --- lib/cmds/issue.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/cmds/issue.js b/lib/cmds/issue.js index e3d234de..e5ecb8bd 100644 --- a/lib/cmds/issue.js +++ b/lib/cmds/issue.js @@ -237,6 +237,10 @@ Issue.prototype.run = function() { }; Issue.prototype.browser = function(user, repo, number) { + if (!number) { + number = ''; + } + openUrl('https://github.com/' + user + '/' + repo + '/issues/' + number); };