Skip to content
This repository was archived by the owner on Nov 4, 2022. It is now read-only.

Commit

Permalink
Remove number option from payload
Browse files Browse the repository at this point in the history
  • Loading branch information
zenorocha committed Jun 4, 2013
1 parent 32ae664 commit 3803bc8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions bin/gh.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
1 change: 0 additions & 1 deletion lib/cmds/pull-request.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3803bc8

Please sign in to comment.