{"action":"created","comment":{"url":"https://api.github.com/repos/sinagaki58/Protospace/pulls/comments/38810808","id":38810808,"diff_hunk":"@@ -0,0 +1,15 @@\n+class Prototypes::CommentsController < ApplicationController\n+\n+  def create\n+    current_user.comments.create(comment_params)\n+    @prototype = Prototype.find(comment_params[:prototype_id])\n+    @comments = @prototype.comments\n+    @comment_count = @comments.count","path":"app/controllers/prototypes/comments_controller.rb","position":null,"original_position":7,"commit_id":"50008781501047b42511263c6821f386cab7d958","original_commit_id":"4daa2a6580eaa279b84773177312e343f63b25cf","user":{"login":"sinagaki58","id":11718183,"avatar_url":"https://avatars.githubusercontent.com/u/11718183?v=3","gravatar_id":"","url":"https://api.github.com/users/sinagaki58","html_url":"https://github.com/sinagaki58","followers_url":"https://api.github.com/users/sinagaki58/followers","following_url":"https://api.github.com/users/sinagaki58/following{/other_user}","gists_url":"https://api.github.com/users/sinagaki58/gists{/gist_id}","starred_url":"https://api.github.com/users/sinagaki58/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sinagaki58/subscriptions","organizations_url":"https://api.github.com/users/sinagaki58/orgs","repos_url":"https://api.github.com/users/sinagaki58/repos","events_url":"https://api.github.com/users/sinagaki58/events{/privacy}","received_events_url":"https://api.github.com/users/sinagaki58/received_events","type":"User","site_admin":false},"body":"done","created_at":"2015-09-05T13:43:06Z","updated_at":"2015-09-05T13:43:06Z","html_url":"https://github.com/sinagaki58/Protospace/pull/11#discussion_r38810808","pull_request_url":"https://api.github.com/repos/sinagaki58/Protospace/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/sinagaki58/Protospace/pulls/comments/38810808"},"html":{"href":"https://github.com/sinagaki58/Protospace/pull/11#discussion_r38810808"},"pull_request":{"href":"https://api.github.com/repos/sinagaki58/Protospace/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/sinagaki58/Protospace/pulls/11","id":44071583,"html_url":"https://github.com/sinagaki58/Protospace/pull/11","diff_url":"https://github.com/sinagaki58/Protospace/pull/11.diff","patch_url":"https://github.com/sinagaki58/Protospace/pull/11.patch","issue_url":"https://api.github.com/repos/sinagaki58/Protospace/issues/11","number":11,"state":"open","locked":false,"title":"Feature comments","user":{"login":"sinagaki58","id":11718183,"avatar_url":"https://avatars.githubusercontent.com/u/11718183?v=3","gravatar_id":"","url":"https://api.github.com/users/sinagaki58","html_url":"https://github.com/sinagaki58","followers_url":"https://api.github.com/users/sinagaki58/followers","following_url":"https://api.github.com/users/sinagaki58/following{/other_user}","gists_url":"https://api.github.com/users/sinagaki58/gists{/gist_id}","starred_url":"https://api.github.com/users/sinagaki58/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sinagaki58/subscriptions","organizations_url":"https://api.github.com/users/sinagaki58/orgs","repos_url":"https://api.github.com/users/sinagaki58/repos","events_url":"https://api.github.com/users/sinagaki58/events{/privacy}","received_events_url":"https://api.github.com/users/sinagaki58/received_events","type":"User","site_admin":false},"body":"## what\r\n\r\ncreate comment_form\r\ncreate comment_template\r\n\r\nintroduce ajax","created_at":"2015-09-03T05:55:27Z","updated_at":"2015-09-05T13:43:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sinagaki58/Protospace/pulls/11/commits","review_comments_url":"https://api.github.com/repos/sinagaki58/Protospace/pulls/11/comments","review_comment_url":"https://api.github.com/repos/sinagaki58/Protospace/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sinagaki58/Protospace/issues/11/comments","statuses_url":"https://api.github.com/repos/sinagaki58/Protospace/statuses/50008781501047b42511263c6821f386cab7d958","head":{"label":"sinagaki58:feature_comments","ref":"feature_comments","sha":"50008781501047b42511263c6821f386cab7d958","user":{"login":"sinagaki58","id":11718183,"avatar_url":"https://avatars.githubusercontent.com/u/11718183?v=3","gravatar_id":"","url":"https://api.github.com/users/sinagaki58","html_url":"https://github.com/sinagaki58","followers_url":"https://api.github.com/users/sinagaki58/followers","following_url":"https://api.github.com/users/sinagaki58/following{/other_user}","gists_url":"https://api.github.com/users/sinagaki58/gists{/gist_id}","starred_url":"https://api.github.com/users/sinagaki58/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sinagaki58/subscriptions","organizations_url":"https://api.github.com/users/sinagaki58/orgs","repos_url":"https://api.github.com/users/sinagaki58/repos","events_url":"https://api.github.com/users/sinagaki58/events{/privacy}","received_events_url":"https://api.github.com/users/sinagaki58/received_events","type":"User","site_admin":false},"repo":{"id":41187558,"name":"Protospace","full_name":"sinagaki58/Protospace","owner":{"login":"sinagaki58","id":11718183,"avatar_url":"https://avatars.githubusercontent.com/u/11718183?v=3","gravatar_id":"","url":"https://api.github.com/users/sinagaki58","html_url":"https://github.com/sinagaki58","followers_url":"https://api.github.com/users/sinagaki58/followers","following_url":"https://api.github.com/users/sinagaki58/following{/other_user}","gists_url":"https://api.github.com/users/sinagaki58/gists{/gist_id}","starred_url":"https://api.github.com/users/sinagaki58/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sinagaki58/subscriptions","organizations_url":"https://api.github.com/users/sinagaki58/orgs","repos_url":"https://api.github.com/users/sinagaki58/repos","events_url":"https://api.github.com/users/sinagaki58/events{/privacy}","received_events_url":"https://api.github.com/users/sinagaki58/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sinagaki58/Protospace","description":"","fork":false,"url":"https://api.github.com/repos/sinagaki58/Protospace","forks_url":"https://api.github.com/repos/sinagaki58/Protospace/forks","keys_url":"https://api.github.com/repos/sinagaki58/Protospace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sinagaki58/Protospace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sinagaki58/Protospace/teams","hooks_url":"https://api.github.com/repos/sinagaki58/Protospace/hooks","issue_events_url":"https://api.github.com/repos/sinagaki58/Protospace/issues/events{/number}","events_url":"https://api.github.com/repos/sinagaki58/Protospace/events","assignees_url":"https://api.github.com/repos/sinagaki58/Protospace/assignees{/user}","branches_url":"https://api.github.com/repos/sinagaki58/Protospace/branches{/branch}","tags_url":"https://api.github.com/repos/sinagaki58/Protospace/tags","blobs_url":"https://api.github.com/repos/sinagaki58/Protospace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sinagaki58/Protospace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sinagaki58/Protospace/git/refs{/sha}","trees_url":"https://api.github.com/repos/sinagaki58/Protospace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sinagaki58/Protospace/statuses/{sha}","languages_url":"https://api.github.com/repos/sinagaki58/Protospace/languages","stargazers_url":"https://api.github.com/repos/sinagaki58/Protospace/stargazers","contributors_url":"https://api.github.com/repos/sinagaki58/Protospace/contributors","subscribers_url":"https://api.github.com/repos/sinagaki58/Protospace/subscribers","subscription_url":"https://api.github.com/repos/sinagaki58/Protospace/subscription","commits_url":"https://api.github.com/repos/sinagaki58/Protospace/commits{/sha}","git_commits_url":"https://api.github.com/repos/sinagaki58/Protospace/git/commits{/sha}","comments_url":"https://api.github.com/repos/sinagaki58/Protospace/comments{/number}","issue_comment_url":"https://api.github.com/repos/sinagaki58/Protospace/issues/comments{/number}","contents_url":"https://api.github.com/repos/sinagaki58/Protospace/contents/{+path}","compare_url":"https://api.github.com/repos/sinagaki58/Protospace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sinagaki58/Protospace/merges","archive_url":"https://api.github.com/repos/sinagaki58/Protospace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sinagaki58/Protospace/downloads","issues_url":"https://api.github.com/repos/sinagaki58/Protospace/issues{/number}","pulls_url":"https://api.github.com/repos/sinagaki58/Protospace/pulls{/number}","milestones_url":"https://api.github.com/repos/sinagaki58/Protospace/milestones{/number}","notifications_url":"https://api.github.com/repos/sinagaki58/Protospace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sinagaki58/Protospace/labels{/name}","releases_url":"https://api.github.com/repos/sinagaki58/Protospace/releases{/id}","created_at":"2015-08-22T03:08:05Z","updated_at":"2015-08-22T08:17:22Z","pushed_at":"2015-09-05T13:43:04Z","git_url":"git://github.com/sinagaki58/Protospace.git","ssh_url":"git@github.com:sinagaki58/Protospace.git","clone_url":"https://github.com/sinagaki58/Protospace.git","svn_url":"https://github.com/sinagaki58/Protospace","homepage":"","size":1096,"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":"sinagaki58:master","ref":"master","sha":"b95ef1e85109b0d6bc6adf4ed293a42012fc53b2","user":{"login":"sinagaki58","id":11718183,"avatar_url":"https://avatars.githubusercontent.com/u/11718183?v=3","gravatar_id":"","url":"https://api.github.com/users/sinagaki58","html_url":"https://github.com/sinagaki58","followers_url":"https://api.github.com/users/sinagaki58/followers","following_url":"https://api.github.com/users/sinagaki58/following{/other_user}","gists_url":"https://api.github.com/users/sinagaki58/gists{/gist_id}","starred_url":"https://api.github.com/users/sinagaki58/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sinagaki58/subscriptions","organizations_url":"https://api.github.com/users/sinagaki58/orgs","repos_url":"https://api.github.com/users/sinagaki58/repos","events_url":"https://api.github.com/users/sinagaki58/events{/privacy}","received_events_url":"https://api.github.com/users/sinagaki58/received_events","type":"User","site_admin":false},"repo":{"id":41187558,"name":"Protospace","full_name":"sinagaki58/Protospace","owner":{"login":"sinagaki58","id":11718183,"avatar_url":"https://avatars.githubusercontent.com/u/11718183?v=3","gravatar_id":"","url":"https://api.github.com/users/sinagaki58","html_url":"https://github.com/sinagaki58","followers_url":"https://api.github.com/users/sinagaki58/followers","following_url":"https://api.github.com/users/sinagaki58/following{/other_user}","gists_url":"https://api.github.com/users/sinagaki58/gists{/gist_id}","starred_url":"https://api.github.com/users/sinagaki58/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sinagaki58/subscriptions","organizations_url":"https://api.github.com/users/sinagaki58/orgs","repos_url":"https://api.github.com/users/sinagaki58/repos","events_url":"https://api.github.com/users/sinagaki58/events{/privacy}","received_events_url":"https://api.github.com/users/sinagaki58/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sinagaki58/Protospace","description":"","fork":false,"url":"https://api.github.com/repos/sinagaki58/Protospace","forks_url":"https://api.github.com/repos/sinagaki58/Protospace/forks","keys_url":"https://api.github.com/repos/sinagaki58/Protospace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sinagaki58/Protospace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sinagaki58/Protospace/teams","hooks_url":"https://api.github.com/repos/sinagaki58/Protospace/hooks","issue_events_url":"https://api.github.com/repos/sinagaki58/Protospace/issues/events{/number}","events_url":"https://api.github.com/repos/sinagaki58/Protospace/events","assignees_url":"https://api.github.com/repos/sinagaki58/Protospace/assignees{/user}","branches_url":"https://api.github.com/repos/sinagaki58/Protospace/branches{/branch}","tags_url":"https://api.github.com/repos/sinagaki58/Protospace/tags","blobs_url":"https://api.github.com/repos/sinagaki58/Protospace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sinagaki58/Protospace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sinagaki58/Protospace/git/refs{/sha}","trees_url":"https://api.github.com/repos/sinagaki58/Protospace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sinagaki58/Protospace/statuses/{sha}","languages_url":"https://api.github.com/repos/sinagaki58/Protospace/languages","stargazers_url":"https://api.github.com/repos/sinagaki58/Protospace/stargazers","contributors_url":"https://api.github.com/repos/sinagaki58/Protospace/contributors","subscribers_url":"https://api.github.com/repos/sinagaki58/Protospace/subscribers","subscription_url":"https://api.github.com/repos/sinagaki58/Protospace/subscription","commits_url":"https://api.github.com/repos/sinagaki58/Protospace/commits{/sha}","git_commits_url":"https://api.github.com/repos/sinagaki58/Protospace/git/commits{/sha}","comments_url":"https://api.github.com/repos/sinagaki58/Protospace/comments{/number}","issue_comment_url":"https://api.github.com/repos/sinagaki58/Protospace/issues/comments{/number}","contents_url":"https://api.github.com/repos/sinagaki58/Protospace/contents/{+path}","compare_url":"https://api.github.com/repos/sinagaki58/Protospace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sinagaki58/Protospace/merges","archive_url":"https://api.github.com/repos/sinagaki58/Protospace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sinagaki58/Protospace/downloads","issues_url":"https://api.github.com/repos/sinagaki58/Protospace/issues{/number}","pulls_url":"https://api.github.com/repos/sinagaki58/Protospace/pulls{/number}","milestones_url":"https://api.github.com/repos/sinagaki58/Protospace/milestones{/number}","notifications_url":"https://api.github.com/repos/sinagaki58/Protospace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sinagaki58/Protospace/labels{/name}","releases_url":"https://api.github.com/repos/sinagaki58/Protospace/releases{/id}","created_at":"2015-08-22T03:08:05Z","updated_at":"2015-08-22T08:17:22Z","pushed_at":"2015-09-05T13:43:04Z","git_url":"git://github.com/sinagaki58/Protospace.git","ssh_url":"git@github.com:sinagaki58/Protospace.git","clone_url":"https://github.com/sinagaki58/Protospace.git","svn_url":"https://github.com/sinagaki58/Protospace","homepage":"","size":1096,"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/sinagaki58/Protospace/pulls/11"},"html":{"href":"https://github.com/sinagaki58/Protospace/pull/11"},"issue":{"href":"https://api.github.com/repos/sinagaki58/Protospace/issues/11"},"comments":{"href":"https://api.github.com/repos/sinagaki58/Protospace/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/sinagaki58/Protospace/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/sinagaki58/Protospace/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sinagaki58/Protospace/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/sinagaki58/Protospace/statuses/50008781501047b42511263c6821f386cab7d958"}}}}