{"action":"created","comment":{"url":"https://api.github.com/repos/right1121/shiori/pulls/comments/171161760","pull_request_review_id":99964549,"id":171161760,"diff_hunk":"@@ -26,14 +26,19 @@ def not_owner?(siori)\n   end\n   \n   def load_owner_siori\n-    travel_groups.sort_by { |a| a[:updated_at] }.reverse.select do |siori|\n+    pick_newest_siori.select do |siori|","path":"app/models/user.rb","position":null,"original_position":5,"commit_id":"f6d9db3c7633886b7532dcf347d0299d43e12359","original_commit_id":"3d23b3905dd020c26123f026409681a877fb1886","user":{"login":"ArakawaShintaro","id":13927364,"avatar_url":"https://avatars3.githubusercontent.com/u/13927364?v=4","gravatar_id":"","url":"https://api.github.com/users/ArakawaShintaro","html_url":"https://github.com/ArakawaShintaro","followers_url":"https://api.github.com/users/ArakawaShintaro/followers","following_url":"https://api.github.com/users/ArakawaShintaro/following{/other_user}","gists_url":"https://api.github.com/users/ArakawaShintaro/gists{/gist_id}","starred_url":"https://api.github.com/users/ArakawaShintaro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArakawaShintaro/subscriptions","organizations_url":"https://api.github.com/users/ArakawaShintaro/orgs","repos_url":"https://api.github.com/users/ArakawaShintaro/repos","events_url":"https://api.github.com/users/ArakawaShintaro/events{/privacy}","received_events_url":"https://api.github.com/users/ArakawaShintaro/received_events","type":"User","site_admin":false},"body":"返り値が最新のしおりなら、`newest_siori` とかでいいと思います。","created_at":"2018-02-28T07:36:15Z","updated_at":"2018-02-28T07:37:04Z","html_url":"https://github.com/right1121/shiori/pull/22#discussion_r171161760","pull_request_url":"https://api.github.com/repos/right1121/shiori/pulls/22","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/right1121/shiori/pulls/comments/171161760"},"html":{"href":"https://github.com/right1121/shiori/pull/22#discussion_r171161760"},"pull_request":{"href":"https://api.github.com/repos/right1121/shiori/pulls/22"}}},"pull_request":{"url":"https://api.github.com/repos/right1121/shiori/pulls/22","id":171870912,"html_url":"https://github.com/right1121/shiori/pull/22","diff_url":"https://github.com/right1121/shiori/pull/22.diff","patch_url":"https://github.com/right1121/shiori/pull/22.patch","issue_url":"https://api.github.com/repos/right1121/shiori/issues/22","number":22,"state":"open","locked":false,"title":"Check follow","user":{"login":"right1121","id":22765090,"avatar_url":"https://avatars1.githubusercontent.com/u/22765090?v=4","gravatar_id":"","url":"https://api.github.com/users/right1121","html_url":"https://github.com/right1121","followers_url":"https://api.github.com/users/right1121/followers","following_url":"https://api.github.com/users/right1121/following{/other_user}","gists_url":"https://api.github.com/users/right1121/gists{/gist_id}","starred_url":"https://api.github.com/users/right1121/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/right1121/subscriptions","organizations_url":"https://api.github.com/users/right1121/orgs","repos_url":"https://api.github.com/users/right1121/repos","events_url":"https://api.github.com/users/right1121/events{/privacy}","received_events_url":"https://api.github.com/users/right1121/received_events","type":"User","site_admin":false},"body":"# なにをしたのか\r\nしおり一覧で、しおりの作成者なのかフォローしているのか判別できるようにした。\r\n\r\n# なぜしたのか\r\n作成者を判別するため","created_at":"2018-02-28T06:58:48Z","updated_at":"2018-02-28T07:37:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c1617e23f2d5607f51568087b7012441f45d594d","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/right1121/shiori/pulls/22/commits","review_comments_url":"https://api.github.com/repos/right1121/shiori/pulls/22/comments","review_comment_url":"https://api.github.com/repos/right1121/shiori/pulls/comments{/number}","comments_url":"https://api.github.com/repos/right1121/shiori/issues/22/comments","statuses_url":"https://api.github.com/repos/right1121/shiori/statuses/f6d9db3c7633886b7532dcf347d0299d43e12359","head":{"label":"right1121:check_follow","ref":"check_follow","sha":"f6d9db3c7633886b7532dcf347d0299d43e12359","user":{"login":"right1121","id":22765090,"avatar_url":"https://avatars1.githubusercontent.com/u/22765090?v=4","gravatar_id":"","url":"https://api.github.com/users/right1121","html_url":"https://github.com/right1121","followers_url":"https://api.github.com/users/right1121/followers","following_url":"https://api.github.com/users/right1121/following{/other_user}","gists_url":"https://api.github.com/users/right1121/gists{/gist_id}","starred_url":"https://api.github.com/users/right1121/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/right1121/subscriptions","organizations_url":"https://api.github.com/users/right1121/orgs","repos_url":"https://api.github.com/users/right1121/repos","events_url":"https://api.github.com/users/right1121/events{/privacy}","received_events_url":"https://api.github.com/users/right1121/received_events","type":"User","site_admin":false},"repo":{"id":114223688,"name":"shiori","full_name":"right1121/shiori","owner":{"login":"right1121","id":22765090,"avatar_url":"https://avatars1.githubusercontent.com/u/22765090?v=4","gravatar_id":"","url":"https://api.github.com/users/right1121","html_url":"https://github.com/right1121","followers_url":"https://api.github.com/users/right1121/followers","following_url":"https://api.github.com/users/right1121/following{/other_user}","gists_url":"https://api.github.com/users/right1121/gists{/gist_id}","starred_url":"https://api.github.com/users/right1121/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/right1121/subscriptions","organizations_url":"https://api.github.com/users/right1121/orgs","repos_url":"https://api.github.com/users/right1121/repos","events_url":"https://api.github.com/users/right1121/events{/privacy}","received_events_url":"https://api.github.com/users/right1121/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/right1121/shiori","description":null,"fork":false,"url":"https://api.github.com/repos/right1121/shiori","forks_url":"https://api.github.com/repos/right1121/shiori/forks","keys_url":"https://api.github.com/repos/right1121/shiori/keys{/key_id}","collaborators_url":"https://api.github.com/repos/right1121/shiori/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/right1121/shiori/teams","hooks_url":"https://api.github.com/repos/right1121/shiori/hooks","issue_events_url":"https://api.github.com/repos/right1121/shiori/issues/events{/number}","events_url":"https://api.github.com/repos/right1121/shiori/events","assignees_url":"https://api.github.com/repos/right1121/shiori/assignees{/user}","branches_url":"https://api.github.com/repos/right1121/shiori/branches{/branch}","tags_url":"https://api.github.com/repos/right1121/shiori/tags","blobs_url":"https://api.github.com/repos/right1121/shiori/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/right1121/shiori/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/right1121/shiori/git/refs{/sha}","trees_url":"https://api.github.com/repos/right1121/shiori/git/trees{/sha}","statuses_url":"https://api.github.com/repos/right1121/shiori/statuses/{sha}","languages_url":"https://api.github.com/repos/right1121/shiori/languages","stargazers_url":"https://api.github.com/repos/right1121/shiori/stargazers","contributors_url":"https://api.github.com/repos/right1121/shiori/contributors","subscribers_url":"https://api.github.com/repos/right1121/shiori/subscribers","subscription_url":"https://api.github.com/repos/right1121/shiori/subscription","commits_url":"https://api.github.com/repos/right1121/shiori/commits{/sha}","git_commits_url":"https://api.github.com/repos/right1121/shiori/git/commits{/sha}","comments_url":"https://api.github.com/repos/right1121/shiori/comments{/number}","issue_comment_url":"https://api.github.com/repos/right1121/shiori/issues/comments{/number}","contents_url":"https://api.github.com/repos/right1121/shiori/contents/{+path}","compare_url":"https://api.github.com/repos/right1121/shiori/compare/{base}...{head}","merges_url":"https://api.github.com/repos/right1121/shiori/merges","archive_url":"https://api.github.com/repos/right1121/shiori/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/right1121/shiori/downloads","issues_url":"https://api.github.com/repos/right1121/shiori/issues{/number}","pulls_url":"https://api.github.com/repos/right1121/shiori/pulls{/number}","milestones_url":"https://api.github.com/repos/right1121/shiori/milestones{/number}","notifications_url":"https://api.github.com/repos/right1121/shiori/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/right1121/shiori/labels{/name}","releases_url":"https://api.github.com/repos/right1121/shiori/releases{/id}","deployments_url":"https://api.github.com/repos/right1121/shiori/deployments","created_at":"2017-12-14T08:30:55Z","updated_at":"2017-12-14T08:34:13Z","pushed_at":"2018-02-28T06:58:49Z","git_url":"git://github.com/right1121/shiori.git","ssh_url":"git@github.com:right1121/shiori.git","clone_url":"https://github.com/right1121/shiori.git","svn_url":"https://github.com/right1121/shiori","homepage":null,"size":1019,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"right1121:master","ref":"master","sha":"75a2702f2ce580beb29ca3d18c0b75af6733a473","user":{"login":"right1121","id":22765090,"avatar_url":"https://avatars1.githubusercontent.com/u/22765090?v=4","gravatar_id":"","url":"https://api.github.com/users/right1121","html_url":"https://github.com/right1121","followers_url":"https://api.github.com/users/right1121/followers","following_url":"https://api.github.com/users/right1121/following{/other_user}","gists_url":"https://api.github.com/users/right1121/gists{/gist_id}","starred_url":"https://api.github.com/users/right1121/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/right1121/subscriptions","organizations_url":"https://api.github.com/users/right1121/orgs","repos_url":"https://api.github.com/users/right1121/repos","events_url":"https://api.github.com/users/right1121/events{/privacy}","received_events_url":"https://api.github.com/users/right1121/received_events","type":"User","site_admin":false},"repo":{"id":114223688,"name":"shiori","full_name":"right1121/shiori","owner":{"login":"right1121","id":22765090,"avatar_url":"https://avatars1.githubusercontent.com/u/22765090?v=4","gravatar_id":"","url":"https://api.github.com/users/right1121","html_url":"https://github.com/right1121","followers_url":"https://api.github.com/users/right1121/followers","following_url":"https://api.github.com/users/right1121/following{/other_user}","gists_url":"https://api.github.com/users/right1121/gists{/gist_id}","starred_url":"https://api.github.com/users/right1121/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/right1121/subscriptions","organizations_url":"https://api.github.com/users/right1121/orgs","repos_url":"https://api.github.com/users/right1121/repos","events_url":"https://api.github.com/users/right1121/events{/privacy}","received_events_url":"https://api.github.com/users/right1121/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/right1121/shiori","description":null,"fork":false,"url":"https://api.github.com/repos/right1121/shiori","forks_url":"https://api.github.com/repos/right1121/shiori/forks","keys_url":"https://api.github.com/repos/right1121/shiori/keys{/key_id}","collaborators_url":"https://api.github.com/repos/right1121/shiori/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/right1121/shiori/teams","hooks_url":"https://api.github.com/repos/right1121/shiori/hooks","issue_events_url":"https://api.github.com/repos/right1121/shiori/issues/events{/number}","events_url":"https://api.github.com/repos/right1121/shiori/events","assignees_url":"https://api.github.com/repos/right1121/shiori/assignees{/user}","branches_url":"https://api.github.com/repos/right1121/shiori/branches{/branch}","tags_url":"https://api.github.com/repos/right1121/shiori/tags","blobs_url":"https://api.github.com/repos/right1121/shiori/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/right1121/shiori/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/right1121/shiori/git/refs{/sha}","trees_url":"https://api.github.com/repos/right1121/shiori/git/trees{/sha}","statuses_url":"https://api.github.com/repos/right1121/shiori/statuses/{sha}","languages_url":"https://api.github.com/repos/right1121/shiori/languages","stargazers_url":"https://api.github.com/repos/right1121/shiori/stargazers","contributors_url":"https://api.github.com/repos/right1121/shiori/contributors","subscribers_url":"https://api.github.com/repos/right1121/shiori/subscribers","subscription_url":"https://api.github.com/repos/right1121/shiori/subscription","commits_url":"https://api.github.com/repos/right1121/shiori/commits{/sha}","git_commits_url":"https://api.github.com/repos/right1121/shiori/git/commits{/sha}","comments_url":"https://api.github.com/repos/right1121/shiori/comments{/number}","issue_comment_url":"https://api.github.com/repos/right1121/shiori/issues/comments{/number}","contents_url":"https://api.github.com/repos/right1121/shiori/contents/{+path}","compare_url":"https://api.github.com/repos/right1121/shiori/compare/{base}...{head}","merges_url":"https://api.github.com/repos/right1121/shiori/merges","archive_url":"https://api.github.com/repos/right1121/shiori/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/right1121/shiori/downloads","issues_url":"https://api.github.com/repos/right1121/shiori/issues{/number}","pulls_url":"https://api.github.com/repos/right1121/shiori/pulls{/number}","milestones_url":"https://api.github.com/repos/right1121/shiori/milestones{/number}","notifications_url":"https://api.github.com/repos/right1121/shiori/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/right1121/shiori/labels{/name}","releases_url":"https://api.github.com/repos/right1121/shiori/releases{/id}","deployments_url":"https://api.github.com/repos/right1121/shiori/deployments","created_at":"2017-12-14T08:30:55Z","updated_at":"2017-12-14T08:34:13Z","pushed_at":"2018-02-28T06:58:49Z","git_url":"git://github.com/right1121/shiori.git","ssh_url":"git@github.com:right1121/shiori.git","clone_url":"https://github.com/right1121/shiori.git","svn_url":"https://github.com/right1121/shiori","homepage":null,"size":1019,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/right1121/shiori/pulls/22"},"html":{"href":"https://github.com/right1121/shiori/pull/22"},"issue":{"href":"https://api.github.com/repos/right1121/shiori/issues/22"},"comments":{"href":"https://api.github.com/repos/right1121/shiori/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/right1121/shiori/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/right1121/shiori/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/right1121/shiori/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/right1121/shiori/statuses/f6d9db3c7633886b7532dcf347d0299d43e12359"}},"author_association":"OWNER"}}
{"actor":{"display_login":"ArakawaShintaro"}}