{"action":"created","comment":{"url":"https://api.github.com/repos/aceimpact/PQBApp/pulls/comments/262888791","pull_request_review_id":211163282,"id":262888791,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI2Mjg4ODc5MQ==","diff_hunk":"@@ -0,0 +1,24 @@\n+class AnswerLikesController < ApplicationController\n+  before_action :set_answer\n+  before_action :set_question\n+\n+  def create\n+    @answer_like = current_user.answer_likes.create!(answer_id: params[:answer_id])\n+    respond_to :js\n+  end\n+\n+  def destroy\n+    @answer_like = current_user.answer_likes.find_by(answer_id: params[:answer_id])\n+    @answer_like.destroy!\n+    respond_to :js\n+  end\n+\n+  private\n+  def set_answer","path":"app/controllers/answer_likes_controller.rb","position":17,"original_position":17,"commit_id":"157610af99d53a23d1a90f28a4bbdf91e8fe1ce0","original_commit_id":"157610af99d53a23d1a90f28a4bbdf91e8fe1ce0","user":{"login":"daikitakaya","id":18161095,"node_id":"MDQ6VXNlcjE4MTYxMDk1","avatar_url":"https://avatars0.githubusercontent.com/u/18161095?v=4","gravatar_id":"","url":"https://api.github.com/users/daikitakaya","html_url":"https://github.com/daikitakaya","followers_url":"https://api.github.com/users/daikitakaya/followers","following_url":"https://api.github.com/users/daikitakaya/following{/other_user}","gists_url":"https://api.github.com/users/daikitakaya/gists{/gist_id}","starred_url":"https://api.github.com/users/daikitakaya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daikitakaya/subscriptions","organizations_url":"https://api.github.com/users/daikitakaya/orgs","repos_url":"https://api.github.com/users/daikitakaya/repos","events_url":"https://api.github.com/users/daikitakaya/events{/privacy}","received_events_url":"https://api.github.com/users/daikitakaya/received_events","type":"User","site_admin":false},"body":"これ使ってる？？","created_at":"2019-03-06T10:52:57Z","updated_at":"2019-03-06T10:52:57Z","html_url":"https://github.com/aceimpact/PQBApp/pull/7#discussion_r262888791","pull_request_url":"https://api.github.com/repos/aceimpact/PQBApp/pulls/7","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/aceimpact/PQBApp/pulls/comments/262888791"},"html":{"href":"https://github.com/aceimpact/PQBApp/pull/7#discussion_r262888791"},"pull_request":{"href":"https://api.github.com/repos/aceimpact/PQBApp/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/aceimpact/PQBApp/pulls/7","id":257734245,"node_id":"MDExOlB1bGxSZXF1ZXN0MjU3NzM0MjQ1","html_url":"https://github.com/aceimpact/PQBApp/pull/7","diff_url":"https://github.com/aceimpact/PQBApp/pull/7.diff","patch_url":"https://github.com/aceimpact/PQBApp/pull/7.patch","issue_url":"https://api.github.com/repos/aceimpact/PQBApp/issues/7","number":7,"state":"open","locked":false,"title":"Like","user":{"login":"aceimpact","id":41540795,"node_id":"MDQ6VXNlcjQxNTQwNzk1","avatar_url":"https://avatars1.githubusercontent.com/u/41540795?v=4","gravatar_id":"","url":"https://api.github.com/users/aceimpact","html_url":"https://github.com/aceimpact","followers_url":"https://api.github.com/users/aceimpact/followers","following_url":"https://api.github.com/users/aceimpact/following{/other_user}","gists_url":"https://api.github.com/users/aceimpact/gists{/gist_id}","starred_url":"https://api.github.com/users/aceimpact/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aceimpact/subscriptions","organizations_url":"https://api.github.com/users/aceimpact/orgs","repos_url":"https://api.github.com/users/aceimpact/repos","events_url":"https://api.github.com/users/aceimpact/events{/privacy}","received_events_url":"https://api.github.com/users/aceimpact/received_events","type":"User","site_admin":false},"body":"@daikitakaya\r\nいいね機能実装できました。","created_at":"2019-03-03T12:53:19Z","updated_at":"2019-03-06T10:52:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"eed225a4584092790d9ffb7c7acfc385592a3cef","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/aceimpact/PQBApp/pulls/7/commits","review_comments_url":"https://api.github.com/repos/aceimpact/PQBApp/pulls/7/comments","review_comment_url":"https://api.github.com/repos/aceimpact/PQBApp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aceimpact/PQBApp/issues/7/comments","statuses_url":"https://api.github.com/repos/aceimpact/PQBApp/statuses/157610af99d53a23d1a90f28a4bbdf91e8fe1ce0","head":{"label":"aceimpact:Like","ref":"Like","sha":"157610af99d53a23d1a90f28a4bbdf91e8fe1ce0","user":{"login":"aceimpact","id":41540795,"node_id":"MDQ6VXNlcjQxNTQwNzk1","avatar_url":"https://avatars1.githubusercontent.com/u/41540795?v=4","gravatar_id":"","url":"https://api.github.com/users/aceimpact","html_url":"https://github.com/aceimpact","followers_url":"https://api.github.com/users/aceimpact/followers","following_url":"https://api.github.com/users/aceimpact/following{/other_user}","gists_url":"https://api.github.com/users/aceimpact/gists{/gist_id}","starred_url":"https://api.github.com/users/aceimpact/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aceimpact/subscriptions","organizations_url":"https://api.github.com/users/aceimpact/orgs","repos_url":"https://api.github.com/users/aceimpact/repos","events_url":"https://api.github.com/users/aceimpact/events{/privacy}","received_events_url":"https://api.github.com/users/aceimpact/received_events","type":"User","site_admin":false},"repo":{"id":167535875,"node_id":"MDEwOlJlcG9zaXRvcnkxNjc1MzU4NzU=","name":"PQBApp","full_name":"aceimpact/PQBApp","private":false,"owner":{"login":"aceimpact","id":41540795,"node_id":"MDQ6VXNlcjQxNTQwNzk1","avatar_url":"https://avatars1.githubusercontent.com/u/41540795?v=4","gravatar_id":"","url":"https://api.github.com/users/aceimpact","html_url":"https://github.com/aceimpact","followers_url":"https://api.github.com/users/aceimpact/followers","following_url":"https://api.github.com/users/aceimpact/following{/other_user}","gists_url":"https://api.github.com/users/aceimpact/gists{/gist_id}","starred_url":"https://api.github.com/users/aceimpact/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aceimpact/subscriptions","organizations_url":"https://api.github.com/users/aceimpact/orgs","repos_url":"https://api.github.com/users/aceimpact/repos","events_url":"https://api.github.com/users/aceimpact/events{/privacy}","received_events_url":"https://api.github.com/users/aceimpact/received_events","type":"User","site_admin":false},"html_url":"https://github.com/aceimpact/PQBApp","description":null,"fork":false,"url":"https://api.github.com/repos/aceimpact/PQBApp","forks_url":"https://api.github.com/repos/aceimpact/PQBApp/forks","keys_url":"https://api.github.com/repos/aceimpact/PQBApp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aceimpact/PQBApp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aceimpact/PQBApp/teams","hooks_url":"https://api.github.com/repos/aceimpact/PQBApp/hooks","issue_events_url":"https://api.github.com/repos/aceimpact/PQBApp/issues/events{/number}","events_url":"https://api.github.com/repos/aceimpact/PQBApp/events","assignees_url":"https://api.github.com/repos/aceimpact/PQBApp/assignees{/user}","branches_url":"https://api.github.com/repos/aceimpact/PQBApp/branches{/branch}","tags_url":"https://api.github.com/repos/aceimpact/PQBApp/tags","blobs_url":"https://api.github.com/repos/aceimpact/PQBApp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aceimpact/PQBApp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aceimpact/PQBApp/git/refs{/sha}","trees_url":"https://api.github.com/repos/aceimpact/PQBApp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aceimpact/PQBApp/statuses/{sha}","languages_url":"https://api.github.com/repos/aceimpact/PQBApp/languages","stargazers_url":"https://api.github.com/repos/aceimpact/PQBApp/stargazers","contributors_url":"https://api.github.com/repos/aceimpact/PQBApp/contributors","subscribers_url":"https://api.github.com/repos/aceimpact/PQBApp/subscribers","subscription_url":"https://api.github.com/repos/aceimpact/PQBApp/subscription","commits_url":"https://api.github.com/repos/aceimpact/PQBApp/commits{/sha}","git_commits_url":"https://api.github.com/repos/aceimpact/PQBApp/git/commits{/sha}","comments_url":"https://api.github.com/repos/aceimpact/PQBApp/comments{/number}","issue_comment_url":"https://api.github.com/repos/aceimpact/PQBApp/issues/comments{/number}","contents_url":"https://api.github.com/repos/aceimpact/PQBApp/contents/{+path}","compare_url":"https://api.github.com/repos/aceimpact/PQBApp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aceimpact/PQBApp/merges","archive_url":"https://api.github.com/repos/aceimpact/PQBApp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aceimpact/PQBApp/downloads","issues_url":"https://api.github.com/repos/aceimpact/PQBApp/issues{/number}","pulls_url":"https://api.github.com/repos/aceimpact/PQBApp/pulls{/number}","milestones_url":"https://api.github.com/repos/aceimpact/PQBApp/milestones{/number}","notifications_url":"https://api.github.com/repos/aceimpact/PQBApp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aceimpact/PQBApp/labels{/name}","releases_url":"https://api.github.com/repos/aceimpact/PQBApp/releases{/id}","deployments_url":"https://api.github.com/repos/aceimpact/PQBApp/deployments","created_at":"2019-01-25T11:18:17Z","updated_at":"2019-02-28T12:02:45Z","pushed_at":"2019-03-06T10:49:47Z","git_url":"git://github.com/aceimpact/PQBApp.git","ssh_url":"git@github.com:aceimpact/PQBApp.git","clone_url":"https://github.com/aceimpact/PQBApp.git","svn_url":"https://github.com/aceimpact/PQBApp","homepage":null,"size":2944,"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":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"aceimpact:master","ref":"master","sha":"8976766c655abb0c9d488d580a70bb632480567c","user":{"login":"aceimpact","id":41540795,"node_id":"MDQ6VXNlcjQxNTQwNzk1","avatar_url":"https://avatars1.githubusercontent.com/u/41540795?v=4","gravatar_id":"","url":"https://api.github.com/users/aceimpact","html_url":"https://github.com/aceimpact","followers_url":"https://api.github.com/users/aceimpact/followers","following_url":"https://api.github.com/users/aceimpact/following{/other_user}","gists_url":"https://api.github.com/users/aceimpact/gists{/gist_id}","starred_url":"https://api.github.com/users/aceimpact/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aceimpact/subscriptions","organizations_url":"https://api.github.com/users/aceimpact/orgs","repos_url":"https://api.github.com/users/aceimpact/repos","events_url":"https://api.github.com/users/aceimpact/events{/privacy}","received_events_url":"https://api.github.com/users/aceimpact/received_events","type":"User","site_admin":false},"repo":{"id":167535875,"node_id":"MDEwOlJlcG9zaXRvcnkxNjc1MzU4NzU=","name":"PQBApp","full_name":"aceimpact/PQBApp","private":false,"owner":{"login":"aceimpact","id":41540795,"node_id":"MDQ6VXNlcjQxNTQwNzk1","avatar_url":"https://avatars1.githubusercontent.com/u/41540795?v=4","gravatar_id":"","url":"https://api.github.com/users/aceimpact","html_url":"https://github.com/aceimpact","followers_url":"https://api.github.com/users/aceimpact/followers","following_url":"https://api.github.com/users/aceimpact/following{/other_user}","gists_url":"https://api.github.com/users/aceimpact/gists{/gist_id}","starred_url":"https://api.github.com/users/aceimpact/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aceimpact/subscriptions","organizations_url":"https://api.github.com/users/aceimpact/orgs","repos_url":"https://api.github.com/users/aceimpact/repos","events_url":"https://api.github.com/users/aceimpact/events{/privacy}","received_events_url":"https://api.github.com/users/aceimpact/received_events","type":"User","site_admin":false},"html_url":"https://github.com/aceimpact/PQBApp","description":null,"fork":false,"url":"https://api.github.com/repos/aceimpact/PQBApp","forks_url":"https://api.github.com/repos/aceimpact/PQBApp/forks","keys_url":"https://api.github.com/repos/aceimpact/PQBApp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aceimpact/PQBApp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aceimpact/PQBApp/teams","hooks_url":"https://api.github.com/repos/aceimpact/PQBApp/hooks","issue_events_url":"https://api.github.com/repos/aceimpact/PQBApp/issues/events{/number}","events_url":"https://api.github.com/repos/aceimpact/PQBApp/events","assignees_url":"https://api.github.com/repos/aceimpact/PQBApp/assignees{/user}","branches_url":"https://api.github.com/repos/aceimpact/PQBApp/branches{/branch}","tags_url":"https://api.github.com/repos/aceimpact/PQBApp/tags","blobs_url":"https://api.github.com/repos/aceimpact/PQBApp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aceimpact/PQBApp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aceimpact/PQBApp/git/refs{/sha}","trees_url":"https://api.github.com/repos/aceimpact/PQBApp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aceimpact/PQBApp/statuses/{sha}","languages_url":"https://api.github.com/repos/aceimpact/PQBApp/languages","stargazers_url":"https://api.github.com/repos/aceimpact/PQBApp/stargazers","contributors_url":"https://api.github.com/repos/aceimpact/PQBApp/contributors","subscribers_url":"https://api.github.com/repos/aceimpact/PQBApp/subscribers","subscription_url":"https://api.github.com/repos/aceimpact/PQBApp/subscription","commits_url":"https://api.github.com/repos/aceimpact/PQBApp/commits{/sha}","git_commits_url":"https://api.github.com/repos/aceimpact/PQBApp/git/commits{/sha}","comments_url":"https://api.github.com/repos/aceimpact/PQBApp/comments{/number}","issue_comment_url":"https://api.github.com/repos/aceimpact/PQBApp/issues/comments{/number}","contents_url":"https://api.github.com/repos/aceimpact/PQBApp/contents/{+path}","compare_url":"https://api.github.com/repos/aceimpact/PQBApp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aceimpact/PQBApp/merges","archive_url":"https://api.github.com/repos/aceimpact/PQBApp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aceimpact/PQBApp/downloads","issues_url":"https://api.github.com/repos/aceimpact/PQBApp/issues{/number}","pulls_url":"https://api.github.com/repos/aceimpact/PQBApp/pulls{/number}","milestones_url":"https://api.github.com/repos/aceimpact/PQBApp/milestones{/number}","notifications_url":"https://api.github.com/repos/aceimpact/PQBApp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aceimpact/PQBApp/labels{/name}","releases_url":"https://api.github.com/repos/aceimpact/PQBApp/releases{/id}","deployments_url":"https://api.github.com/repos/aceimpact/PQBApp/deployments","created_at":"2019-01-25T11:18:17Z","updated_at":"2019-02-28T12:02:45Z","pushed_at":"2019-03-06T10:49:47Z","git_url":"git://github.com/aceimpact/PQBApp.git","ssh_url":"git@github.com:aceimpact/PQBApp.git","clone_url":"https://github.com/aceimpact/PQBApp.git","svn_url":"https://github.com/aceimpact/PQBApp","homepage":null,"size":2944,"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":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/aceimpact/PQBApp/pulls/7"},"html":{"href":"https://github.com/aceimpact/PQBApp/pull/7"},"issue":{"href":"https://api.github.com/repos/aceimpact/PQBApp/issues/7"},"comments":{"href":"https://api.github.com/repos/aceimpact/PQBApp/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/aceimpact/PQBApp/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/aceimpact/PQBApp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aceimpact/PQBApp/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/aceimpact/PQBApp/statuses/157610af99d53a23d1a90f28a4bbdf91e8fe1ce0"}},"author_association":"OWNER"}}
{"actor":{"display_login":"daikitakaya"}}