{"action":"closed","number":18,"pull_request":{"url":"https://api.github.com/repos/cino3/HiramekiMart/pulls/18","id":99350412,"html_url":"https://github.com/cino3/HiramekiMart/pull/18","diff_url":"https://github.com/cino3/HiramekiMart/pull/18.diff","patch_url":"https://github.com/cino3/HiramekiMart/pull/18.patch","issue_url":"https://api.github.com/repos/cino3/HiramekiMart/issues/18","number":18,"state":"closed","locked":false,"title":"「お気に入り」機能の実装","user":{"login":"cino3","id":20321861,"avatar_url":"https://avatars.githubusercontent.com/u/20321861?v=3","gravatar_id":"","url":"https://api.github.com/users/cino3","html_url":"https://github.com/cino3","followers_url":"https://api.github.com/users/cino3/followers","following_url":"https://api.github.com/users/cino3/following{/other_user}","gists_url":"https://api.github.com/users/cino3/gists{/gist_id}","starred_url":"https://api.github.com/users/cino3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cino3/subscriptions","organizations_url":"https://api.github.com/users/cino3/orgs","repos_url":"https://api.github.com/users/cino3/repos","events_url":"https://api.github.com/users/cino3/events{/privacy}","received_events_url":"https://api.github.com/users/cino3/received_events","type":"User","site_admin":false},"body":"closed #17 \r\n\r\n- [x]  favorites#createアクション、favorites#destroyアクションへのルーティングを設定\r\n- [x]  favoritesコントローラ作成\r\n- [x]  アイテム一覧画面をパーシャル化\r\n------------------------------------------------------------------------------------------\r\n- [x] favoritesコントローラの中身を書く\r\n- [x] 「ユーザのお気に入りを検索」する、モデルのメソッド Item#find_fav(user) を作成\r\n- [x] Item#find_fav(user) のテストを書く\r\n- [x] 「ユーザにお気に入りされてる？」かどうか調べる、モデルのメソッドItem#favorited_by?(user)\r\n を作成\r\n- [x] Item#favorited_by?(user)のテストを書く\r\n- [x] アイテム詳細画面にお気に入りボタンを作成する\r\n- [x] アイテム詳細画面にお気に入り取り消しボタンを作成する\r\n- [x] アイテム詳細画面のお気に入りボタンとお気に入り取り消しボタンが状況に応じて一方だけが表示されるようにする\r\n\r\n\r\n","created_at":"2016-12-26T08:24:48Z","updated_at":"2017-01-06T15:29:58Z","closed_at":"2017-01-06T15:29:58Z","merged_at":"2017-01-06T15:29:58Z","merge_commit_sha":"ad49643907325c5807a709484d63eaffd57cbe20","assignee":{"login":"cino3","id":20321861,"avatar_url":"https://avatars.githubusercontent.com/u/20321861?v=3","gravatar_id":"","url":"https://api.github.com/users/cino3","html_url":"https://github.com/cino3","followers_url":"https://api.github.com/users/cino3/followers","following_url":"https://api.github.com/users/cino3/following{/other_user}","gists_url":"https://api.github.com/users/cino3/gists{/gist_id}","starred_url":"https://api.github.com/users/cino3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cino3/subscriptions","organizations_url":"https://api.github.com/users/cino3/orgs","repos_url":"https://api.github.com/users/cino3/repos","events_url":"https://api.github.com/users/cino3/events{/privacy}","received_events_url":"https://api.github.com/users/cino3/received_events","type":"User","site_admin":false},"assignees":[{"login":"cino3","id":20321861,"avatar_url":"https://avatars.githubusercontent.com/u/20321861?v=3","gravatar_id":"","url":"https://api.github.com/users/cino3","html_url":"https://github.com/cino3","followers_url":"https://api.github.com/users/cino3/followers","following_url":"https://api.github.com/users/cino3/following{/other_user}","gists_url":"https://api.github.com/users/cino3/gists{/gist_id}","starred_url":"https://api.github.com/users/cino3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cino3/subscriptions","organizations_url":"https://api.github.com/users/cino3/orgs","repos_url":"https://api.github.com/users/cino3/repos","events_url":"https://api.github.com/users/cino3/events{/privacy}","received_events_url":"https://api.github.com/users/cino3/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/cino3/HiramekiMart/pulls/18/commits","review_comments_url":"https://api.github.com/repos/cino3/HiramekiMart/pulls/18/comments","review_comment_url":"https://api.github.com/repos/cino3/HiramekiMart/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cino3/HiramekiMart/issues/18/comments","statuses_url":"https://api.github.com/repos/cino3/HiramekiMart/statuses/5d61df8bfd69ca09b8c292b9429f5a7e575b3c3e","head":{"label":"cino3:17-fovorite-implement","ref":"17-fovorite-implement","sha":"5d61df8bfd69ca09b8c292b9429f5a7e575b3c3e","user":{"login":"cino3","id":20321861,"avatar_url":"https://avatars.githubusercontent.com/u/20321861?v=3","gravatar_id":"","url":"https://api.github.com/users/cino3","html_url":"https://github.com/cino3","followers_url":"https://api.github.com/users/cino3/followers","following_url":"https://api.github.com/users/cino3/following{/other_user}","gists_url":"https://api.github.com/users/cino3/gists{/gist_id}","starred_url":"https://api.github.com/users/cino3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cino3/subscriptions","organizations_url":"https://api.github.com/users/cino3/orgs","repos_url":"https://api.github.com/users/cino3/repos","events_url":"https://api.github.com/users/cino3/events{/privacy}","received_events_url":"https://api.github.com/users/cino3/received_events","type":"User","site_admin":false},"repo":{"id":76201853,"name":"HiramekiMart","full_name":"cino3/HiramekiMart","owner":{"login":"cino3","id":20321861,"avatar_url":"https://avatars.githubusercontent.com/u/20321861?v=3","gravatar_id":"","url":"https://api.github.com/users/cino3","html_url":"https://github.com/cino3","followers_url":"https://api.github.com/users/cino3/followers","following_url":"https://api.github.com/users/cino3/following{/other_user}","gists_url":"https://api.github.com/users/cino3/gists{/gist_id}","starred_url":"https://api.github.com/users/cino3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cino3/subscriptions","organizations_url":"https://api.github.com/users/cino3/orgs","repos_url":"https://api.github.com/users/cino3/repos","events_url":"https://api.github.com/users/cino3/events{/privacy}","received_events_url":"https://api.github.com/users/cino3/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cino3/HiramekiMart","description":null,"fork":false,"url":"https://api.github.com/repos/cino3/HiramekiMart","forks_url":"https://api.github.com/repos/cino3/HiramekiMart/forks","keys_url":"https://api.github.com/repos/cino3/HiramekiMart/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cino3/HiramekiMart/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cino3/HiramekiMart/teams","hooks_url":"https://api.github.com/repos/cino3/HiramekiMart/hooks","issue_events_url":"https://api.github.com/repos/cino3/HiramekiMart/issues/events{/number}","events_url":"https://api.github.com/repos/cino3/HiramekiMart/events","assignees_url":"https://api.github.com/repos/cino3/HiramekiMart/assignees{/user}","branches_url":"https://api.github.com/repos/cino3/HiramekiMart/branches{/branch}","tags_url":"https://api.github.com/repos/cino3/HiramekiMart/tags","blobs_url":"https://api.github.com/repos/cino3/HiramekiMart/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cino3/HiramekiMart/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cino3/HiramekiMart/git/refs{/sha}","trees_url":"https://api.github.com/repos/cino3/HiramekiMart/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cino3/HiramekiMart/statuses/{sha}","languages_url":"https://api.github.com/repos/cino3/HiramekiMart/languages","stargazers_url":"https://api.github.com/repos/cino3/HiramekiMart/stargazers","contributors_url":"https://api.github.com/repos/cino3/HiramekiMart/contributors","subscribers_url":"https://api.github.com/repos/cino3/HiramekiMart/subscribers","subscription_url":"https://api.github.com/repos/cino3/HiramekiMart/subscription","commits_url":"https://api.github.com/repos/cino3/HiramekiMart/commits{/sha}","git_commits_url":"https://api.github.com/repos/cino3/HiramekiMart/git/commits{/sha}","comments_url":"https://api.github.com/repos/cino3/HiramekiMart/comments{/number}","issue_comment_url":"https://api.github.com/repos/cino3/HiramekiMart/issues/comments{/number}","contents_url":"https://api.github.com/repos/cino3/HiramekiMart/contents/{+path}","compare_url":"https://api.github.com/repos/cino3/HiramekiMart/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cino3/HiramekiMart/merges","archive_url":"https://api.github.com/repos/cino3/HiramekiMart/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cino3/HiramekiMart/downloads","issues_url":"https://api.github.com/repos/cino3/HiramekiMart/issues{/number}","pulls_url":"https://api.github.com/repos/cino3/HiramekiMart/pulls{/number}","milestones_url":"https://api.github.com/repos/cino3/HiramekiMart/milestones{/number}","notifications_url":"https://api.github.com/repos/cino3/HiramekiMart/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cino3/HiramekiMart/labels{/name}","releases_url":"https://api.github.com/repos/cino3/HiramekiMart/releases{/id}","deployments_url":"https://api.github.com/repos/cino3/HiramekiMart/deployments","created_at":"2016-12-11T21:42:19Z","updated_at":"2016-12-11T21:51:07Z","pushed_at":"2017-01-06T15:29:58Z","git_url":"git://github.com/cino3/HiramekiMart.git","ssh_url":"git@github.com:cino3/HiramekiMart.git","clone_url":"https://github.com/cino3/HiramekiMart.git","svn_url":"https://github.com/cino3/HiramekiMart","homepage":null,"size":34857,"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":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"cino3:master","ref":"master","sha":"85ff53da96222b6be5ff2b17d0e2d4c9efaa5059","user":{"login":"cino3","id":20321861,"avatar_url":"https://avatars.githubusercontent.com/u/20321861?v=3","gravatar_id":"","url":"https://api.github.com/users/cino3","html_url":"https://github.com/cino3","followers_url":"https://api.github.com/users/cino3/followers","following_url":"https://api.github.com/users/cino3/following{/other_user}","gists_url":"https://api.github.com/users/cino3/gists{/gist_id}","starred_url":"https://api.github.com/users/cino3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cino3/subscriptions","organizations_url":"https://api.github.com/users/cino3/orgs","repos_url":"https://api.github.com/users/cino3/repos","events_url":"https://api.github.com/users/cino3/events{/privacy}","received_events_url":"https://api.github.com/users/cino3/received_events","type":"User","site_admin":false},"repo":{"id":76201853,"name":"HiramekiMart","full_name":"cino3/HiramekiMart","owner":{"login":"cino3","id":20321861,"avatar_url":"https://avatars.githubusercontent.com/u/20321861?v=3","gravatar_id":"","url":"https://api.github.com/users/cino3","html_url":"https://github.com/cino3","followers_url":"https://api.github.com/users/cino3/followers","following_url":"https://api.github.com/users/cino3/following{/other_user}","gists_url":"https://api.github.com/users/cino3/gists{/gist_id}","starred_url":"https://api.github.com/users/cino3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cino3/subscriptions","organizations_url":"https://api.github.com/users/cino3/orgs","repos_url":"https://api.github.com/users/cino3/repos","events_url":"https://api.github.com/users/cino3/events{/privacy}","received_events_url":"https://api.github.com/users/cino3/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cino3/HiramekiMart","description":null,"fork":false,"url":"https://api.github.com/repos/cino3/HiramekiMart","forks_url":"https://api.github.com/repos/cino3/HiramekiMart/forks","keys_url":"https://api.github.com/repos/cino3/HiramekiMart/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cino3/HiramekiMart/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cino3/HiramekiMart/teams","hooks_url":"https://api.github.com/repos/cino3/HiramekiMart/hooks","issue_events_url":"https://api.github.com/repos/cino3/HiramekiMart/issues/events{/number}","events_url":"https://api.github.com/repos/cino3/HiramekiMart/events","assignees_url":"https://api.github.com/repos/cino3/HiramekiMart/assignees{/user}","branches_url":"https://api.github.com/repos/cino3/HiramekiMart/branches{/branch}","tags_url":"https://api.github.com/repos/cino3/HiramekiMart/tags","blobs_url":"https://api.github.com/repos/cino3/HiramekiMart/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cino3/HiramekiMart/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cino3/HiramekiMart/git/refs{/sha}","trees_url":"https://api.github.com/repos/cino3/HiramekiMart/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cino3/HiramekiMart/statuses/{sha}","languages_url":"https://api.github.com/repos/cino3/HiramekiMart/languages","stargazers_url":"https://api.github.com/repos/cino3/HiramekiMart/stargazers","contributors_url":"https://api.github.com/repos/cino3/HiramekiMart/contributors","subscribers_url":"https://api.github.com/repos/cino3/HiramekiMart/subscribers","subscription_url":"https://api.github.com/repos/cino3/HiramekiMart/subscription","commits_url":"https://api.github.com/repos/cino3/HiramekiMart/commits{/sha}","git_commits_url":"https://api.github.com/repos/cino3/HiramekiMart/git/commits{/sha}","comments_url":"https://api.github.com/repos/cino3/HiramekiMart/comments{/number}","issue_comment_url":"https://api.github.com/repos/cino3/HiramekiMart/issues/comments{/number}","contents_url":"https://api.github.com/repos/cino3/HiramekiMart/contents/{+path}","compare_url":"https://api.github.com/repos/cino3/HiramekiMart/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cino3/HiramekiMart/merges","archive_url":"https://api.github.com/repos/cino3/HiramekiMart/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cino3/HiramekiMart/downloads","issues_url":"https://api.github.com/repos/cino3/HiramekiMart/issues{/number}","pulls_url":"https://api.github.com/repos/cino3/HiramekiMart/pulls{/number}","milestones_url":"https://api.github.com/repos/cino3/HiramekiMart/milestones{/number}","notifications_url":"https://api.github.com/repos/cino3/HiramekiMart/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cino3/HiramekiMart/labels{/name}","releases_url":"https://api.github.com/repos/cino3/HiramekiMart/releases{/id}","deployments_url":"https://api.github.com/repos/cino3/HiramekiMart/deployments","created_at":"2016-12-11T21:42:19Z","updated_at":"2016-12-11T21:51:07Z","pushed_at":"2017-01-06T15:29:58Z","git_url":"git://github.com/cino3/HiramekiMart.git","ssh_url":"git@github.com:cino3/HiramekiMart.git","clone_url":"https://github.com/cino3/HiramekiMart.git","svn_url":"https://github.com/cino3/HiramekiMart","homepage":null,"size":34857,"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":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cino3/HiramekiMart/pulls/18"},"html":{"href":"https://github.com/cino3/HiramekiMart/pull/18"},"issue":{"href":"https://api.github.com/repos/cino3/HiramekiMart/issues/18"},"comments":{"href":"https://api.github.com/repos/cino3/HiramekiMart/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/cino3/HiramekiMart/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/cino3/HiramekiMart/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cino3/HiramekiMart/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/cino3/HiramekiMart/statuses/5d61df8bfd69ca09b8c292b9429f5a7e575b3c3e"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"ms2sato","id":627817,"avatar_url":"https://avatars.githubusercontent.com/u/627817?v=3","gravatar_id":"","url":"https://api.github.com/users/ms2sato","html_url":"https://github.com/ms2sato","followers_url":"https://api.github.com/users/ms2sato/followers","following_url":"https://api.github.com/users/ms2sato/following{/other_user}","gists_url":"https://api.github.com/users/ms2sato/gists{/gist_id}","starred_url":"https://api.github.com/users/ms2sato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ms2sato/subscriptions","organizations_url":"https://api.github.com/users/ms2sato/orgs","repos_url":"https://api.github.com/users/ms2sato/repos","events_url":"https://api.github.com/users/ms2sato/events{/privacy}","received_events_url":"https://api.github.com/users/ms2sato/received_events","type":"User","site_admin":false},"comments":6,"review_comments":14,"maintainer_can_modify":false,"commits":9,"additions":119,"deletions":36,"changed_files":10}}
{"actor":{"display_login":"ms2sato"}}