{"action":"created","comment":{"url":"https://api.github.com/repos/github/hub/pulls/comments/78649449","id":78649449,"diff_hunk":"@@ -192,6 +202,7 @@ func listIssues(cmd *Command, args *Args) {\n \t\t\t\"creator\":   flagIssueCreator,\n \t\t\t\"mentioned\": flagIssueMentioned,\n \t\t\t\"labels\":    flagIssueLabelsFilter,\n+\t\t\t\"sort\":      flagIssueSort,","path":"commands/issue.go","position":49,"original_position":49,"commit_id":"0b7a95dccd9bbe1d946e1fbb5f04702f07009271","original_commit_id":"0b7a95dccd9bbe1d946e1fbb5f04702f07009271","user":{"login":"pcorpet","id":7937848,"avatar_url":"https://avatars.githubusercontent.com/u/7937848?v=3","gravatar_id":"","url":"https://api.github.com/users/pcorpet","html_url":"https://github.com/pcorpet","followers_url":"https://api.github.com/users/pcorpet/followers","following_url":"https://api.github.com/users/pcorpet/following{/other_user}","gists_url":"https://api.github.com/users/pcorpet/gists{/gist_id}","starred_url":"https://api.github.com/users/pcorpet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pcorpet/subscriptions","organizations_url":"https://api.github.com/users/pcorpet/orgs","repos_url":"https://api.github.com/users/pcorpet/repos","events_url":"https://api.github.com/users/pcorpet/events{/privacy}","received_events_url":"https://api.github.com/users/pcorpet/received_events","type":"User","site_admin":false},"body":"It doesn't: line 209 I check if the flag was passed before adding the sort parameter. But I'm going to add the check that sort and direction params are nil.","created_at":"2016-09-13T21:38:05Z","updated_at":"2016-09-13T21:38:05Z","html_url":"https://github.com/github/hub/pull/1245#discussion_r78649449","pull_request_url":"https://api.github.com/repos/github/hub/pulls/1245","_links":{"self":{"href":"https://api.github.com/repos/github/hub/pulls/comments/78649449"},"html":{"href":"https://github.com/github/hub/pull/1245#discussion_r78649449"},"pull_request":{"href":"https://api.github.com/repos/github/hub/pulls/1245"}}},"pull_request":{"url":"https://api.github.com/repos/github/hub/pulls/1245","id":82997472,"html_url":"https://github.com/github/hub/pull/1245","diff_url":"https://github.com/github/hub/pull/1245.diff","patch_url":"https://github.com/github/hub/pull/1245.patch","issue_url":"https://api.github.com/repos/github/hub/issues/1245","number":1245,"state":"open","locked":false,"title":"Add sorting options to `hub issue`.","user":{"login":"pcorpet","id":7937848,"avatar_url":"https://avatars.githubusercontent.com/u/7937848?v=3","gravatar_id":"","url":"https://api.github.com/users/pcorpet","html_url":"https://github.com/pcorpet","followers_url":"https://api.github.com/users/pcorpet/followers","following_url":"https://api.github.com/users/pcorpet/following{/other_user}","gists_url":"https://api.github.com/users/pcorpet/gists{/gist_id}","starred_url":"https://api.github.com/users/pcorpet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pcorpet/subscriptions","organizations_url":"https://api.github.com/users/pcorpet/orgs","repos_url":"https://api.github.com/users/pcorpet/repos","events_url":"https://api.github.com/users/pcorpet/events{/privacy}","received_events_url":"https://api.github.com/users/pcorpet/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-08-27T20:15:30Z","updated_at":"2016-09-13T21:38:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2cab703ced23fe2ec78435881dcb9e3eb006b0cf","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/github/hub/pulls/1245/commits","review_comments_url":"https://api.github.com/repos/github/hub/pulls/1245/comments","review_comment_url":"https://api.github.com/repos/github/hub/pulls/comments{/number}","comments_url":"https://api.github.com/repos/github/hub/issues/1245/comments","statuses_url":"https://api.github.com/repos/github/hub/statuses/0b7a95dccd9bbe1d946e1fbb5f04702f07009271","head":{"label":"pcorpet:sort-issues","ref":"sort-issues","sha":"0b7a95dccd9bbe1d946e1fbb5f04702f07009271","user":{"login":"pcorpet","id":7937848,"avatar_url":"https://avatars.githubusercontent.com/u/7937848?v=3","gravatar_id":"","url":"https://api.github.com/users/pcorpet","html_url":"https://github.com/pcorpet","followers_url":"https://api.github.com/users/pcorpet/followers","following_url":"https://api.github.com/users/pcorpet/following{/other_user}","gists_url":"https://api.github.com/users/pcorpet/gists{/gist_id}","starred_url":"https://api.github.com/users/pcorpet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pcorpet/subscriptions","organizations_url":"https://api.github.com/users/pcorpet/orgs","repos_url":"https://api.github.com/users/pcorpet/repos","events_url":"https://api.github.com/users/pcorpet/events{/privacy}","received_events_url":"https://api.github.com/users/pcorpet/received_events","type":"User","site_admin":false},"repo":{"id":51505764,"name":"hub","full_name":"pcorpet/hub","owner":{"login":"pcorpet","id":7937848,"avatar_url":"https://avatars.githubusercontent.com/u/7937848?v=3","gravatar_id":"","url":"https://api.github.com/users/pcorpet","html_url":"https://github.com/pcorpet","followers_url":"https://api.github.com/users/pcorpet/followers","following_url":"https://api.github.com/users/pcorpet/following{/other_user}","gists_url":"https://api.github.com/users/pcorpet/gists{/gist_id}","starred_url":"https://api.github.com/users/pcorpet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pcorpet/subscriptions","organizations_url":"https://api.github.com/users/pcorpet/orgs","repos_url":"https://api.github.com/users/pcorpet/repos","events_url":"https://api.github.com/users/pcorpet/events{/privacy}","received_events_url":"https://api.github.com/users/pcorpet/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pcorpet/hub","description":"hub helps you win at git.","fork":true,"url":"https://api.github.com/repos/pcorpet/hub","forks_url":"https://api.github.com/repos/pcorpet/hub/forks","keys_url":"https://api.github.com/repos/pcorpet/hub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pcorpet/hub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pcorpet/hub/teams","hooks_url":"https://api.github.com/repos/pcorpet/hub/hooks","issue_events_url":"https://api.github.com/repos/pcorpet/hub/issues/events{/number}","events_url":"https://api.github.com/repos/pcorpet/hub/events","assignees_url":"https://api.github.com/repos/pcorpet/hub/assignees{/user}","branches_url":"https://api.github.com/repos/pcorpet/hub/branches{/branch}","tags_url":"https://api.github.com/repos/pcorpet/hub/tags","blobs_url":"https://api.github.com/repos/pcorpet/hub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pcorpet/hub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pcorpet/hub/git/refs{/sha}","trees_url":"https://api.github.com/repos/pcorpet/hub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pcorpet/hub/statuses/{sha}","languages_url":"https://api.github.com/repos/pcorpet/hub/languages","stargazers_url":"https://api.github.com/repos/pcorpet/hub/stargazers","contributors_url":"https://api.github.com/repos/pcorpet/hub/contributors","subscribers_url":"https://api.github.com/repos/pcorpet/hub/subscribers","subscription_url":"https://api.github.com/repos/pcorpet/hub/subscription","commits_url":"https://api.github.com/repos/pcorpet/hub/commits{/sha}","git_commits_url":"https://api.github.com/repos/pcorpet/hub/git/commits{/sha}","comments_url":"https://api.github.com/repos/pcorpet/hub/comments{/number}","issue_comment_url":"https://api.github.com/repos/pcorpet/hub/issues/comments{/number}","contents_url":"https://api.github.com/repos/pcorpet/hub/contents/{+path}","compare_url":"https://api.github.com/repos/pcorpet/hub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pcorpet/hub/merges","archive_url":"https://api.github.com/repos/pcorpet/hub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pcorpet/hub/downloads","issues_url":"https://api.github.com/repos/pcorpet/hub/issues{/number}","pulls_url":"https://api.github.com/repos/pcorpet/hub/pulls{/number}","milestones_url":"https://api.github.com/repos/pcorpet/hub/milestones{/number}","notifications_url":"https://api.github.com/repos/pcorpet/hub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pcorpet/hub/labels{/name}","releases_url":"https://api.github.com/repos/pcorpet/hub/releases{/id}","deployments_url":"https://api.github.com/repos/pcorpet/hub/deployments","created_at":"2016-02-11T09:44:42Z","updated_at":"2016-02-11T09:44:43Z","pushed_at":"2016-08-27T20:14:57Z","git_url":"git://github.com/pcorpet/hub.git","ssh_url":"git@github.com:pcorpet/hub.git","clone_url":"https://github.com/pcorpet/hub.git","svn_url":"https://github.com/pcorpet/hub","homepage":"http://hub.github.com/","size":3476,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"github:master","ref":"master","sha":"7a917bac90452a986aadb59e57d959ed891a5f61","user":{"login":"github","id":9919,"avatar_url":"https://avatars.githubusercontent.com/u/9919?v=3","gravatar_id":"","url":"https://api.github.com/users/github","html_url":"https://github.com/github","followers_url":"https://api.github.com/users/github/followers","following_url":"https://api.github.com/users/github/following{/other_user}","gists_url":"https://api.github.com/users/github/gists{/gist_id}","starred_url":"https://api.github.com/users/github/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/github/subscriptions","organizations_url":"https://api.github.com/users/github/orgs","repos_url":"https://api.github.com/users/github/repos","events_url":"https://api.github.com/users/github/events{/privacy}","received_events_url":"https://api.github.com/users/github/received_events","type":"Organization","site_admin":false},"repo":{"id":401025,"name":"hub","full_name":"github/hub","owner":{"login":"github","id":9919,"avatar_url":"https://avatars.githubusercontent.com/u/9919?v=3","gravatar_id":"","url":"https://api.github.com/users/github","html_url":"https://github.com/github","followers_url":"https://api.github.com/users/github/followers","following_url":"https://api.github.com/users/github/following{/other_user}","gists_url":"https://api.github.com/users/github/gists{/gist_id}","starred_url":"https://api.github.com/users/github/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/github/subscriptions","organizations_url":"https://api.github.com/users/github/orgs","repos_url":"https://api.github.com/users/github/repos","events_url":"https://api.github.com/users/github/events{/privacy}","received_events_url":"https://api.github.com/users/github/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/github/hub","description":"hub helps you win at git.","fork":false,"url":"https://api.github.com/repos/github/hub","forks_url":"https://api.github.com/repos/github/hub/forks","keys_url":"https://api.github.com/repos/github/hub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/github/hub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/github/hub/teams","hooks_url":"https://api.github.com/repos/github/hub/hooks","issue_events_url":"https://api.github.com/repos/github/hub/issues/events{/number}","events_url":"https://api.github.com/repos/github/hub/events","assignees_url":"https://api.github.com/repos/github/hub/assignees{/user}","branches_url":"https://api.github.com/repos/github/hub/branches{/branch}","tags_url":"https://api.github.com/repos/github/hub/tags","blobs_url":"https://api.github.com/repos/github/hub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/github/hub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/github/hub/git/refs{/sha}","trees_url":"https://api.github.com/repos/github/hub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/github/hub/statuses/{sha}","languages_url":"https://api.github.com/repos/github/hub/languages","stargazers_url":"https://api.github.com/repos/github/hub/stargazers","contributors_url":"https://api.github.com/repos/github/hub/contributors","subscribers_url":"https://api.github.com/repos/github/hub/subscribers","subscription_url":"https://api.github.com/repos/github/hub/subscription","commits_url":"https://api.github.com/repos/github/hub/commits{/sha}","git_commits_url":"https://api.github.com/repos/github/hub/git/commits{/sha}","comments_url":"https://api.github.com/repos/github/hub/comments{/number}","issue_comment_url":"https://api.github.com/repos/github/hub/issues/comments{/number}","contents_url":"https://api.github.com/repos/github/hub/contents/{+path}","compare_url":"https://api.github.com/repos/github/hub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/github/hub/merges","archive_url":"https://api.github.com/repos/github/hub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/github/hub/downloads","issues_url":"https://api.github.com/repos/github/hub/issues{/number}","pulls_url":"https://api.github.com/repos/github/hub/pulls{/number}","milestones_url":"https://api.github.com/repos/github/hub/milestones{/number}","notifications_url":"https://api.github.com/repos/github/hub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/github/hub/labels{/name}","releases_url":"https://api.github.com/repos/github/hub/releases{/id}","deployments_url":"https://api.github.com/repos/github/hub/deployments","created_at":"2009-12-05T22:15:25Z","updated_at":"2016-09-13T20:34:34Z","pushed_at":"2016-09-13T12:27:11Z","git_url":"git://github.com/github/hub.git","ssh_url":"git@github.com:github/hub.git","clone_url":"https://github.com/github/hub.git","svn_url":"https://github.com/github/hub","homepage":"http://hub.github.com/","size":5561,"stargazers_count":9152,"watchers_count":9152,"language":"Go","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":true,"forks_count":824,"mirror_url":null,"open_issues_count":123,"forks":824,"open_issues":123,"watchers":9152,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/github/hub/pulls/1245"},"html":{"href":"https://github.com/github/hub/pull/1245"},"issue":{"href":"https://api.github.com/repos/github/hub/issues/1245"},"comments":{"href":"https://api.github.com/repos/github/hub/issues/1245/comments"},"review_comments":{"href":"https://api.github.com/repos/github/hub/pulls/1245/comments"},"review_comment":{"href":"https://api.github.com/repos/github/hub/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/github/hub/pulls/1245/commits"},"statuses":{"href":"https://api.github.com/repos/github/hub/statuses/0b7a95dccd9bbe1d946e1fbb5f04702f07009271"}}}}
{"actor":{"display_login":"pcorpet"}}