{"action":"closed","number":62,"pull_request":{"url":"https://api.github.com/repos/sion001/diver_23/pulls/62","id":97744051,"html_url":"https://github.com/sion001/diver_23/pull/62","diff_url":"https://github.com/sion001/diver_23/pull/62.diff","patch_url":"https://github.com/sion001/diver_23/pull/62.patch","issue_url":"https://api.github.com/repos/sion001/diver_23/issues/62","number":62,"state":"closed","locked":false,"title":"[Fixed]お気に入りのアソシエーションを設定する","user":{"login":"suzukisan22","id":12987013,"avatar_url":"https://avatars.githubusercontent.com/u/12987013?v=3","gravatar_id":"","url":"https://api.github.com/users/suzukisan22","html_url":"https://github.com/suzukisan22","followers_url":"https://api.github.com/users/suzukisan22/followers","following_url":"https://api.github.com/users/suzukisan22/following{/other_user}","gists_url":"https://api.github.com/users/suzukisan22/gists{/gist_id}","starred_url":"https://api.github.com/users/suzukisan22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suzukisan22/subscriptions","organizations_url":"https://api.github.com/users/suzukisan22/orgs","repos_url":"https://api.github.com/users/suzukisan22/repos","events_url":"https://api.github.com/users/suzukisan22/events{/privacy}","received_events_url":"https://api.github.com/users/suzukisan22/received_events","type":"User","site_admin":false},"body":"#30 \r\n\r\n- [ ] Userに対して、Likesのアソシエーションを設定する。\r\n\r\n- [ ] Userモデルにおいて、likesテーブルを通してuserがお気に入りした質問の数を取得できるよう設定\r\n\r\n- [ ] Questionに対して、Likesのアソシエーションを設定する。\r\n\r\nLikes : User = 多 : 1\r\nLikes : Question = 多 : 1","created_at":"2016-12-13T12:45:26Z","updated_at":"2016-12-13T15:12:05Z","closed_at":"2016-12-13T15:12:05Z","merged_at":"2016-12-13T15:12:05Z","merge_commit_sha":"4d7c6d22a37739b4e19232695ce647fd2b891f13","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/sion001/diver_23/pulls/62/commits","review_comments_url":"https://api.github.com/repos/sion001/diver_23/pulls/62/comments","review_comment_url":"https://api.github.com/repos/sion001/diver_23/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sion001/diver_23/issues/62/comments","statuses_url":"https://api.github.com/repos/sion001/diver_23/statuses/ae80f048caedd62ffecdbed7a2acbaa834028f22","head":{"label":"sion001:issues#30","ref":"issues#30","sha":"ae80f048caedd62ffecdbed7a2acbaa834028f22","user":{"login":"sion001","id":19611508,"avatar_url":"https://avatars.githubusercontent.com/u/19611508?v=3","gravatar_id":"","url":"https://api.github.com/users/sion001","html_url":"https://github.com/sion001","followers_url":"https://api.github.com/users/sion001/followers","following_url":"https://api.github.com/users/sion001/following{/other_user}","gists_url":"https://api.github.com/users/sion001/gists{/gist_id}","starred_url":"https://api.github.com/users/sion001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sion001/subscriptions","organizations_url":"https://api.github.com/users/sion001/orgs","repos_url":"https://api.github.com/users/sion001/repos","events_url":"https://api.github.com/users/sion001/events{/privacy}","received_events_url":"https://api.github.com/users/sion001/received_events","type":"User","site_admin":false},"repo":{"id":74797813,"name":"diver_23","full_name":"sion001/diver_23","owner":{"login":"sion001","id":19611508,"avatar_url":"https://avatars.githubusercontent.com/u/19611508?v=3","gravatar_id":"","url":"https://api.github.com/users/sion001","html_url":"https://github.com/sion001","followers_url":"https://api.github.com/users/sion001/followers","following_url":"https://api.github.com/users/sion001/following{/other_user}","gists_url":"https://api.github.com/users/sion001/gists{/gist_id}","starred_url":"https://api.github.com/users/sion001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sion001/subscriptions","organizations_url":"https://api.github.com/users/sion001/orgs","repos_url":"https://api.github.com/users/sion001/repos","events_url":"https://api.github.com/users/sion001/events{/privacy}","received_events_url":"https://api.github.com/users/sion001/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sion001/diver_23","description":null,"fork":false,"url":"https://api.github.com/repos/sion001/diver_23","forks_url":"https://api.github.com/repos/sion001/diver_23/forks","keys_url":"https://api.github.com/repos/sion001/diver_23/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sion001/diver_23/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sion001/diver_23/teams","hooks_url":"https://api.github.com/repos/sion001/diver_23/hooks","issue_events_url":"https://api.github.com/repos/sion001/diver_23/issues/events{/number}","events_url":"https://api.github.com/repos/sion001/diver_23/events","assignees_url":"https://api.github.com/repos/sion001/diver_23/assignees{/user}","branches_url":"https://api.github.com/repos/sion001/diver_23/branches{/branch}","tags_url":"https://api.github.com/repos/sion001/diver_23/tags","blobs_url":"https://api.github.com/repos/sion001/diver_23/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sion001/diver_23/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sion001/diver_23/git/refs{/sha}","trees_url":"https://api.github.com/repos/sion001/diver_23/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sion001/diver_23/statuses/{sha}","languages_url":"https://api.github.com/repos/sion001/diver_23/languages","stargazers_url":"https://api.github.com/repos/sion001/diver_23/stargazers","contributors_url":"https://api.github.com/repos/sion001/diver_23/contributors","subscribers_url":"https://api.github.com/repos/sion001/diver_23/subscribers","subscription_url":"https://api.github.com/repos/sion001/diver_23/subscription","commits_url":"https://api.github.com/repos/sion001/diver_23/commits{/sha}","git_commits_url":"https://api.github.com/repos/sion001/diver_23/git/commits{/sha}","comments_url":"https://api.github.com/repos/sion001/diver_23/comments{/number}","issue_comment_url":"https://api.github.com/repos/sion001/diver_23/issues/comments{/number}","contents_url":"https://api.github.com/repos/sion001/diver_23/contents/{+path}","compare_url":"https://api.github.com/repos/sion001/diver_23/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sion001/diver_23/merges","archive_url":"https://api.github.com/repos/sion001/diver_23/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sion001/diver_23/downloads","issues_url":"https://api.github.com/repos/sion001/diver_23/issues{/number}","pulls_url":"https://api.github.com/repos/sion001/diver_23/pulls{/number}","milestones_url":"https://api.github.com/repos/sion001/diver_23/milestones{/number}","notifications_url":"https://api.github.com/repos/sion001/diver_23/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sion001/diver_23/labels{/name}","releases_url":"https://api.github.com/repos/sion001/diver_23/releases{/id}","deployments_url":"https://api.github.com/repos/sion001/diver_23/deployments","created_at":"2016-11-26T01:34:24Z","updated_at":"2016-11-26T01:35:55Z","pushed_at":"2016-12-13T15:12:05Z","git_url":"git://github.com/sion001/diver_23.git","ssh_url":"git@github.com:sion001/diver_23.git","clone_url":"https://github.com/sion001/diver_23.git","svn_url":"https://github.com/sion001/diver_23","homepage":null,"size":74,"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":27,"forks":0,"open_issues":27,"watchers":0,"default_branch":"master"}},"base":{"label":"sion001:master","ref":"master","sha":"60527cdcde998583e9062999cf96114533e641ce","user":{"login":"sion001","id":19611508,"avatar_url":"https://avatars.githubusercontent.com/u/19611508?v=3","gravatar_id":"","url":"https://api.github.com/users/sion001","html_url":"https://github.com/sion001","followers_url":"https://api.github.com/users/sion001/followers","following_url":"https://api.github.com/users/sion001/following{/other_user}","gists_url":"https://api.github.com/users/sion001/gists{/gist_id}","starred_url":"https://api.github.com/users/sion001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sion001/subscriptions","organizations_url":"https://api.github.com/users/sion001/orgs","repos_url":"https://api.github.com/users/sion001/repos","events_url":"https://api.github.com/users/sion001/events{/privacy}","received_events_url":"https://api.github.com/users/sion001/received_events","type":"User","site_admin":false},"repo":{"id":74797813,"name":"diver_23","full_name":"sion001/diver_23","owner":{"login":"sion001","id":19611508,"avatar_url":"https://avatars.githubusercontent.com/u/19611508?v=3","gravatar_id":"","url":"https://api.github.com/users/sion001","html_url":"https://github.com/sion001","followers_url":"https://api.github.com/users/sion001/followers","following_url":"https://api.github.com/users/sion001/following{/other_user}","gists_url":"https://api.github.com/users/sion001/gists{/gist_id}","starred_url":"https://api.github.com/users/sion001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sion001/subscriptions","organizations_url":"https://api.github.com/users/sion001/orgs","repos_url":"https://api.github.com/users/sion001/repos","events_url":"https://api.github.com/users/sion001/events{/privacy}","received_events_url":"https://api.github.com/users/sion001/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sion001/diver_23","description":null,"fork":false,"url":"https://api.github.com/repos/sion001/diver_23","forks_url":"https://api.github.com/repos/sion001/diver_23/forks","keys_url":"https://api.github.com/repos/sion001/diver_23/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sion001/diver_23/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sion001/diver_23/teams","hooks_url":"https://api.github.com/repos/sion001/diver_23/hooks","issue_events_url":"https://api.github.com/repos/sion001/diver_23/issues/events{/number}","events_url":"https://api.github.com/repos/sion001/diver_23/events","assignees_url":"https://api.github.com/repos/sion001/diver_23/assignees{/user}","branches_url":"https://api.github.com/repos/sion001/diver_23/branches{/branch}","tags_url":"https://api.github.com/repos/sion001/diver_23/tags","blobs_url":"https://api.github.com/repos/sion001/diver_23/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sion001/diver_23/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sion001/diver_23/git/refs{/sha}","trees_url":"https://api.github.com/repos/sion001/diver_23/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sion001/diver_23/statuses/{sha}","languages_url":"https://api.github.com/repos/sion001/diver_23/languages","stargazers_url":"https://api.github.com/repos/sion001/diver_23/stargazers","contributors_url":"https://api.github.com/repos/sion001/diver_23/contributors","subscribers_url":"https://api.github.com/repos/sion001/diver_23/subscribers","subscription_url":"https://api.github.com/repos/sion001/diver_23/subscription","commits_url":"https://api.github.com/repos/sion001/diver_23/commits{/sha}","git_commits_url":"https://api.github.com/repos/sion001/diver_23/git/commits{/sha}","comments_url":"https://api.github.com/repos/sion001/diver_23/comments{/number}","issue_comment_url":"https://api.github.com/repos/sion001/diver_23/issues/comments{/number}","contents_url":"https://api.github.com/repos/sion001/diver_23/contents/{+path}","compare_url":"https://api.github.com/repos/sion001/diver_23/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sion001/diver_23/merges","archive_url":"https://api.github.com/repos/sion001/diver_23/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sion001/diver_23/downloads","issues_url":"https://api.github.com/repos/sion001/diver_23/issues{/number}","pulls_url":"https://api.github.com/repos/sion001/diver_23/pulls{/number}","milestones_url":"https://api.github.com/repos/sion001/diver_23/milestones{/number}","notifications_url":"https://api.github.com/repos/sion001/diver_23/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sion001/diver_23/labels{/name}","releases_url":"https://api.github.com/repos/sion001/diver_23/releases{/id}","deployments_url":"https://api.github.com/repos/sion001/diver_23/deployments","created_at":"2016-11-26T01:34:24Z","updated_at":"2016-11-26T01:35:55Z","pushed_at":"2016-12-13T15:12:05Z","git_url":"git://github.com/sion001/diver_23.git","ssh_url":"git@github.com:sion001/diver_23.git","clone_url":"https://github.com/sion001/diver_23.git","svn_url":"https://github.com/sion001/diver_23","homepage":null,"size":74,"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":27,"forks":0,"open_issues":27,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sion001/diver_23/pulls/62"},"html":{"href":"https://github.com/sion001/diver_23/pull/62"},"issue":{"href":"https://api.github.com/repos/sion001/diver_23/issues/62"},"comments":{"href":"https://api.github.com/repos/sion001/diver_23/issues/62/comments"},"review_comments":{"href":"https://api.github.com/repos/sion001/diver_23/pulls/62/comments"},"review_comment":{"href":"https://api.github.com/repos/sion001/diver_23/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sion001/diver_23/pulls/62/commits"},"statuses":{"href":"https://api.github.com/repos/sion001/diver_23/statuses/ae80f048caedd62ffecdbed7a2acbaa834028f22"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"suzukisan22","id":12987013,"avatar_url":"https://avatars.githubusercontent.com/u/12987013?v=3","gravatar_id":"","url":"https://api.github.com/users/suzukisan22","html_url":"https://github.com/suzukisan22","followers_url":"https://api.github.com/users/suzukisan22/followers","following_url":"https://api.github.com/users/suzukisan22/following{/other_user}","gists_url":"https://api.github.com/users/suzukisan22/gists{/gist_id}","starred_url":"https://api.github.com/users/suzukisan22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suzukisan22/subscriptions","organizations_url":"https://api.github.com/users/suzukisan22/orgs","repos_url":"https://api.github.com/users/suzukisan22/repos","events_url":"https://api.github.com/users/suzukisan22/events{/privacy}","received_events_url":"https://api.github.com/users/suzukisan22/received_events","type":"User","site_admin":false},"comments":7,"review_comments":2,"commits":2,"additions":15,"deletions":2,"changed_files":3}}
{"actor":{"display_login":"suzukisan22"}}