{"action":"created","comment":{"url":"https://api.github.com/repos/ryosuke-endo/mrennai/pulls/comments/84065347","pull_request_review_id":4865391,"id":84065347,"diff_hunk":"@@ -0,0 +1,54 @@\n+class Comment {\n+  constructor(comments) {\n+    this.target_id = getTargetID(comments)\n+    this.body = document.querySelector(\"[data-form-text-area-comment]\").value;\n+    this.commentable_id = document.getElementById('comment_commentable_id').value;\n+    this.commentable_type = document.getElementById('comment_commentable_type').value;\n+    this.member_id = document.getElementById('comment_member_id').value;\n+  }\n+\n+  send() {\n+    $.ajax({\n+      url: \"/comments\",\n+      type: \"POST\",\n+      data: { comment: { body: this.body,\n+                         commentable_id: this.commentable_id,\n+                         commentable_type: this.commentable_type,\n+                         member_id: this.member_id } }\n+    }).done((data) => {\n+      console.log(data);","path":"app/assets/javascripts/comment.js","position":19,"original_position":19,"commit_id":"7ac13657a9ce8d6ba08c24342ebe873c892bbc72","original_commit_id":"7ac13657a9ce8d6ba08c24342ebe873c892bbc72","user":{"login":"ryosuke-endo","id":13434115,"avatar_url":"https://avatars.githubusercontent.com/u/13434115?v=3","gravatar_id":"","url":"https://api.github.com/users/ryosuke-endo","html_url":"https://github.com/ryosuke-endo","followers_url":"https://api.github.com/users/ryosuke-endo/followers","following_url":"https://api.github.com/users/ryosuke-endo/following{/other_user}","gists_url":"https://api.github.com/users/ryosuke-endo/gists{/gist_id}","starred_url":"https://api.github.com/users/ryosuke-endo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryosuke-endo/subscriptions","organizations_url":"https://api.github.com/users/ryosuke-endo/orgs","repos_url":"https://api.github.com/users/ryosuke-endo/repos","events_url":"https://api.github.com/users/ryosuke-endo/events{/privacy}","received_events_url":"https://api.github.com/users/ryosuke-endo/received_events","type":"User","site_admin":false},"body":"console.logはいらないです:bow:","created_at":"2016-10-19T13:08:52Z","updated_at":"2016-10-19T13:13:22Z","html_url":"https://github.com/ryosuke-endo/mrennai/pull/28#discussion_r84065347","pull_request_url":"https://api.github.com/repos/ryosuke-endo/mrennai/pulls/28","_links":{"self":{"href":"https://api.github.com/repos/ryosuke-endo/mrennai/pulls/comments/84065347"},"html":{"href":"https://github.com/ryosuke-endo/mrennai/pull/28#discussion_r84065347"},"pull_request":{"href":"https://api.github.com/repos/ryosuke-endo/mrennai/pulls/28"}}},"pull_request":{"url":"https://api.github.com/repos/ryosuke-endo/mrennai/pulls/28","id":88525680,"html_url":"https://github.com/ryosuke-endo/mrennai/pull/28","diff_url":"https://github.com/ryosuke-endo/mrennai/pull/28.diff","patch_url":"https://github.com/ryosuke-endo/mrennai/pull/28.patch","issue_url":"https://api.github.com/repos/ryosuke-endo/mrennai/issues/28","number":28,"state":"open","locked":false,"title":"コメント機能を作成","user":{"login":"ryosuke-endo","id":13434115,"avatar_url":"https://avatars.githubusercontent.com/u/13434115?v=3","gravatar_id":"","url":"https://api.github.com/users/ryosuke-endo","html_url":"https://github.com/ryosuke-endo","followers_url":"https://api.github.com/users/ryosuke-endo/followers","following_url":"https://api.github.com/users/ryosuke-endo/following{/other_user}","gists_url":"https://api.github.com/users/ryosuke-endo/gists{/gist_id}","starred_url":"https://api.github.com/users/ryosuke-endo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryosuke-endo/subscriptions","organizations_url":"https://api.github.com/users/ryosuke-endo/orgs","repos_url":"https://api.github.com/users/ryosuke-endo/repos","events_url":"https://api.github.com/users/ryosuke-endo/events{/privacy}","received_events_url":"https://api.github.com/users/ryosuke-endo/received_events","type":"User","site_admin":false},"body":"- ログインしていないユーザーは、「会員登録」「ログイン」を促す\r\n- 投稿できるようにする\r\n- 自分と相手でコメントの位置を分けるようにする","created_at":"2016-10-08T00:08:53Z","updated_at":"2016-10-19T13:13:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2776cf34c50fa33bd2dbdc0bbce437d72d4bb16e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ryosuke-endo/mrennai/pulls/28/commits","review_comments_url":"https://api.github.com/repos/ryosuke-endo/mrennai/pulls/28/comments","review_comment_url":"https://api.github.com/repos/ryosuke-endo/mrennai/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ryosuke-endo/mrennai/issues/28/comments","statuses_url":"https://api.github.com/repos/ryosuke-endo/mrennai/statuses/7ac13657a9ce8d6ba08c24342ebe873c892bbc72","head":{"label":"ryosuke-endo:d/23-add-comment","ref":"d/23-add-comment","sha":"7ac13657a9ce8d6ba08c24342ebe873c892bbc72","user":{"login":"ryosuke-endo","id":13434115,"avatar_url":"https://avatars.githubusercontent.com/u/13434115?v=3","gravatar_id":"","url":"https://api.github.com/users/ryosuke-endo","html_url":"https://github.com/ryosuke-endo","followers_url":"https://api.github.com/users/ryosuke-endo/followers","following_url":"https://api.github.com/users/ryosuke-endo/following{/other_user}","gists_url":"https://api.github.com/users/ryosuke-endo/gists{/gist_id}","starred_url":"https://api.github.com/users/ryosuke-endo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryosuke-endo/subscriptions","organizations_url":"https://api.github.com/users/ryosuke-endo/orgs","repos_url":"https://api.github.com/users/ryosuke-endo/repos","events_url":"https://api.github.com/users/ryosuke-endo/events{/privacy}","received_events_url":"https://api.github.com/users/ryosuke-endo/received_events","type":"User","site_admin":false},"repo":{"id":68297590,"name":"mrennai","full_name":"ryosuke-endo/mrennai","owner":{"login":"ryosuke-endo","id":13434115,"avatar_url":"https://avatars.githubusercontent.com/u/13434115?v=3","gravatar_id":"","url":"https://api.github.com/users/ryosuke-endo","html_url":"https://github.com/ryosuke-endo","followers_url":"https://api.github.com/users/ryosuke-endo/followers","following_url":"https://api.github.com/users/ryosuke-endo/following{/other_user}","gists_url":"https://api.github.com/users/ryosuke-endo/gists{/gist_id}","starred_url":"https://api.github.com/users/ryosuke-endo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryosuke-endo/subscriptions","organizations_url":"https://api.github.com/users/ryosuke-endo/orgs","repos_url":"https://api.github.com/users/ryosuke-endo/repos","events_url":"https://api.github.com/users/ryosuke-endo/events{/privacy}","received_events_url":"https://api.github.com/users/ryosuke-endo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ryosuke-endo/mrennai","description":null,"fork":false,"url":"https://api.github.com/repos/ryosuke-endo/mrennai","forks_url":"https://api.github.com/repos/ryosuke-endo/mrennai/forks","keys_url":"https://api.github.com/repos/ryosuke-endo/mrennai/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ryosuke-endo/mrennai/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ryosuke-endo/mrennai/teams","hooks_url":"https://api.github.com/repos/ryosuke-endo/mrennai/hooks","issue_events_url":"https://api.github.com/repos/ryosuke-endo/mrennai/issues/events{/number}","events_url":"https://api.github.com/repos/ryosuke-endo/mrennai/events","assignees_url":"https://api.github.com/repos/ryosuke-endo/mrennai/assignees{/user}","branches_url":"https://api.github.com/repos/ryosuke-endo/mrennai/branches{/branch}","tags_url":"https://api.github.com/repos/ryosuke-endo/mrennai/tags","blobs_url":"https://api.github.com/repos/ryosuke-endo/mrennai/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ryosuke-endo/mrennai/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ryosuke-endo/mrennai/git/refs{/sha}","trees_url":"https://api.github.com/repos/ryosuke-endo/mrennai/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ryosuke-endo/mrennai/statuses/{sha}","languages_url":"https://api.github.com/repos/ryosuke-endo/mrennai/languages","stargazers_url":"https://api.github.com/repos/ryosuke-endo/mrennai/stargazers","contributors_url":"https://api.github.com/repos/ryosuke-endo/mrennai/contributors","subscribers_url":"https://api.github.com/repos/ryosuke-endo/mrennai/subscribers","subscription_url":"https://api.github.com/repos/ryosuke-endo/mrennai/subscription","commits_url":"https://api.github.com/repos/ryosuke-endo/mrennai/commits{/sha}","git_commits_url":"https://api.github.com/repos/ryosuke-endo/mrennai/git/commits{/sha}","comments_url":"https://api.github.com/repos/ryosuke-endo/mrennai/comments{/number}","issue_comment_url":"https://api.github.com/repos/ryosuke-endo/mrennai/issues/comments{/number}","contents_url":"https://api.github.com/repos/ryosuke-endo/mrennai/contents/{+path}","compare_url":"https://api.github.com/repos/ryosuke-endo/mrennai/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ryosuke-endo/mrennai/merges","archive_url":"https://api.github.com/repos/ryosuke-endo/mrennai/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ryosuke-endo/mrennai/downloads","issues_url":"https://api.github.com/repos/ryosuke-endo/mrennai/issues{/number}","pulls_url":"https://api.github.com/repos/ryosuke-endo/mrennai/pulls{/number}","milestones_url":"https://api.github.com/repos/ryosuke-endo/mrennai/milestones{/number}","notifications_url":"https://api.github.com/repos/ryosuke-endo/mrennai/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ryosuke-endo/mrennai/labels{/name}","releases_url":"https://api.github.com/repos/ryosuke-endo/mrennai/releases{/id}","deployments_url":"https://api.github.com/repos/ryosuke-endo/mrennai/deployments","created_at":"2016-09-15T13:44:16Z","updated_at":"2016-09-15T13:45:12Z","pushed_at":"2016-10-18T14:57:08Z","git_url":"git://github.com/ryosuke-endo/mrennai.git","ssh_url":"git@github.com:ryosuke-endo/mrennai.git","clone_url":"https://github.com/ryosuke-endo/mrennai.git","svn_url":"https://github.com/ryosuke-endo/mrennai","homepage":null,"size":313,"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":"ryosuke-endo:master","ref":"master","sha":"3142bdfb4e0b2f188540f0c5ceca5a1603e4dc1a","user":{"login":"ryosuke-endo","id":13434115,"avatar_url":"https://avatars.githubusercontent.com/u/13434115?v=3","gravatar_id":"","url":"https://api.github.com/users/ryosuke-endo","html_url":"https://github.com/ryosuke-endo","followers_url":"https://api.github.com/users/ryosuke-endo/followers","following_url":"https://api.github.com/users/ryosuke-endo/following{/other_user}","gists_url":"https://api.github.com/users/ryosuke-endo/gists{/gist_id}","starred_url":"https://api.github.com/users/ryosuke-endo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryosuke-endo/subscriptions","organizations_url":"https://api.github.com/users/ryosuke-endo/orgs","repos_url":"https://api.github.com/users/ryosuke-endo/repos","events_url":"https://api.github.com/users/ryosuke-endo/events{/privacy}","received_events_url":"https://api.github.com/users/ryosuke-endo/received_events","type":"User","site_admin":false},"repo":{"id":68297590,"name":"mrennai","full_name":"ryosuke-endo/mrennai","owner":{"login":"ryosuke-endo","id":13434115,"avatar_url":"https://avatars.githubusercontent.com/u/13434115?v=3","gravatar_id":"","url":"https://api.github.com/users/ryosuke-endo","html_url":"https://github.com/ryosuke-endo","followers_url":"https://api.github.com/users/ryosuke-endo/followers","following_url":"https://api.github.com/users/ryosuke-endo/following{/other_user}","gists_url":"https://api.github.com/users/ryosuke-endo/gists{/gist_id}","starred_url":"https://api.github.com/users/ryosuke-endo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryosuke-endo/subscriptions","organizations_url":"https://api.github.com/users/ryosuke-endo/orgs","repos_url":"https://api.github.com/users/ryosuke-endo/repos","events_url":"https://api.github.com/users/ryosuke-endo/events{/privacy}","received_events_url":"https://api.github.com/users/ryosuke-endo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ryosuke-endo/mrennai","description":null,"fork":false,"url":"https://api.github.com/repos/ryosuke-endo/mrennai","forks_url":"https://api.github.com/repos/ryosuke-endo/mrennai/forks","keys_url":"https://api.github.com/repos/ryosuke-endo/mrennai/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ryosuke-endo/mrennai/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ryosuke-endo/mrennai/teams","hooks_url":"https://api.github.com/repos/ryosuke-endo/mrennai/hooks","issue_events_url":"https://api.github.com/repos/ryosuke-endo/mrennai/issues/events{/number}","events_url":"https://api.github.com/repos/ryosuke-endo/mrennai/events","assignees_url":"https://api.github.com/repos/ryosuke-endo/mrennai/assignees{/user}","branches_url":"https://api.github.com/repos/ryosuke-endo/mrennai/branches{/branch}","tags_url":"https://api.github.com/repos/ryosuke-endo/mrennai/tags","blobs_url":"https://api.github.com/repos/ryosuke-endo/mrennai/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ryosuke-endo/mrennai/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ryosuke-endo/mrennai/git/refs{/sha}","trees_url":"https://api.github.com/repos/ryosuke-endo/mrennai/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ryosuke-endo/mrennai/statuses/{sha}","languages_url":"https://api.github.com/repos/ryosuke-endo/mrennai/languages","stargazers_url":"https://api.github.com/repos/ryosuke-endo/mrennai/stargazers","contributors_url":"https://api.github.com/repos/ryosuke-endo/mrennai/contributors","subscribers_url":"https://api.github.com/repos/ryosuke-endo/mrennai/subscribers","subscription_url":"https://api.github.com/repos/ryosuke-endo/mrennai/subscription","commits_url":"https://api.github.com/repos/ryosuke-endo/mrennai/commits{/sha}","git_commits_url":"https://api.github.com/repos/ryosuke-endo/mrennai/git/commits{/sha}","comments_url":"https://api.github.com/repos/ryosuke-endo/mrennai/comments{/number}","issue_comment_url":"https://api.github.com/repos/ryosuke-endo/mrennai/issues/comments{/number}","contents_url":"https://api.github.com/repos/ryosuke-endo/mrennai/contents/{+path}","compare_url":"https://api.github.com/repos/ryosuke-endo/mrennai/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ryosuke-endo/mrennai/merges","archive_url":"https://api.github.com/repos/ryosuke-endo/mrennai/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ryosuke-endo/mrennai/downloads","issues_url":"https://api.github.com/repos/ryosuke-endo/mrennai/issues{/number}","pulls_url":"https://api.github.com/repos/ryosuke-endo/mrennai/pulls{/number}","milestones_url":"https://api.github.com/repos/ryosuke-endo/mrennai/milestones{/number}","notifications_url":"https://api.github.com/repos/ryosuke-endo/mrennai/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ryosuke-endo/mrennai/labels{/name}","releases_url":"https://api.github.com/repos/ryosuke-endo/mrennai/releases{/id}","deployments_url":"https://api.github.com/repos/ryosuke-endo/mrennai/deployments","created_at":"2016-09-15T13:44:16Z","updated_at":"2016-09-15T13:45:12Z","pushed_at":"2016-10-18T14:57:08Z","git_url":"git://github.com/ryosuke-endo/mrennai.git","ssh_url":"git@github.com:ryosuke-endo/mrennai.git","clone_url":"https://github.com/ryosuke-endo/mrennai.git","svn_url":"https://github.com/ryosuke-endo/mrennai","homepage":null,"size":313,"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/ryosuke-endo/mrennai/pulls/28"},"html":{"href":"https://github.com/ryosuke-endo/mrennai/pull/28"},"issue":{"href":"https://api.github.com/repos/ryosuke-endo/mrennai/issues/28"},"comments":{"href":"https://api.github.com/repos/ryosuke-endo/mrennai/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/ryosuke-endo/mrennai/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/ryosuke-endo/mrennai/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ryosuke-endo/mrennai/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/ryosuke-endo/mrennai/statuses/7ac13657a9ce8d6ba08c24342ebe873c892bbc72"}}}}
{"actor":{"display_login":"ryosuke-endo"}}