{"action":"created","comment":{"url":"https://api.github.com/repos/utr066/protospace/pulls/comments/59156468","id":59156468,"diff_hunk":"@@ -0,0 +1,5 @@\n+class PopularsController < ApplicationController\n+  def index\n+    @prototypes = Prototype.includes(:user).order('likes_count DESC')","path":"app/controllers/populars_controller.rb","position":3,"original_position":3,"commit_id":"7f9133c192aea0fe5bc1e3be1497fc9bdd8ae042","original_commit_id":"3f7f4eeac258af8414986ea34fa83fc0482878d4","user":{"login":"YuitoSato","id":13939071,"avatar_url":"https://avatars.githubusercontent.com/u/13939071?v=3","gravatar_id":"","url":"https://api.github.com/users/YuitoSato","html_url":"https://github.com/YuitoSato","followers_url":"https://api.github.com/users/YuitoSato/followers","following_url":"https://api.github.com/users/YuitoSato/following{/other_user}","gists_url":"https://api.github.com/users/YuitoSato/gists{/gist_id}","starred_url":"https://api.github.com/users/YuitoSato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YuitoSato/subscriptions","organizations_url":"https://api.github.com/users/YuitoSato/orgs","repos_url":"https://api.github.com/users/YuitoSato/repos","events_url":"https://api.github.com/users/YuitoSato/events{/privacy}","received_events_url":"https://api.github.com/users/YuitoSato/received_events","type":"User","site_admin":false},"body":"kaminari。。。","created_at":"2016-04-11T05:49:06Z","updated_at":"2016-04-11T05:49:06Z","html_url":"https://github.com/utr066/protospace/pull/10#discussion_r59156468","pull_request_url":"https://api.github.com/repos/utr066/protospace/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/utr066/protospace/pulls/comments/59156468"},"html":{"href":"https://github.com/utr066/protospace/pull/10#discussion_r59156468"},"pull_request":{"href":"https://api.github.com/repos/utr066/protospace/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/utr066/protospace/pulls/10","id":65888511,"html_url":"https://github.com/utr066/protospace/pull/10","diff_url":"https://github.com/utr066/protospace/pull/10.diff","patch_url":"https://github.com/utr066/protospace/pull/10.patch","issue_url":"https://api.github.com/repos/utr066/protospace/issues/10","number":10,"state":"open","locked":false,"title":"Popular and newest function","user":{"login":"utr066","id":14937676,"avatar_url":"https://avatars.githubusercontent.com/u/14937676?v=3","gravatar_id":"","url":"https://api.github.com/users/utr066","html_url":"https://github.com/utr066","followers_url":"https://api.github.com/users/utr066/followers","following_url":"https://api.github.com/users/utr066/following{/other_user}","gists_url":"https://api.github.com/users/utr066/gists{/gist_id}","starred_url":"https://api.github.com/users/utr066/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/utr066/subscriptions","organizations_url":"https://api.github.com/users/utr066/orgs","repos_url":"https://api.github.com/users/utr066/repos","events_url":"https://api.github.com/users/utr066/events{/privacy}","received_events_url":"https://api.github.com/users/utr066/received_events","type":"User","site_admin":false},"body":"# WHAT\r\nPopular,Newest機能を追加。\r\n\r\n# WHY\r\n投稿されたプロトタイプををlike数順と新しい順に見ることができるようにするため。","created_at":"2016-04-09T18:30:35Z","updated_at":"2016-04-11T05:49:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6aa26280f12efc329f5a19ec70c9ec336b9ff0a9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/utr066/protospace/pulls/10/commits","review_comments_url":"https://api.github.com/repos/utr066/protospace/pulls/10/comments","review_comment_url":"https://api.github.com/repos/utr066/protospace/pulls/comments{/number}","comments_url":"https://api.github.com/repos/utr066/protospace/issues/10/comments","statuses_url":"https://api.github.com/repos/utr066/protospace/statuses/7f9133c192aea0fe5bc1e3be1497fc9bdd8ae042","head":{"label":"utr066:popular_and_newest_function","ref":"popular_and_newest_function","sha":"7f9133c192aea0fe5bc1e3be1497fc9bdd8ae042","user":{"login":"utr066","id":14937676,"avatar_url":"https://avatars.githubusercontent.com/u/14937676?v=3","gravatar_id":"","url":"https://api.github.com/users/utr066","html_url":"https://github.com/utr066","followers_url":"https://api.github.com/users/utr066/followers","following_url":"https://api.github.com/users/utr066/following{/other_user}","gists_url":"https://api.github.com/users/utr066/gists{/gist_id}","starred_url":"https://api.github.com/users/utr066/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/utr066/subscriptions","organizations_url":"https://api.github.com/users/utr066/orgs","repos_url":"https://api.github.com/users/utr066/repos","events_url":"https://api.github.com/users/utr066/events{/privacy}","received_events_url":"https://api.github.com/users/utr066/received_events","type":"User","site_admin":false},"repo":{"id":51907213,"name":"protospace","full_name":"utr066/protospace","owner":{"login":"utr066","id":14937676,"avatar_url":"https://avatars.githubusercontent.com/u/14937676?v=3","gravatar_id":"","url":"https://api.github.com/users/utr066","html_url":"https://github.com/utr066","followers_url":"https://api.github.com/users/utr066/followers","following_url":"https://api.github.com/users/utr066/following{/other_user}","gists_url":"https://api.github.com/users/utr066/gists{/gist_id}","starred_url":"https://api.github.com/users/utr066/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/utr066/subscriptions","organizations_url":"https://api.github.com/users/utr066/orgs","repos_url":"https://api.github.com/users/utr066/repos","events_url":"https://api.github.com/users/utr066/events{/privacy}","received_events_url":"https://api.github.com/users/utr066/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/utr066/protospace","description":"","fork":false,"url":"https://api.github.com/repos/utr066/protospace","forks_url":"https://api.github.com/repos/utr066/protospace/forks","keys_url":"https://api.github.com/repos/utr066/protospace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/utr066/protospace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/utr066/protospace/teams","hooks_url":"https://api.github.com/repos/utr066/protospace/hooks","issue_events_url":"https://api.github.com/repos/utr066/protospace/issues/events{/number}","events_url":"https://api.github.com/repos/utr066/protospace/events","assignees_url":"https://api.github.com/repos/utr066/protospace/assignees{/user}","branches_url":"https://api.github.com/repos/utr066/protospace/branches{/branch}","tags_url":"https://api.github.com/repos/utr066/protospace/tags","blobs_url":"https://api.github.com/repos/utr066/protospace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/utr066/protospace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/utr066/protospace/git/refs{/sha}","trees_url":"https://api.github.com/repos/utr066/protospace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/utr066/protospace/statuses/{sha}","languages_url":"https://api.github.com/repos/utr066/protospace/languages","stargazers_url":"https://api.github.com/repos/utr066/protospace/stargazers","contributors_url":"https://api.github.com/repos/utr066/protospace/contributors","subscribers_url":"https://api.github.com/repos/utr066/protospace/subscribers","subscription_url":"https://api.github.com/repos/utr066/protospace/subscription","commits_url":"https://api.github.com/repos/utr066/protospace/commits{/sha}","git_commits_url":"https://api.github.com/repos/utr066/protospace/git/commits{/sha}","comments_url":"https://api.github.com/repos/utr066/protospace/comments{/number}","issue_comment_url":"https://api.github.com/repos/utr066/protospace/issues/comments{/number}","contents_url":"https://api.github.com/repos/utr066/protospace/contents/{+path}","compare_url":"https://api.github.com/repos/utr066/protospace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/utr066/protospace/merges","archive_url":"https://api.github.com/repos/utr066/protospace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/utr066/protospace/downloads","issues_url":"https://api.github.com/repos/utr066/protospace/issues{/number}","pulls_url":"https://api.github.com/repos/utr066/protospace/pulls{/number}","milestones_url":"https://api.github.com/repos/utr066/protospace/milestones{/number}","notifications_url":"https://api.github.com/repos/utr066/protospace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/utr066/protospace/labels{/name}","releases_url":"https://api.github.com/repos/utr066/protospace/releases{/id}","deployments_url":"https://api.github.com/repos/utr066/protospace/deployments","created_at":"2016-02-17T08:33:20Z","updated_at":"2016-03-12T15:26:26Z","pushed_at":"2016-04-09T18:30:35Z","git_url":"git://github.com/utr066/protospace.git","ssh_url":"git@github.com:utr066/protospace.git","clone_url":"https://github.com/utr066/protospace.git","svn_url":"https://github.com/utr066/protospace","homepage":null,"size":1446,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"utr066:master","ref":"master","sha":"b3ab3e574b3f1c220304c14241abe28c45858f2d","user":{"login":"utr066","id":14937676,"avatar_url":"https://avatars.githubusercontent.com/u/14937676?v=3","gravatar_id":"","url":"https://api.github.com/users/utr066","html_url":"https://github.com/utr066","followers_url":"https://api.github.com/users/utr066/followers","following_url":"https://api.github.com/users/utr066/following{/other_user}","gists_url":"https://api.github.com/users/utr066/gists{/gist_id}","starred_url":"https://api.github.com/users/utr066/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/utr066/subscriptions","organizations_url":"https://api.github.com/users/utr066/orgs","repos_url":"https://api.github.com/users/utr066/repos","events_url":"https://api.github.com/users/utr066/events{/privacy}","received_events_url":"https://api.github.com/users/utr066/received_events","type":"User","site_admin":false},"repo":{"id":51907213,"name":"protospace","full_name":"utr066/protospace","owner":{"login":"utr066","id":14937676,"avatar_url":"https://avatars.githubusercontent.com/u/14937676?v=3","gravatar_id":"","url":"https://api.github.com/users/utr066","html_url":"https://github.com/utr066","followers_url":"https://api.github.com/users/utr066/followers","following_url":"https://api.github.com/users/utr066/following{/other_user}","gists_url":"https://api.github.com/users/utr066/gists{/gist_id}","starred_url":"https://api.github.com/users/utr066/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/utr066/subscriptions","organizations_url":"https://api.github.com/users/utr066/orgs","repos_url":"https://api.github.com/users/utr066/repos","events_url":"https://api.github.com/users/utr066/events{/privacy}","received_events_url":"https://api.github.com/users/utr066/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/utr066/protospace","description":"","fork":false,"url":"https://api.github.com/repos/utr066/protospace","forks_url":"https://api.github.com/repos/utr066/protospace/forks","keys_url":"https://api.github.com/repos/utr066/protospace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/utr066/protospace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/utr066/protospace/teams","hooks_url":"https://api.github.com/repos/utr066/protospace/hooks","issue_events_url":"https://api.github.com/repos/utr066/protospace/issues/events{/number}","events_url":"https://api.github.com/repos/utr066/protospace/events","assignees_url":"https://api.github.com/repos/utr066/protospace/assignees{/user}","branches_url":"https://api.github.com/repos/utr066/protospace/branches{/branch}","tags_url":"https://api.github.com/repos/utr066/protospace/tags","blobs_url":"https://api.github.com/repos/utr066/protospace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/utr066/protospace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/utr066/protospace/git/refs{/sha}","trees_url":"https://api.github.com/repos/utr066/protospace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/utr066/protospace/statuses/{sha}","languages_url":"https://api.github.com/repos/utr066/protospace/languages","stargazers_url":"https://api.github.com/repos/utr066/protospace/stargazers","contributors_url":"https://api.github.com/repos/utr066/protospace/contributors","subscribers_url":"https://api.github.com/repos/utr066/protospace/subscribers","subscription_url":"https://api.github.com/repos/utr066/protospace/subscription","commits_url":"https://api.github.com/repos/utr066/protospace/commits{/sha}","git_commits_url":"https://api.github.com/repos/utr066/protospace/git/commits{/sha}","comments_url":"https://api.github.com/repos/utr066/protospace/comments{/number}","issue_comment_url":"https://api.github.com/repos/utr066/protospace/issues/comments{/number}","contents_url":"https://api.github.com/repos/utr066/protospace/contents/{+path}","compare_url":"https://api.github.com/repos/utr066/protospace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/utr066/protospace/merges","archive_url":"https://api.github.com/repos/utr066/protospace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/utr066/protospace/downloads","issues_url":"https://api.github.com/repos/utr066/protospace/issues{/number}","pulls_url":"https://api.github.com/repos/utr066/protospace/pulls{/number}","milestones_url":"https://api.github.com/repos/utr066/protospace/milestones{/number}","notifications_url":"https://api.github.com/repos/utr066/protospace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/utr066/protospace/labels{/name}","releases_url":"https://api.github.com/repos/utr066/protospace/releases{/id}","deployments_url":"https://api.github.com/repos/utr066/protospace/deployments","created_at":"2016-02-17T08:33:20Z","updated_at":"2016-03-12T15:26:26Z","pushed_at":"2016-04-09T18:30:35Z","git_url":"git://github.com/utr066/protospace.git","ssh_url":"git@github.com:utr066/protospace.git","clone_url":"https://github.com/utr066/protospace.git","svn_url":"https://github.com/utr066/protospace","homepage":null,"size":1446,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/utr066/protospace/pulls/10"},"html":{"href":"https://github.com/utr066/protospace/pull/10"},"issue":{"href":"https://api.github.com/repos/utr066/protospace/issues/10"},"comments":{"href":"https://api.github.com/repos/utr066/protospace/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/utr066/protospace/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/utr066/protospace/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/utr066/protospace/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/utr066/protospace/statuses/7f9133c192aea0fe5bc1e3be1497fc9bdd8ae042"}}}}