{"action":"created","comment":{"url":"https://api.github.com/repos/mizuki-h/protospace/pulls/comments/76448825","id":76448825,"diff_hunk":"@@ -0,0 +1,19 @@\n+class CommentsController < ApplicationController\n+  before_action :find_prototype ,only:[:create]\n+\n+\n+  def create\n+    @comments = @prototype.comments.includes(:user, :prototype)\n+    @comment = @prototype.comments.create(comment_params)","path":"app/controllers/comments_controller.rb","position":7,"original_position":7,"commit_id":"103023707317015d7f0294a1b1c9887efa41fdc3","original_commit_id":"103023707317015d7f0294a1b1c9887efa41fdc3","user":{"login":"ryouzi","id":12962224,"avatar_url":"https://avatars.githubusercontent.com/u/12962224?v=3","gravatar_id":"","url":"https://api.github.com/users/ryouzi","html_url":"https://github.com/ryouzi","followers_url":"https://api.github.com/users/ryouzi/followers","following_url":"https://api.github.com/users/ryouzi/following{/other_user}","gists_url":"https://api.github.com/users/ryouzi/gists{/gist_id}","starred_url":"https://api.github.com/users/ryouzi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryouzi/subscriptions","organizations_url":"https://api.github.com/users/ryouzi/orgs","repos_url":"https://api.github.com/users/ryouzi/repos","events_url":"https://api.github.com/users/ryouzi/events{/privacy}","received_events_url":"https://api.github.com/users/ryouzi/received_events","type":"User","site_admin":false},"body":"変更したのプッシュしました？","created_at":"2016-08-26T16:37:54Z","updated_at":"2016-08-26T16:37:54Z","html_url":"https://github.com/mizuki-h/protospace/pull/14#discussion_r76448825","pull_request_url":"https://api.github.com/repos/mizuki-h/protospace/pulls/14","_links":{"self":{"href":"https://api.github.com/repos/mizuki-h/protospace/pulls/comments/76448825"},"html":{"href":"https://github.com/mizuki-h/protospace/pull/14#discussion_r76448825"},"pull_request":{"href":"https://api.github.com/repos/mizuki-h/protospace/pulls/14"}}},"pull_request":{"url":"https://api.github.com/repos/mizuki-h/protospace/pulls/14","id":82370342,"html_url":"https://github.com/mizuki-h/protospace/pull/14","diff_url":"https://github.com/mizuki-h/protospace/pull/14.diff","patch_url":"https://github.com/mizuki-h/protospace/pull/14.patch","issue_url":"https://api.github.com/repos/mizuki-h/protospace/issues/14","number":14,"state":"open","locked":false,"title":"Add Comment function","user":{"login":"mizuki-h","id":18672977,"avatar_url":"https://avatars.githubusercontent.com/u/18672977?v=3","gravatar_id":"","url":"https://api.github.com/users/mizuki-h","html_url":"https://github.com/mizuki-h","followers_url":"https://api.github.com/users/mizuki-h/followers","following_url":"https://api.github.com/users/mizuki-h/following{/other_user}","gists_url":"https://api.github.com/users/mizuki-h/gists{/gist_id}","starred_url":"https://api.github.com/users/mizuki-h/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mizuki-h/subscriptions","organizations_url":"https://api.github.com/users/mizuki-h/orgs","repos_url":"https://api.github.com/users/mizuki-h/repos","events_url":"https://api.github.com/users/mizuki-h/events{/privacy}","received_events_url":"https://api.github.com/users/mizuki-h/received_events","type":"User","site_admin":false},"body":"## WHAT\r\n\r\nコメント機能追加\r\n\r\n## WHY\r\n\r\n他のユーザーがコメントできるようにするため\r\n\r\n\r\n## 期限\r\n\r\n8月25日までに出します\r\n\r\n","created_at":"2016-08-23T14:01:14Z","updated_at":"2016-08-26T16:37:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c9f92f40fb092d0dd98c7d4dabd69e72182153a6","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/mizuki-h/protospace/pulls/14/commits","review_comments_url":"https://api.github.com/repos/mizuki-h/protospace/pulls/14/comments","review_comment_url":"https://api.github.com/repos/mizuki-h/protospace/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mizuki-h/protospace/issues/14/comments","statuses_url":"https://api.github.com/repos/mizuki-h/protospace/statuses/103023707317015d7f0294a1b1c9887efa41fdc3","head":{"label":"mizuki-h:add_comment_function","ref":"add_comment_function","sha":"103023707317015d7f0294a1b1c9887efa41fdc3","user":{"login":"mizuki-h","id":18672977,"avatar_url":"https://avatars.githubusercontent.com/u/18672977?v=3","gravatar_id":"","url":"https://api.github.com/users/mizuki-h","html_url":"https://github.com/mizuki-h","followers_url":"https://api.github.com/users/mizuki-h/followers","following_url":"https://api.github.com/users/mizuki-h/following{/other_user}","gists_url":"https://api.github.com/users/mizuki-h/gists{/gist_id}","starred_url":"https://api.github.com/users/mizuki-h/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mizuki-h/subscriptions","organizations_url":"https://api.github.com/users/mizuki-h/orgs","repos_url":"https://api.github.com/users/mizuki-h/repos","events_url":"https://api.github.com/users/mizuki-h/events{/privacy}","received_events_url":"https://api.github.com/users/mizuki-h/received_events","type":"User","site_admin":false},"repo":{"id":61627867,"name":"protospace","full_name":"mizuki-h/protospace","owner":{"login":"mizuki-h","id":18672977,"avatar_url":"https://avatars.githubusercontent.com/u/18672977?v=3","gravatar_id":"","url":"https://api.github.com/users/mizuki-h","html_url":"https://github.com/mizuki-h","followers_url":"https://api.github.com/users/mizuki-h/followers","following_url":"https://api.github.com/users/mizuki-h/following{/other_user}","gists_url":"https://api.github.com/users/mizuki-h/gists{/gist_id}","starred_url":"https://api.github.com/users/mizuki-h/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mizuki-h/subscriptions","organizations_url":"https://api.github.com/users/mizuki-h/orgs","repos_url":"https://api.github.com/users/mizuki-h/repos","events_url":"https://api.github.com/users/mizuki-h/events{/privacy}","received_events_url":"https://api.github.com/users/mizuki-h/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mizuki-h/protospace","description":"","fork":false,"url":"https://api.github.com/repos/mizuki-h/protospace","forks_url":"https://api.github.com/repos/mizuki-h/protospace/forks","keys_url":"https://api.github.com/repos/mizuki-h/protospace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mizuki-h/protospace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mizuki-h/protospace/teams","hooks_url":"https://api.github.com/repos/mizuki-h/protospace/hooks","issue_events_url":"https://api.github.com/repos/mizuki-h/protospace/issues/events{/number}","events_url":"https://api.github.com/repos/mizuki-h/protospace/events","assignees_url":"https://api.github.com/repos/mizuki-h/protospace/assignees{/user}","branches_url":"https://api.github.com/repos/mizuki-h/protospace/branches{/branch}","tags_url":"https://api.github.com/repos/mizuki-h/protospace/tags","blobs_url":"https://api.github.com/repos/mizuki-h/protospace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mizuki-h/protospace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mizuki-h/protospace/git/refs{/sha}","trees_url":"https://api.github.com/repos/mizuki-h/protospace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mizuki-h/protospace/statuses/{sha}","languages_url":"https://api.github.com/repos/mizuki-h/protospace/languages","stargazers_url":"https://api.github.com/repos/mizuki-h/protospace/stargazers","contributors_url":"https://api.github.com/repos/mizuki-h/protospace/contributors","subscribers_url":"https://api.github.com/repos/mizuki-h/protospace/subscribers","subscription_url":"https://api.github.com/repos/mizuki-h/protospace/subscription","commits_url":"https://api.github.com/repos/mizuki-h/protospace/commits{/sha}","git_commits_url":"https://api.github.com/repos/mizuki-h/protospace/git/commits{/sha}","comments_url":"https://api.github.com/repos/mizuki-h/protospace/comments{/number}","issue_comment_url":"https://api.github.com/repos/mizuki-h/protospace/issues/comments{/number}","contents_url":"https://api.github.com/repos/mizuki-h/protospace/contents/{+path}","compare_url":"https://api.github.com/repos/mizuki-h/protospace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mizuki-h/protospace/merges","archive_url":"https://api.github.com/repos/mizuki-h/protospace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mizuki-h/protospace/downloads","issues_url":"https://api.github.com/repos/mizuki-h/protospace/issues{/number}","pulls_url":"https://api.github.com/repos/mizuki-h/protospace/pulls{/number}","milestones_url":"https://api.github.com/repos/mizuki-h/protospace/milestones{/number}","notifications_url":"https://api.github.com/repos/mizuki-h/protospace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mizuki-h/protospace/labels{/name}","releases_url":"https://api.github.com/repos/mizuki-h/protospace/releases{/id}","deployments_url":"https://api.github.com/repos/mizuki-h/protospace/deployments","created_at":"2016-06-21T11:15:48Z","updated_at":"2016-06-21T11:18:25Z","pushed_at":"2016-08-26T03:51:18Z","git_url":"git://github.com/mizuki-h/protospace.git","ssh_url":"git@github.com:mizuki-h/protospace.git","clone_url":"https://github.com/mizuki-h/protospace.git","svn_url":"https://github.com/mizuki-h/protospace","homepage":"","size":650,"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":"mizuki-h:master","ref":"master","sha":"38c1bc1c331e3a571a413eba29a8e15966b45f13","user":{"login":"mizuki-h","id":18672977,"avatar_url":"https://avatars.githubusercontent.com/u/18672977?v=3","gravatar_id":"","url":"https://api.github.com/users/mizuki-h","html_url":"https://github.com/mizuki-h","followers_url":"https://api.github.com/users/mizuki-h/followers","following_url":"https://api.github.com/users/mizuki-h/following{/other_user}","gists_url":"https://api.github.com/users/mizuki-h/gists{/gist_id}","starred_url":"https://api.github.com/users/mizuki-h/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mizuki-h/subscriptions","organizations_url":"https://api.github.com/users/mizuki-h/orgs","repos_url":"https://api.github.com/users/mizuki-h/repos","events_url":"https://api.github.com/users/mizuki-h/events{/privacy}","received_events_url":"https://api.github.com/users/mizuki-h/received_events","type":"User","site_admin":false},"repo":{"id":61627867,"name":"protospace","full_name":"mizuki-h/protospace","owner":{"login":"mizuki-h","id":18672977,"avatar_url":"https://avatars.githubusercontent.com/u/18672977?v=3","gravatar_id":"","url":"https://api.github.com/users/mizuki-h","html_url":"https://github.com/mizuki-h","followers_url":"https://api.github.com/users/mizuki-h/followers","following_url":"https://api.github.com/users/mizuki-h/following{/other_user}","gists_url":"https://api.github.com/users/mizuki-h/gists{/gist_id}","starred_url":"https://api.github.com/users/mizuki-h/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mizuki-h/subscriptions","organizations_url":"https://api.github.com/users/mizuki-h/orgs","repos_url":"https://api.github.com/users/mizuki-h/repos","events_url":"https://api.github.com/users/mizuki-h/events{/privacy}","received_events_url":"https://api.github.com/users/mizuki-h/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mizuki-h/protospace","description":"","fork":false,"url":"https://api.github.com/repos/mizuki-h/protospace","forks_url":"https://api.github.com/repos/mizuki-h/protospace/forks","keys_url":"https://api.github.com/repos/mizuki-h/protospace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mizuki-h/protospace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mizuki-h/protospace/teams","hooks_url":"https://api.github.com/repos/mizuki-h/protospace/hooks","issue_events_url":"https://api.github.com/repos/mizuki-h/protospace/issues/events{/number}","events_url":"https://api.github.com/repos/mizuki-h/protospace/events","assignees_url":"https://api.github.com/repos/mizuki-h/protospace/assignees{/user}","branches_url":"https://api.github.com/repos/mizuki-h/protospace/branches{/branch}","tags_url":"https://api.github.com/repos/mizuki-h/protospace/tags","blobs_url":"https://api.github.com/repos/mizuki-h/protospace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mizuki-h/protospace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mizuki-h/protospace/git/refs{/sha}","trees_url":"https://api.github.com/repos/mizuki-h/protospace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mizuki-h/protospace/statuses/{sha}","languages_url":"https://api.github.com/repos/mizuki-h/protospace/languages","stargazers_url":"https://api.github.com/repos/mizuki-h/protospace/stargazers","contributors_url":"https://api.github.com/repos/mizuki-h/protospace/contributors","subscribers_url":"https://api.github.com/repos/mizuki-h/protospace/subscribers","subscription_url":"https://api.github.com/repos/mizuki-h/protospace/subscription","commits_url":"https://api.github.com/repos/mizuki-h/protospace/commits{/sha}","git_commits_url":"https://api.github.com/repos/mizuki-h/protospace/git/commits{/sha}","comments_url":"https://api.github.com/repos/mizuki-h/protospace/comments{/number}","issue_comment_url":"https://api.github.com/repos/mizuki-h/protospace/issues/comments{/number}","contents_url":"https://api.github.com/repos/mizuki-h/protospace/contents/{+path}","compare_url":"https://api.github.com/repos/mizuki-h/protospace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mizuki-h/protospace/merges","archive_url":"https://api.github.com/repos/mizuki-h/protospace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mizuki-h/protospace/downloads","issues_url":"https://api.github.com/repos/mizuki-h/protospace/issues{/number}","pulls_url":"https://api.github.com/repos/mizuki-h/protospace/pulls{/number}","milestones_url":"https://api.github.com/repos/mizuki-h/protospace/milestones{/number}","notifications_url":"https://api.github.com/repos/mizuki-h/protospace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mizuki-h/protospace/labels{/name}","releases_url":"https://api.github.com/repos/mizuki-h/protospace/releases{/id}","deployments_url":"https://api.github.com/repos/mizuki-h/protospace/deployments","created_at":"2016-06-21T11:15:48Z","updated_at":"2016-06-21T11:18:25Z","pushed_at":"2016-08-26T03:51:18Z","git_url":"git://github.com/mizuki-h/protospace.git","ssh_url":"git@github.com:mizuki-h/protospace.git","clone_url":"https://github.com/mizuki-h/protospace.git","svn_url":"https://github.com/mizuki-h/protospace","homepage":"","size":650,"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/mizuki-h/protospace/pulls/14"},"html":{"href":"https://github.com/mizuki-h/protospace/pull/14"},"issue":{"href":"https://api.github.com/repos/mizuki-h/protospace/issues/14"},"comments":{"href":"https://api.github.com/repos/mizuki-h/protospace/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/mizuki-h/protospace/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/mizuki-h/protospace/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mizuki-h/protospace/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/mizuki-h/protospace/statuses/103023707317015d7f0294a1b1c9887efa41fdc3"}}}}
{"actor":{"display_login":"ryouzi"}}