payload: {"action":"created","comment":{"url":"https://api.github.com/repos/Fujiten/chat_space/pulls/comments/255388320","pull_request_review_id":201960211,"id":255388320,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI1NTM4ODMyMA==","diff_hunk":"@@ -0,0 +1,45 @@\n+$(function(){\n+  function buildHTML(message){\n+    var html = `<div class = \"message\">\n+                  <div class = \"upper-message\">\n+                    <div class = \"upper-message__user-name\">\n+                      ${message.name}\n+                    </div>\n+                    <div class = \"upper-message__date\">\n+                      ${message.date}\n+                    </div>\n+                  </div>\n+                  <div class = \"lower-message\">\n+                    <div class = \"lower-message__content\">\n+                      ${message.content}\n+                    </div>\n+                  </div>\n+                </div>`\n+    return html;\n+  }\n+  //非同期通信\n+  $('#new_message').on('submit', function(e){\n+    e.preventDefault();\n+    var formData = new FormData(this);\n+    var url = $(this).attr('action');\n+    $.ajax({\n+      url: url,\n+      type: \"POST\",\n+      data: formData,\n+      dataType: 'json',\n+      processData: false,\n+      contentType: false\n+    })\n+    .done(function(data){","path":"app/assets/javascripts/message.js","position":null,"original_position":33,"commit_id":"294c1009bd3d462cdb79307b9c800d414db771fc","original_commit_id":"ea7144e20b1cedfe1bca2827f2e161706180bb40","user":{"login":"yuki-uchida","id":19234737,"node_id":"MDQ6VXNlcjE5MjM0NzM3","avatar_url":"https://avatars0.githubusercontent.com/u/19234737?v=4","gravatar_id":"","url":"https://api.github.com/users/yuki-uchida","html_url":"https://github.com/yuki-uchida","followers_url":"https://api.github.com/users/yuki-uchida/followers","following_url":"https://api.github.com/users/yuki-uchida/following{/other_user}","gists_url":"https://api.github.com/users/yuki-uchida/gists{/gist_id}","starred_url":"https://api.github.com/users/yuki-uchida/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuki-uchida/subscriptions","organizations_url":"https://api.github.com/users/yuki-uchida/orgs","repos_url":"https://api.github.com/users/yuki-uchida/repos","events_url":"https://api.github.com/users/yuki-uchida/events{/privacy}","received_events_url":"https://api.github.com/users/yuki-uchida/received_events","type":"User","site_admin":false},"body":" messageという名前を入れましょう","created_at":"2019-02-11T06:23:51Z","updated_at":"2019-02-11T06:23:51Z","html_url":"https://github.com/Fujiten/chat_space/pull/8#discussion_r255388320","pull_request_url":"https://api.github.com/repos/Fujiten/chat_space/pulls/8","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/Fujiten/chat_space/pulls/comments/255388320"},"html":{"href":"https://github.com/Fujiten/chat_space/pull/8#discussion_r255388320"},"pull_request":{"href":"https://api.github.com/repos/Fujiten/chat_space/pulls/8"}},"in_reply_to_id":255385017},"pull_request":{"url":"https://api.github.com/repos/Fujiten/chat_space/pulls/8","id":251717996,"node_id":"MDExOlB1bGxSZXF1ZXN0MjUxNzE3OTk2","html_url":"https://github.com/Fujiten/chat_space/pull/8","diff_url":"https://github.com/Fujiten/chat_space/pull/8.diff","patch_url":"https://github.com/Fujiten/chat_space/pull/8.patch","issue_url":"https://api.github.com/repos/Fujiten/chat_space/issues/8","number":8,"state":"open","locked":false,"title":"非同期通信によるメッセージ送信機能の追加","user":{"login":"Fujiten","id":45753250,"node_id":"MDQ6VXNlcjQ1NzUzMjUw","avatar_url":"https://avatars2.githubusercontent.com/u/45753250?v=4","gravatar_id":"","url":"https://api.github.com/users/Fujiten","html_url":"https://github.com/Fujiten","followers_url":"https://api.github.com/users/Fujiten/followers","following_url":"https://api.github.com/users/Fujiten/following{/other_user}","gists_url":"https://api.github.com/users/Fujiten/gists{/gist_id}","starred_url":"https://api.github.com/users/Fujiten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fujiten/subscriptions","organizations_url":"https://api.github.com/users/Fujiten/orgs","repos_url":"https://api.github.com/users/Fujiten/repos","events_url":"https://api.github.com/users/Fujiten/events{/privacy}","received_events_url":"https://api.github.com/users/Fujiten/received_events","type":"User","site_admin":false},"body":"# WHAT\r\nメッセージ送信機能を非同期通信で実装する。\r\n\r\n# WHY\r\n- ページ遷移を不必要にし、高速に画面を書き換えるため。\r\n- ブラウザで受信するデータ量を削減するため。","created_at":"2019-02-10T05:10:54Z","updated_at":"2019-02-11T06:23:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ac8e68bb77ab82244ec838bd9fa693f564a0edf6","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Fujiten/chat_space/pulls/8/commits","review_comments_url":"https://api.github.com/repos/Fujiten/chat_space/pulls/8/comments","review_comment_url":"https://api.github.com/repos/Fujiten/chat_space/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Fujiten/chat_space/issues/8/comments","statuses_url":"https://api.github.com/repos/Fujiten/chat_space/statuses/294c1009bd3d462cdb79307b9c800d414db771fc","head":{"label":"Fujiten:Create_Function_of_Ajax_in_message_commnication","ref":"Create_Function_of_Ajax_in_message_commnication","sha":"294c1009bd3d462cdb79307b9c800d414db771fc","user":{"login":"Fujiten","id":45753250,"node_id":"MDQ6VXNlcjQ1NzUzMjUw","avatar_url":"https://avatars2.githubusercontent.com/u/45753250?v=4","gravatar_id":"","url":"https://api.github.com/users/Fujiten","html_url":"https://github.com/Fujiten","followers_url":"https://api.github.com/users/Fujiten/followers","following_url":"https://api.github.com/users/Fujiten/following{/other_user}","gists_url":"https://api.github.com/users/Fujiten/gists{/gist_id}","starred_url":"https://api.github.com/users/Fujiten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fujiten/subscriptions","organizations_url":"https://api.github.com/users/Fujiten/orgs","repos_url":"https://api.github.com/users/Fujiten/repos","events_url":"https://api.github.com/users/Fujiten/events{/privacy}","received_events_url":"https://api.github.com/users/Fujiten/received_events","type":"User","site_admin":false},"repo":{"id":167650879,"node_id":"MDEwOlJlcG9zaXRvcnkxNjc2NTA4Nzk=","name":"chat_space","full_name":"Fujiten/chat_space","private":false,"owner":{"login":"Fujiten","id":45753250,"node_id":"MDQ6VXNlcjQ1NzUzMjUw","avatar_url":"https://avatars2.githubusercontent.com/u/45753250?v=4","gravatar_id":"","url":"https://api.github.com/users/Fujiten","html_url":"https://github.com/Fujiten","followers_url":"https://api.github.com/users/Fujiten/followers","following_url":"https://api.github.com/users/Fujiten/following{/other_user}","gists_url":"https://api.github.com/users/Fujiten/gists{/gist_id}","starred_url":"https://api.github.com/users/Fujiten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fujiten/subscriptions","organizations_url":"https://api.github.com/users/Fujiten/orgs","repos_url":"https://api.github.com/users/Fujiten/repos","events_url":"https://api.github.com/users/Fujiten/events{/privacy}","received_events_url":"https://api.github.com/users/Fujiten/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Fujiten/chat_space","description":"（スクール課題）非同期通信を用いたチャットアプリ","fork":false,"url":"https://api.github.com/repos/Fujiten/chat_space","forks_url":"https://api.github.com/repos/Fujiten/chat_space/forks","keys_url":"https://api.github.com/repos/Fujiten/chat_space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Fujiten/chat_space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Fujiten/chat_space/teams","hooks_url":"https://api.github.com/repos/Fujiten/chat_space/hooks","issue_events_url":"https://api.github.com/repos/Fujiten/chat_space/issues/events{/number}","events_url":"https://api.github.com/repos/Fujiten/chat_space/events","assignees_url":"https://api.github.com/repos/Fujiten/chat_space/assignees{/user}","branches_url":"https://api.github.com/repos/Fujiten/chat_space/branches{/branch}","tags_url":"https://api.github.com/repos/Fujiten/chat_space/tags","blobs_url":"https://api.github.com/repos/Fujiten/chat_space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Fujiten/chat_space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Fujiten/chat_space/git/refs{/sha}","trees_url":"https://api.github.com/repos/Fujiten/chat_space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Fujiten/chat_space/statuses/{sha}","languages_url":"https://api.github.com/repos/Fujiten/chat_space/languages","stargazers_url":"https://api.github.com/repos/Fujiten/chat_space/stargazers","contributors_url":"https://api.github.com/repos/Fujiten/chat_space/contributors","subscribers_url":"https://api.github.com/repos/Fujiten/chat_space/subscribers","subscription_url":"https://api.github.com/repos/Fujiten/chat_space/subscription","commits_url":"https://api.github.com/repos/Fujiten/chat_space/commits{/sha}","git_commits_url":"https://api.github.com/repos/Fujiten/chat_space/git/commits{/sha}","comments_url":"https://api.github.com/repos/Fujiten/chat_space/comments{/number}","issue_comment_url":"https://api.github.com/repos/Fujiten/chat_space/issues/comments{/number}","contents_url":"https://api.github.com/repos/Fujiten/chat_space/contents/{+path}","compare_url":"https://api.github.com/repos/Fujiten/chat_space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Fujiten/chat_space/merges","archive_url":"https://api.github.com/repos/Fujiten/chat_space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Fujiten/chat_space/downloads","issues_url":"https://api.github.com/repos/Fujiten/chat_space/issues{/number}","pulls_url":"https://api.github.com/repos/Fujiten/chat_space/pulls{/number}","milestones_url":"https://api.github.com/repos/Fujiten/chat_space/milestones{/number}","notifications_url":"https://api.github.com/repos/Fujiten/chat_space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Fujiten/chat_space/labels{/name}","releases_url":"https://api.github.com/repos/Fujiten/chat_space/releases{/id}","deployments_url":"https://api.github.com/repos/Fujiten/chat_space/deployments","created_at":"2019-01-26T04:47:59Z","updated_at":"2019-02-10T04:57:00Z","pushed_at":"2019-02-11T06:09:01Z","git_url":"git://github.com/Fujiten/chat_space.git","ssh_url":"git@github.com:Fujiten/chat_space.git","clone_url":"https://github.com/Fujiten/chat_space.git","svn_url":"https://github.com/Fujiten/chat_space","homepage":"","size":282,"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":"Fujiten:master","ref":"master","sha":"f3ee5338e312537b446688175d8b3ad235e4f9d6","user":{"login":"Fujiten","id":45753250,"node_id":"MDQ6VXNlcjQ1NzUzMjUw","avatar_url":"https://avatars2.githubusercontent.com/u/45753250?v=4","gravatar_id":"","url":"https://api.github.com/users/Fujiten","html_url":"https://github.com/Fujiten","followers_url":"https://api.github.com/users/Fujiten/followers","following_url":"https://api.github.com/users/Fujiten/following{/other_user}","gists_url":"https://api.github.com/users/Fujiten/gists{/gist_id}","starred_url":"https://api.github.com/users/Fujiten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fujiten/subscriptions","organizations_url":"https://api.github.com/users/Fujiten/orgs","repos_url":"https://api.github.com/users/Fujiten/repos","events_url":"https://api.github.com/users/Fujiten/events{/privacy}","received_events_url":"https://api.github.com/users/Fujiten/received_events","type":"User","site_admin":false},"repo":{"id":167650879,"node_id":"MDEwOlJlcG9zaXRvcnkxNjc2NTA4Nzk=","name":"chat_space","full_name":"Fujiten/chat_space","private":false,"owner":{"login":"Fujiten","id":45753250,"node_id":"MDQ6VXNlcjQ1NzUzMjUw","avatar_url":"https://avatars2.githubusercontent.com/u/45753250?v=4","gravatar_id":"","url":"https://api.github.com/users/Fujiten","html_url":"https://github.com/Fujiten","followers_url":"https://api.github.com/users/Fujiten/followers","following_url":"https://api.github.com/users/Fujiten/following{/other_user}","gists_url":"https://api.github.com/users/Fujiten/gists{/gist_id}","starred_url":"https://api.github.com/users/Fujiten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fujiten/subscriptions","organizations_url":"https://api.github.com/users/Fujiten/orgs","repos_url":"https://api.github.com/users/Fujiten/repos","events_url":"https://api.github.com/users/Fujiten/events{/privacy}","received_events_url":"https://api.github.com/users/Fujiten/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Fujiten/chat_space","description":"（スクール課題）非同期通信を用いたチャットアプリ","fork":false,"url":"https://api.github.com/repos/Fujiten/chat_space","forks_url":"https://api.github.com/repos/Fujiten/chat_space/forks","keys_url":"https://api.github.com/repos/Fujiten/chat_space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Fujiten/chat_space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Fujiten/chat_space/teams","hooks_url":"https://api.github.com/repos/Fujiten/chat_space/hooks","issue_events_url":"https://api.github.com/repos/Fujiten/chat_space/issues/events{/number}","events_url":"https://api.github.com/repos/Fujiten/chat_space/events","assignees_url":"https://api.github.com/repos/Fujiten/chat_space/assignees{/user}","branches_url":"https://api.github.com/repos/Fujiten/chat_space/branches{/branch}","tags_url":"https://api.github.com/repos/Fujiten/chat_space/tags","blobs_url":"https://api.github.com/repos/Fujiten/chat_space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Fujiten/chat_space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Fujiten/chat_space/git/refs{/sha}","trees_url":"https://api.github.com/repos/Fujiten/chat_space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Fujiten/chat_space/statuses/{sha}","languages_url":"https://api.github.com/repos/Fujiten/chat_space/languages","stargazers_url":"https://api.github.com/repos/Fujiten/chat_space/stargazers","contributors_url":"https://api.github.com/repos/Fujiten/chat_space/contributors","subscribers_url":"https://api.github.com/repos/Fujiten/chat_space/subscribers","subscription_url":"https://api.github.com/repos/Fujiten/chat_space/subscription","commits_url":"https://api.github.com/repos/Fujiten/chat_space/commits{/sha}","git_commits_url":"https://api.github.com/repos/Fujiten/chat_space/git/commits{/sha}","comments_url":"https://api.github.com/repos/Fujiten/chat_space/comments{/number}","issue_comment_url":"https://api.github.com/repos/Fujiten/chat_space/issues/comments{/number}","contents_url":"https://api.github.com/repos/Fujiten/chat_space/contents/{+path}","compare_url":"https://api.github.com/repos/Fujiten/chat_space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Fujiten/chat_space/merges","archive_url":"https://api.github.com/repos/Fujiten/chat_space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Fujiten/chat_space/downloads","issues_url":"https://api.github.com/repos/Fujiten/chat_space/issues{/number}","pulls_url":"https://api.github.com/repos/Fujiten/chat_space/pulls{/number}","milestones_url":"https://api.github.com/repos/Fujiten/chat_space/milestones{/number}","notifications_url":"https://api.github.com/repos/Fujiten/chat_space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Fujiten/chat_space/labels{/name}","releases_url":"https://api.github.com/repos/Fujiten/chat_space/releases{/id}","deployments_url":"https://api.github.com/repos/Fujiten/chat_space/deployments","created_at":"2019-01-26T04:47:59Z","updated_at":"2019-02-10T04:57:00Z","pushed_at":"2019-02-11T06:09:01Z","git_url":"git://github.com/Fujiten/chat_space.git","ssh_url":"git@github.com:Fujiten/chat_space.git","clone_url":"https://github.com/Fujiten/chat_space.git","svn_url":"https://github.com/Fujiten/chat_space","homepage":"","size":282,"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/Fujiten/chat_space/pulls/8"},"html":{"href":"https://github.com/Fujiten/chat_space/pull/8"},"issue":{"href":"https://api.github.com/repos/Fujiten/chat_space/issues/8"},"comments":{"href":"https://api.github.com/repos/Fujiten/chat_space/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/Fujiten/chat_space/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/Fujiten/chat_space/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Fujiten/chat_space/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/Fujiten/chat_space/statuses/294c1009bd3d462cdb79307b9c800d414db771fc"}},"author_association":"OWNER"}}
other: {"actor":{"display_login":"yuki-uchida"}}