{"action":"created","comment":{"url":"https://api.github.com/repos/stuyspec/stuy-spec-api/pulls/comments/135573046","pull_request_review_id":58998838,"id":135573046,"diff_hunk":"@@ -9,6 +9,9 @@ def index\n     else\n       @articles = Article.all\n     end\n+    if params[:sorted]","path":"app/controllers/articles_controller.rb","position":4,"original_position":4,"commit_id":"503b81ef3b3218da7afc5be2bf0f2ae5eb15a76d","original_commit_id":"503b81ef3b3218da7afc5be2bf0f2ae5eb15a76d","user":{"login":"jkao1","id":15334952,"avatar_url":"https://avatars1.githubusercontent.com/u/15334952?v=4","gravatar_id":"","url":"https://api.github.com/users/jkao1","html_url":"https://github.com/jkao1","followers_url":"https://api.github.com/users/jkao1/followers","following_url":"https://api.github.com/users/jkao1/following{/other_user}","gists_url":"https://api.github.com/users/jkao1/gists{/gist_id}","starred_url":"https://api.github.com/users/jkao1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkao1/subscriptions","organizations_url":"https://api.github.com/users/jkao1/orgs","repos_url":"https://api.github.com/users/jkao1/repos","events_url":"https://api.github.com/users/jkao1/events{/privacy}","received_events_url":"https://api.github.com/users/jkao1/received_events","type":"User","site_admin":false},"body":"Only sort by rank and date for now.","created_at":"2017-08-28T16:47:45Z","updated_at":"2017-08-28T16:47:45Z","html_url":"https://github.com/stuyspec/stuy-spec-api/pull/11#discussion_r135573046","pull_request_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/stuyspec/stuy-spec-api/pulls/comments/135573046"},"html":{"href":"https://github.com/stuyspec/stuy-spec-api/pull/11#discussion_r135573046"},"pull_request":{"href":"https://api.github.com/repos/stuyspec/stuy-spec-api/pulls/11"}},"in_reply_to_id":135508512},"pull_request":{"url":"https://api.github.com/repos/stuyspec/stuy-spec-api/pulls/11","id":137858472,"html_url":"https://github.com/stuyspec/stuy-spec-api/pull/11","diff_url":"https://github.com/stuyspec/stuy-spec-api/pull/11.diff","patch_url":"https://github.com/stuyspec/stuy-spec-api/pull/11.patch","issue_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/issues/11","number":11,"state":"open","locked":false,"title":"Added sorting algorithm in articles route if param[:sorted] is defined","user":{"login":"jerry1ye10","id":25914367,"avatar_url":"https://avatars2.githubusercontent.com/u/25914367?v=4","gravatar_id":"","url":"https://api.github.com/users/jerry1ye10","html_url":"https://github.com/jerry1ye10","followers_url":"https://api.github.com/users/jerry1ye10/followers","following_url":"https://api.github.com/users/jerry1ye10/following{/other_user}","gists_url":"https://api.github.com/users/jerry1ye10/gists{/gist_id}","starred_url":"https://api.github.com/users/jerry1ye10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jerry1ye10/subscriptions","organizations_url":"https://api.github.com/users/jerry1ye10/orgs","repos_url":"https://api.github.com/users/jerry1ye10/repos","events_url":"https://api.github.com/users/jerry1ye10/events{/privacy}","received_events_url":"https://api.github.com/users/jerry1ye10/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-08-28T01:46:19Z","updated_at":"2017-08-28T16:47:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"214d63780940f913490901862581cdf5c56f38d3","assignee":null,"assignees":[],"requested_reviewers":[{"login":"jkao1","id":15334952,"avatar_url":"https://avatars1.githubusercontent.com/u/15334952?v=4","gravatar_id":"","url":"https://api.github.com/users/jkao1","html_url":"https://github.com/jkao1","followers_url":"https://api.github.com/users/jkao1/followers","following_url":"https://api.github.com/users/jkao1/following{/other_user}","gists_url":"https://api.github.com/users/jkao1/gists{/gist_id}","starred_url":"https://api.github.com/users/jkao1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkao1/subscriptions","organizations_url":"https://api.github.com/users/jkao1/orgs","repos_url":"https://api.github.com/users/jkao1/repos","events_url":"https://api.github.com/users/jkao1/events{/privacy}","received_events_url":"https://api.github.com/users/jkao1/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/pulls/11/commits","review_comments_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/pulls/11/comments","review_comment_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/issues/11/comments","statuses_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/statuses/503b81ef3b3218da7afc5be2bf0f2ae5eb15a76d","head":{"label":"stuyspec:feature/sorting-by-rank","ref":"feature/sorting-by-rank","sha":"503b81ef3b3218da7afc5be2bf0f2ae5eb15a76d","user":{"login":"stuyspec","id":5567157,"avatar_url":"https://avatars1.githubusercontent.com/u/5567157?v=4","gravatar_id":"","url":"https://api.github.com/users/stuyspec","html_url":"https://github.com/stuyspec","followers_url":"https://api.github.com/users/stuyspec/followers","following_url":"https://api.github.com/users/stuyspec/following{/other_user}","gists_url":"https://api.github.com/users/stuyspec/gists{/gist_id}","starred_url":"https://api.github.com/users/stuyspec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stuyspec/subscriptions","organizations_url":"https://api.github.com/users/stuyspec/orgs","repos_url":"https://api.github.com/users/stuyspec/repos","events_url":"https://api.github.com/users/stuyspec/events{/privacy}","received_events_url":"https://api.github.com/users/stuyspec/received_events","type":"Organization","site_admin":false},"repo":{"id":98824525,"name":"stuy-spec-api","full_name":"stuyspec/stuy-spec-api","owner":{"login":"stuyspec","id":5567157,"avatar_url":"https://avatars1.githubusercontent.com/u/5567157?v=4","gravatar_id":"","url":"https://api.github.com/users/stuyspec","html_url":"https://github.com/stuyspec","followers_url":"https://api.github.com/users/stuyspec/followers","following_url":"https://api.github.com/users/stuyspec/following{/other_user}","gists_url":"https://api.github.com/users/stuyspec/gists{/gist_id}","starred_url":"https://api.github.com/users/stuyspec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stuyspec/subscriptions","organizations_url":"https://api.github.com/users/stuyspec/orgs","repos_url":"https://api.github.com/users/stuyspec/repos","events_url":"https://api.github.com/users/stuyspec/events{/privacy}","received_events_url":"https://api.github.com/users/stuyspec/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/stuyspec/stuy-spec-api","description":null,"fork":false,"url":"https://api.github.com/repos/stuyspec/stuy-spec-api","forks_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/forks","keys_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/teams","hooks_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/hooks","issue_events_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/issues/events{/number}","events_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/events","assignees_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/assignees{/user}","branches_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/branches{/branch}","tags_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/tags","blobs_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/statuses/{sha}","languages_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/languages","stargazers_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/stargazers","contributors_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/contributors","subscribers_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/subscribers","subscription_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/subscription","commits_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/contents/{+path}","compare_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/merges","archive_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/downloads","issues_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/issues{/number}","pulls_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/pulls{/number}","milestones_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/milestones{/number}","notifications_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/labels{/name}","releases_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/releases{/id}","deployments_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/deployments","created_at":"2017-07-30T21:00:08Z","updated_at":"2017-08-07T04:40:55Z","pushed_at":"2017-08-28T16:43:07Z","git_url":"git://github.com/stuyspec/stuy-spec-api.git","ssh_url":"git@github.com:stuyspec/stuy-spec-api.git","clone_url":"https://github.com/stuyspec/stuy-spec-api.git","svn_url":"https://github.com/stuyspec/stuy-spec-api","homepage":null,"size":100,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":3,"default_branch":"develop"}},"base":{"label":"stuyspec:develop","ref":"develop","sha":"354e39e0afaaccf6dfe3fc44cfcbc0eaef87f87d","user":{"login":"stuyspec","id":5567157,"avatar_url":"https://avatars1.githubusercontent.com/u/5567157?v=4","gravatar_id":"","url":"https://api.github.com/users/stuyspec","html_url":"https://github.com/stuyspec","followers_url":"https://api.github.com/users/stuyspec/followers","following_url":"https://api.github.com/users/stuyspec/following{/other_user}","gists_url":"https://api.github.com/users/stuyspec/gists{/gist_id}","starred_url":"https://api.github.com/users/stuyspec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stuyspec/subscriptions","organizations_url":"https://api.github.com/users/stuyspec/orgs","repos_url":"https://api.github.com/users/stuyspec/repos","events_url":"https://api.github.com/users/stuyspec/events{/privacy}","received_events_url":"https://api.github.com/users/stuyspec/received_events","type":"Organization","site_admin":false},"repo":{"id":98824525,"name":"stuy-spec-api","full_name":"stuyspec/stuy-spec-api","owner":{"login":"stuyspec","id":5567157,"avatar_url":"https://avatars1.githubusercontent.com/u/5567157?v=4","gravatar_id":"","url":"https://api.github.com/users/stuyspec","html_url":"https://github.com/stuyspec","followers_url":"https://api.github.com/users/stuyspec/followers","following_url":"https://api.github.com/users/stuyspec/following{/other_user}","gists_url":"https://api.github.com/users/stuyspec/gists{/gist_id}","starred_url":"https://api.github.com/users/stuyspec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stuyspec/subscriptions","organizations_url":"https://api.github.com/users/stuyspec/orgs","repos_url":"https://api.github.com/users/stuyspec/repos","events_url":"https://api.github.com/users/stuyspec/events{/privacy}","received_events_url":"https://api.github.com/users/stuyspec/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/stuyspec/stuy-spec-api","description":null,"fork":false,"url":"https://api.github.com/repos/stuyspec/stuy-spec-api","forks_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/forks","keys_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/teams","hooks_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/hooks","issue_events_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/issues/events{/number}","events_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/events","assignees_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/assignees{/user}","branches_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/branches{/branch}","tags_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/tags","blobs_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/statuses/{sha}","languages_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/languages","stargazers_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/stargazers","contributors_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/contributors","subscribers_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/subscribers","subscription_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/subscription","commits_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/contents/{+path}","compare_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/merges","archive_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/downloads","issues_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/issues{/number}","pulls_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/pulls{/number}","milestones_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/milestones{/number}","notifications_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/labels{/name}","releases_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/releases{/id}","deployments_url":"https://api.github.com/repos/stuyspec/stuy-spec-api/deployments","created_at":"2017-07-30T21:00:08Z","updated_at":"2017-08-07T04:40:55Z","pushed_at":"2017-08-28T16:43:07Z","git_url":"git://github.com/stuyspec/stuy-spec-api.git","ssh_url":"git@github.com:stuyspec/stuy-spec-api.git","clone_url":"https://github.com/stuyspec/stuy-spec-api.git","svn_url":"https://github.com/stuyspec/stuy-spec-api","homepage":null,"size":100,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":3,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/stuyspec/stuy-spec-api/pulls/11"},"html":{"href":"https://github.com/stuyspec/stuy-spec-api/pull/11"},"issue":{"href":"https://api.github.com/repos/stuyspec/stuy-spec-api/issues/11"},"comments":{"href":"https://api.github.com/repos/stuyspec/stuy-spec-api/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/stuyspec/stuy-spec-api/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/stuyspec/stuy-spec-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/stuyspec/stuy-spec-api/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/stuyspec/stuy-spec-api/statuses/503b81ef3b3218da7afc5be2bf0f2ae5eb15a76d"}}}}
{"actor":{"display_login":"jkao1"}}