{"action":"created","comment":{"url":"https://api.github.com/repos/kuroko918/protospace/pulls/comments/73017995","id":73017995,"diff_hunk":"@@ -0,0 +1,12 @@\n+class LikesController < ApplicationController\n+  def create\n+    @like = Like.create(user_id: current_user.id, prototype_id: params[:prototype_id])\n+    @prototype = Prototype.find(params[:prototype_id])","path":"app/controllers/likes_controller.rb","position":4,"original_position":4,"commit_id":"94e10d85b403909a9c7ed55f6f388feff427a504","original_commit_id":"94e10d85b403909a9c7ed55f6f388feff427a504","user":{"login":"ArakawaShintaro","id":13927364,"avatar_url":"https://avatars.githubusercontent.com/u/13927364?v=3","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":"これ、下と同じことしてますよね。そういうときはprivateでsetしましょう。","created_at":"2016-08-01T17:27:23Z","updated_at":"2016-08-01T17:27:23Z","html_url":"https://github.com/kuroko918/protospace/pull/10#discussion_r73017995","pull_request_url":"https://api.github.com/repos/kuroko918/protospace/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/kuroko918/protospace/pulls/comments/73017995"},"html":{"href":"https://github.com/kuroko918/protospace/pull/10#discussion_r73017995"},"pull_request":{"href":"https://api.github.com/repos/kuroko918/protospace/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/kuroko918/protospace/pulls/10","id":79497353,"html_url":"https://github.com/kuroko918/protospace/pull/10","diff_url":"https://github.com/kuroko918/protospace/pull/10.diff","patch_url":"https://github.com/kuroko918/protospace/pull/10.patch","issue_url":"https://api.github.com/repos/kuroko918/protospace/issues/10","number":10,"state":"open","locked":false,"title":"Add like function","user":{"login":"kuroko918","id":16913756,"avatar_url":"https://avatars.githubusercontent.com/u/16913756?v=3","gravatar_id":"","url":"https://api.github.com/users/kuroko918","html_url":"https://github.com/kuroko918","followers_url":"https://api.github.com/users/kuroko918/followers","following_url":"https://api.github.com/users/kuroko918/following{/other_user}","gists_url":"https://api.github.com/users/kuroko918/gists{/gist_id}","starred_url":"https://api.github.com/users/kuroko918/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuroko918/subscriptions","organizations_url":"https://api.github.com/users/kuroko918/orgs","repos_url":"https://api.github.com/users/kuroko918/repos","events_url":"https://api.github.com/users/kuroko918/events{/privacy}","received_events_url":"https://api.github.com/users/kuroko918/received_events","type":"User","site_admin":false},"body":"# WHAT\r\nAjaxを用いた、Like機能の実装。\r\n\r\n# WHY\r\nprototypeにいいねをするため。","created_at":"2016-07-31T21:58:37Z","updated_at":"2016-08-01T17:27:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4f1a667f1277f248d71c90f46a5df2dea8bf0723","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/kuroko918/protospace/pulls/10/commits","review_comments_url":"https://api.github.com/repos/kuroko918/protospace/pulls/10/comments","review_comment_url":"https://api.github.com/repos/kuroko918/protospace/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kuroko918/protospace/issues/10/comments","statuses_url":"https://api.github.com/repos/kuroko918/protospace/statuses/94e10d85b403909a9c7ed55f6f388feff427a504","head":{"label":"kuroko918:Add_Like_function","ref":"Add_Like_function","sha":"94e10d85b403909a9c7ed55f6f388feff427a504","user":{"login":"kuroko918","id":16913756,"avatar_url":"https://avatars.githubusercontent.com/u/16913756?v=3","gravatar_id":"","url":"https://api.github.com/users/kuroko918","html_url":"https://github.com/kuroko918","followers_url":"https://api.github.com/users/kuroko918/followers","following_url":"https://api.github.com/users/kuroko918/following{/other_user}","gists_url":"https://api.github.com/users/kuroko918/gists{/gist_id}","starred_url":"https://api.github.com/users/kuroko918/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuroko918/subscriptions","organizations_url":"https://api.github.com/users/kuroko918/orgs","repos_url":"https://api.github.com/users/kuroko918/repos","events_url":"https://api.github.com/users/kuroko918/events{/privacy}","received_events_url":"https://api.github.com/users/kuroko918/received_events","type":"User","site_admin":false},"repo":{"id":61937262,"name":"protospace","full_name":"kuroko918/protospace","owner":{"login":"kuroko918","id":16913756,"avatar_url":"https://avatars.githubusercontent.com/u/16913756?v=3","gravatar_id":"","url":"https://api.github.com/users/kuroko918","html_url":"https://github.com/kuroko918","followers_url":"https://api.github.com/users/kuroko918/followers","following_url":"https://api.github.com/users/kuroko918/following{/other_user}","gists_url":"https://api.github.com/users/kuroko918/gists{/gist_id}","starred_url":"https://api.github.com/users/kuroko918/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuroko918/subscriptions","organizations_url":"https://api.github.com/users/kuroko918/orgs","repos_url":"https://api.github.com/users/kuroko918/repos","events_url":"https://api.github.com/users/kuroko918/events{/privacy}","received_events_url":"https://api.github.com/users/kuroko918/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kuroko918/protospace","description":null,"fork":false,"url":"https://api.github.com/repos/kuroko918/protospace","forks_url":"https://api.github.com/repos/kuroko918/protospace/forks","keys_url":"https://api.github.com/repos/kuroko918/protospace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kuroko918/protospace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kuroko918/protospace/teams","hooks_url":"https://api.github.com/repos/kuroko918/protospace/hooks","issue_events_url":"https://api.github.com/repos/kuroko918/protospace/issues/events{/number}","events_url":"https://api.github.com/repos/kuroko918/protospace/events","assignees_url":"https://api.github.com/repos/kuroko918/protospace/assignees{/user}","branches_url":"https://api.github.com/repos/kuroko918/protospace/branches{/branch}","tags_url":"https://api.github.com/repos/kuroko918/protospace/tags","blobs_url":"https://api.github.com/repos/kuroko918/protospace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kuroko918/protospace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kuroko918/protospace/git/refs{/sha}","trees_url":"https://api.github.com/repos/kuroko918/protospace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kuroko918/protospace/statuses/{sha}","languages_url":"https://api.github.com/repos/kuroko918/protospace/languages","stargazers_url":"https://api.github.com/repos/kuroko918/protospace/stargazers","contributors_url":"https://api.github.com/repos/kuroko918/protospace/contributors","subscribers_url":"https://api.github.com/repos/kuroko918/protospace/subscribers","subscription_url":"https://api.github.com/repos/kuroko918/protospace/subscription","commits_url":"https://api.github.com/repos/kuroko918/protospace/commits{/sha}","git_commits_url":"https://api.github.com/repos/kuroko918/protospace/git/commits{/sha}","comments_url":"https://api.github.com/repos/kuroko918/protospace/comments{/number}","issue_comment_url":"https://api.github.com/repos/kuroko918/protospace/issues/comments{/number}","contents_url":"https://api.github.com/repos/kuroko918/protospace/contents/{+path}","compare_url":"https://api.github.com/repos/kuroko918/protospace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kuroko918/protospace/merges","archive_url":"https://api.github.com/repos/kuroko918/protospace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kuroko918/protospace/downloads","issues_url":"https://api.github.com/repos/kuroko918/protospace/issues{/number}","pulls_url":"https://api.github.com/repos/kuroko918/protospace/pulls{/number}","milestones_url":"https://api.github.com/repos/kuroko918/protospace/milestones{/number}","notifications_url":"https://api.github.com/repos/kuroko918/protospace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kuroko918/protospace/labels{/name}","releases_url":"https://api.github.com/repos/kuroko918/protospace/releases{/id}","deployments_url":"https://api.github.com/repos/kuroko918/protospace/deployments","created_at":"2016-06-25T09:54:32Z","updated_at":"2016-07-24T13:30:07Z","pushed_at":"2016-07-31T21:58:37Z","git_url":"git://github.com/kuroko918/protospace.git","ssh_url":"git@github.com:kuroko918/protospace.git","clone_url":"https://github.com/kuroko918/protospace.git","svn_url":"https://github.com/kuroko918/protospace","homepage":"","size":653,"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":"kuroko918:master","ref":"master","sha":"e49ccb46a775c8cad893459440b8cc3d97d48e87","user":{"login":"kuroko918","id":16913756,"avatar_url":"https://avatars.githubusercontent.com/u/16913756?v=3","gravatar_id":"","url":"https://api.github.com/users/kuroko918","html_url":"https://github.com/kuroko918","followers_url":"https://api.github.com/users/kuroko918/followers","following_url":"https://api.github.com/users/kuroko918/following{/other_user}","gists_url":"https://api.github.com/users/kuroko918/gists{/gist_id}","starred_url":"https://api.github.com/users/kuroko918/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuroko918/subscriptions","organizations_url":"https://api.github.com/users/kuroko918/orgs","repos_url":"https://api.github.com/users/kuroko918/repos","events_url":"https://api.github.com/users/kuroko918/events{/privacy}","received_events_url":"https://api.github.com/users/kuroko918/received_events","type":"User","site_admin":false},"repo":{"id":61937262,"name":"protospace","full_name":"kuroko918/protospace","owner":{"login":"kuroko918","id":16913756,"avatar_url":"https://avatars.githubusercontent.com/u/16913756?v=3","gravatar_id":"","url":"https://api.github.com/users/kuroko918","html_url":"https://github.com/kuroko918","followers_url":"https://api.github.com/users/kuroko918/followers","following_url":"https://api.github.com/users/kuroko918/following{/other_user}","gists_url":"https://api.github.com/users/kuroko918/gists{/gist_id}","starred_url":"https://api.github.com/users/kuroko918/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuroko918/subscriptions","organizations_url":"https://api.github.com/users/kuroko918/orgs","repos_url":"https://api.github.com/users/kuroko918/repos","events_url":"https://api.github.com/users/kuroko918/events{/privacy}","received_events_url":"https://api.github.com/users/kuroko918/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kuroko918/protospace","description":null,"fork":false,"url":"https://api.github.com/repos/kuroko918/protospace","forks_url":"https://api.github.com/repos/kuroko918/protospace/forks","keys_url":"https://api.github.com/repos/kuroko918/protospace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kuroko918/protospace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kuroko918/protospace/teams","hooks_url":"https://api.github.com/repos/kuroko918/protospace/hooks","issue_events_url":"https://api.github.com/repos/kuroko918/protospace/issues/events{/number}","events_url":"https://api.github.com/repos/kuroko918/protospace/events","assignees_url":"https://api.github.com/repos/kuroko918/protospace/assignees{/user}","branches_url":"https://api.github.com/repos/kuroko918/protospace/branches{/branch}","tags_url":"https://api.github.com/repos/kuroko918/protospace/tags","blobs_url":"https://api.github.com/repos/kuroko918/protospace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kuroko918/protospace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kuroko918/protospace/git/refs{/sha}","trees_url":"https://api.github.com/repos/kuroko918/protospace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kuroko918/protospace/statuses/{sha}","languages_url":"https://api.github.com/repos/kuroko918/protospace/languages","stargazers_url":"https://api.github.com/repos/kuroko918/protospace/stargazers","contributors_url":"https://api.github.com/repos/kuroko918/protospace/contributors","subscribers_url":"https://api.github.com/repos/kuroko918/protospace/subscribers","subscription_url":"https://api.github.com/repos/kuroko918/protospace/subscription","commits_url":"https://api.github.com/repos/kuroko918/protospace/commits{/sha}","git_commits_url":"https://api.github.com/repos/kuroko918/protospace/git/commits{/sha}","comments_url":"https://api.github.com/repos/kuroko918/protospace/comments{/number}","issue_comment_url":"https://api.github.com/repos/kuroko918/protospace/issues/comments{/number}","contents_url":"https://api.github.com/repos/kuroko918/protospace/contents/{+path}","compare_url":"https://api.github.com/repos/kuroko918/protospace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kuroko918/protospace/merges","archive_url":"https://api.github.com/repos/kuroko918/protospace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kuroko918/protospace/downloads","issues_url":"https://api.github.com/repos/kuroko918/protospace/issues{/number}","pulls_url":"https://api.github.com/repos/kuroko918/protospace/pulls{/number}","milestones_url":"https://api.github.com/repos/kuroko918/protospace/milestones{/number}","notifications_url":"https://api.github.com/repos/kuroko918/protospace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kuroko918/protospace/labels{/name}","releases_url":"https://api.github.com/repos/kuroko918/protospace/releases{/id}","deployments_url":"https://api.github.com/repos/kuroko918/protospace/deployments","created_at":"2016-06-25T09:54:32Z","updated_at":"2016-07-24T13:30:07Z","pushed_at":"2016-07-31T21:58:37Z","git_url":"git://github.com/kuroko918/protospace.git","ssh_url":"git@github.com:kuroko918/protospace.git","clone_url":"https://github.com/kuroko918/protospace.git","svn_url":"https://github.com/kuroko918/protospace","homepage":"","size":653,"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/kuroko918/protospace/pulls/10"},"html":{"href":"https://github.com/kuroko918/protospace/pull/10"},"issue":{"href":"https://api.github.com/repos/kuroko918/protospace/issues/10"},"comments":{"href":"https://api.github.com/repos/kuroko918/protospace/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/kuroko918/protospace/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/kuroko918/protospace/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kuroko918/protospace/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/kuroko918/protospace/statuses/94e10d85b403909a9c7ed55f6f388feff427a504"}}}}
{"actor":{"display_login":"ArakawaShintaro"}}