{"action":"created","comment":{"url":"https://api.github.com/repos/tendergorilla55/chat-space/pulls/comments/245226113","pull_request_review_id":189278565,"id":245226113,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0NTIyNjExMw==","diff_hunk":"@@ -0,0 +1,43 @@\n+$(function(){\n+  function buildHTML(data){\n+    var image = message.image ? `<img src=\"${message.image}\"> ` : \"\"\n+    var html = `<div class=\"chat-main__message clearfix\">\n+                  <div class=\"chat-main__message-name\">\n+                    ${message.name}\n+                  </div>\n+                  <div class=\"chat-main__message-time\">\n+                    ${message.time}\n+                  </div>\n+                  <p class=\"chat-main__message-body\">\n+                    ${message.body}\n+                  </p>\n+                  <p class=\"chat-main__message-body\">\n+                    ${image}\n+                  </p>\n+                </div>`\n+    return html;\n+  }\n+  $('#new_message').on('submit', function(e){\n+    e.preventDefault();\n+    console.log(this);","path":"app/assets/javascripts/message.js","position":22,"original_position":22,"commit_id":"ea9177a4394f6fc01af8236cd9d3888591a2e6d0","original_commit_id":"ea9177a4394f6fc01af8236cd9d3888591a2e6d0","user":{"login":"kuroko918","id":16913756,"node_id":"MDQ6VXNlcjE2OTEzNzU2","avatar_url":"https://avatars3.githubusercontent.com/u/16913756?v=4","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":"これは不要かと思うので、消しておきましょう！","created_at":"2019-01-04T07:28:03Z","updated_at":"2019-01-04T07:31:58Z","html_url":"https://github.com/tendergorilla55/chat-space/pull/11#discussion_r245226113","pull_request_url":"https://api.github.com/repos/tendergorilla55/chat-space/pulls/11","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/tendergorilla55/chat-space/pulls/comments/245226113"},"html":{"href":"https://github.com/tendergorilla55/chat-space/pull/11#discussion_r245226113"},"pull_request":{"href":"https://api.github.com/repos/tendergorilla55/chat-space/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/tendergorilla55/chat-space/pulls/11","id":242191616,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQyMTkxNjE2","html_url":"https://github.com/tendergorilla55/chat-space/pull/11","diff_url":"https://github.com/tendergorilla55/chat-space/pull/11.diff","patch_url":"https://github.com/tendergorilla55/chat-space/pull/11.patch","issue_url":"https://api.github.com/repos/tendergorilla55/chat-space/issues/11","number":11,"state":"open","locked":false,"title":"[WIP]create asynchronous communication","user":{"login":"tendergorilla55","id":45286289,"node_id":"MDQ6VXNlcjQ1Mjg2Mjg5","avatar_url":"https://avatars2.githubusercontent.com/u/45286289?v=4","gravatar_id":"","url":"https://api.github.com/users/tendergorilla55","html_url":"https://github.com/tendergorilla55","followers_url":"https://api.github.com/users/tendergorilla55/followers","following_url":"https://api.github.com/users/tendergorilla55/following{/other_user}","gists_url":"https://api.github.com/users/tendergorilla55/gists{/gist_id}","starred_url":"https://api.github.com/users/tendergorilla55/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tendergorilla55/subscriptions","organizations_url":"https://api.github.com/users/tendergorilla55/orgs","repos_url":"https://api.github.com/users/tendergorilla55/repos","events_url":"https://api.github.com/users/tendergorilla55/events{/privacy}","received_events_url":"https://api.github.com/users/tendergorilla55/received_events","type":"User","site_admin":false},"body":"#WHAT\n非同期通信の実装\n\n#WHY\nメッセージの非同期通信を行い、メッセージのやりとりをスムーズに行うため。","created_at":"2019-01-04T07:25:01Z","updated_at":"2019-01-04T07:31:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9c7b386b61c48d8ee61803162d93107d748de2c5","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/tendergorilla55/chat-space/pulls/11/commits","review_comments_url":"https://api.github.com/repos/tendergorilla55/chat-space/pulls/11/comments","review_comment_url":"https://api.github.com/repos/tendergorilla55/chat-space/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tendergorilla55/chat-space/issues/11/comments","statuses_url":"https://api.github.com/repos/tendergorilla55/chat-space/statuses/ea9177a4394f6fc01af8236cd9d3888591a2e6d0","head":{"label":"tendergorilla55:create_Asynchronous_communication","ref":"create_Asynchronous_communication","sha":"ea9177a4394f6fc01af8236cd9d3888591a2e6d0","user":{"login":"tendergorilla55","id":45286289,"node_id":"MDQ6VXNlcjQ1Mjg2Mjg5","avatar_url":"https://avatars2.githubusercontent.com/u/45286289?v=4","gravatar_id":"","url":"https://api.github.com/users/tendergorilla55","html_url":"https://github.com/tendergorilla55","followers_url":"https://api.github.com/users/tendergorilla55/followers","following_url":"https://api.github.com/users/tendergorilla55/following{/other_user}","gists_url":"https://api.github.com/users/tendergorilla55/gists{/gist_id}","starred_url":"https://api.github.com/users/tendergorilla55/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tendergorilla55/subscriptions","organizations_url":"https://api.github.com/users/tendergorilla55/orgs","repos_url":"https://api.github.com/users/tendergorilla55/repos","events_url":"https://api.github.com/users/tendergorilla55/events{/privacy}","received_events_url":"https://api.github.com/users/tendergorilla55/received_events","type":"User","site_admin":false},"repo":{"id":159926501,"node_id":"MDEwOlJlcG9zaXRvcnkxNTk5MjY1MDE=","name":"chat-space","full_name":"tendergorilla55/chat-space","private":false,"owner":{"login":"tendergorilla55","id":45286289,"node_id":"MDQ6VXNlcjQ1Mjg2Mjg5","avatar_url":"https://avatars2.githubusercontent.com/u/45286289?v=4","gravatar_id":"","url":"https://api.github.com/users/tendergorilla55","html_url":"https://github.com/tendergorilla55","followers_url":"https://api.github.com/users/tendergorilla55/followers","following_url":"https://api.github.com/users/tendergorilla55/following{/other_user}","gists_url":"https://api.github.com/users/tendergorilla55/gists{/gist_id}","starred_url":"https://api.github.com/users/tendergorilla55/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tendergorilla55/subscriptions","organizations_url":"https://api.github.com/users/tendergorilla55/orgs","repos_url":"https://api.github.com/users/tendergorilla55/repos","events_url":"https://api.github.com/users/tendergorilla55/events{/privacy}","received_events_url":"https://api.github.com/users/tendergorilla55/received_events","type":"User","site_admin":false},"html_url":"https://github.com/tendergorilla55/chat-space","description":null,"fork":false,"url":"https://api.github.com/repos/tendergorilla55/chat-space","forks_url":"https://api.github.com/repos/tendergorilla55/chat-space/forks","keys_url":"https://api.github.com/repos/tendergorilla55/chat-space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tendergorilla55/chat-space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tendergorilla55/chat-space/teams","hooks_url":"https://api.github.com/repos/tendergorilla55/chat-space/hooks","issue_events_url":"https://api.github.com/repos/tendergorilla55/chat-space/issues/events{/number}","events_url":"https://api.github.com/repos/tendergorilla55/chat-space/events","assignees_url":"https://api.github.com/repos/tendergorilla55/chat-space/assignees{/user}","branches_url":"https://api.github.com/repos/tendergorilla55/chat-space/branches{/branch}","tags_url":"https://api.github.com/repos/tendergorilla55/chat-space/tags","blobs_url":"https://api.github.com/repos/tendergorilla55/chat-space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tendergorilla55/chat-space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tendergorilla55/chat-space/git/refs{/sha}","trees_url":"https://api.github.com/repos/tendergorilla55/chat-space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tendergorilla55/chat-space/statuses/{sha}","languages_url":"https://api.github.com/repos/tendergorilla55/chat-space/languages","stargazers_url":"https://api.github.com/repos/tendergorilla55/chat-space/stargazers","contributors_url":"https://api.github.com/repos/tendergorilla55/chat-space/contributors","subscribers_url":"https://api.github.com/repos/tendergorilla55/chat-space/subscribers","subscription_url":"https://api.github.com/repos/tendergorilla55/chat-space/subscription","commits_url":"https://api.github.com/repos/tendergorilla55/chat-space/commits{/sha}","git_commits_url":"https://api.github.com/repos/tendergorilla55/chat-space/git/commits{/sha}","comments_url":"https://api.github.com/repos/tendergorilla55/chat-space/comments{/number}","issue_comment_url":"https://api.github.com/repos/tendergorilla55/chat-space/issues/comments{/number}","contents_url":"https://api.github.com/repos/tendergorilla55/chat-space/contents/{+path}","compare_url":"https://api.github.com/repos/tendergorilla55/chat-space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tendergorilla55/chat-space/merges","archive_url":"https://api.github.com/repos/tendergorilla55/chat-space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tendergorilla55/chat-space/downloads","issues_url":"https://api.github.com/repos/tendergorilla55/chat-space/issues{/number}","pulls_url":"https://api.github.com/repos/tendergorilla55/chat-space/pulls{/number}","milestones_url":"https://api.github.com/repos/tendergorilla55/chat-space/milestones{/number}","notifications_url":"https://api.github.com/repos/tendergorilla55/chat-space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tendergorilla55/chat-space/labels{/name}","releases_url":"https://api.github.com/repos/tendergorilla55/chat-space/releases{/id}","deployments_url":"https://api.github.com/repos/tendergorilla55/chat-space/deployments","created_at":"2018-12-01T08:56:52Z","updated_at":"2018-12-23T07:51:32Z","pushed_at":"2019-01-04T07:25:02Z","git_url":"git://github.com/tendergorilla55/chat-space.git","ssh_url":"git@github.com:tendergorilla55/chat-space.git","clone_url":"https://github.com/tendergorilla55/chat-space.git","svn_url":"https://github.com/tendergorilla55/chat-space","homepage":null,"size":170,"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":"tendergorilla55:master","ref":"master","sha":"984b456eb471d6a3f76b80353530b77da2c7da03","user":{"login":"tendergorilla55","id":45286289,"node_id":"MDQ6VXNlcjQ1Mjg2Mjg5","avatar_url":"https://avatars2.githubusercontent.com/u/45286289?v=4","gravatar_id":"","url":"https://api.github.com/users/tendergorilla55","html_url":"https://github.com/tendergorilla55","followers_url":"https://api.github.com/users/tendergorilla55/followers","following_url":"https://api.github.com/users/tendergorilla55/following{/other_user}","gists_url":"https://api.github.com/users/tendergorilla55/gists{/gist_id}","starred_url":"https://api.github.com/users/tendergorilla55/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tendergorilla55/subscriptions","organizations_url":"https://api.github.com/users/tendergorilla55/orgs","repos_url":"https://api.github.com/users/tendergorilla55/repos","events_url":"https://api.github.com/users/tendergorilla55/events{/privacy}","received_events_url":"https://api.github.com/users/tendergorilla55/received_events","type":"User","site_admin":false},"repo":{"id":159926501,"node_id":"MDEwOlJlcG9zaXRvcnkxNTk5MjY1MDE=","name":"chat-space","full_name":"tendergorilla55/chat-space","private":false,"owner":{"login":"tendergorilla55","id":45286289,"node_id":"MDQ6VXNlcjQ1Mjg2Mjg5","avatar_url":"https://avatars2.githubusercontent.com/u/45286289?v=4","gravatar_id":"","url":"https://api.github.com/users/tendergorilla55","html_url":"https://github.com/tendergorilla55","followers_url":"https://api.github.com/users/tendergorilla55/followers","following_url":"https://api.github.com/users/tendergorilla55/following{/other_user}","gists_url":"https://api.github.com/users/tendergorilla55/gists{/gist_id}","starred_url":"https://api.github.com/users/tendergorilla55/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tendergorilla55/subscriptions","organizations_url":"https://api.github.com/users/tendergorilla55/orgs","repos_url":"https://api.github.com/users/tendergorilla55/repos","events_url":"https://api.github.com/users/tendergorilla55/events{/privacy}","received_events_url":"https://api.github.com/users/tendergorilla55/received_events","type":"User","site_admin":false},"html_url":"https://github.com/tendergorilla55/chat-space","description":null,"fork":false,"url":"https://api.github.com/repos/tendergorilla55/chat-space","forks_url":"https://api.github.com/repos/tendergorilla55/chat-space/forks","keys_url":"https://api.github.com/repos/tendergorilla55/chat-space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tendergorilla55/chat-space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tendergorilla55/chat-space/teams","hooks_url":"https://api.github.com/repos/tendergorilla55/chat-space/hooks","issue_events_url":"https://api.github.com/repos/tendergorilla55/chat-space/issues/events{/number}","events_url":"https://api.github.com/repos/tendergorilla55/chat-space/events","assignees_url":"https://api.github.com/repos/tendergorilla55/chat-space/assignees{/user}","branches_url":"https://api.github.com/repos/tendergorilla55/chat-space/branches{/branch}","tags_url":"https://api.github.com/repos/tendergorilla55/chat-space/tags","blobs_url":"https://api.github.com/repos/tendergorilla55/chat-space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tendergorilla55/chat-space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tendergorilla55/chat-space/git/refs{/sha}","trees_url":"https://api.github.com/repos/tendergorilla55/chat-space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tendergorilla55/chat-space/statuses/{sha}","languages_url":"https://api.github.com/repos/tendergorilla55/chat-space/languages","stargazers_url":"https://api.github.com/repos/tendergorilla55/chat-space/stargazers","contributors_url":"https://api.github.com/repos/tendergorilla55/chat-space/contributors","subscribers_url":"https://api.github.com/repos/tendergorilla55/chat-space/subscribers","subscription_url":"https://api.github.com/repos/tendergorilla55/chat-space/subscription","commits_url":"https://api.github.com/repos/tendergorilla55/chat-space/commits{/sha}","git_commits_url":"https://api.github.com/repos/tendergorilla55/chat-space/git/commits{/sha}","comments_url":"https://api.github.com/repos/tendergorilla55/chat-space/comments{/number}","issue_comment_url":"https://api.github.com/repos/tendergorilla55/chat-space/issues/comments{/number}","contents_url":"https://api.github.com/repos/tendergorilla55/chat-space/contents/{+path}","compare_url":"https://api.github.com/repos/tendergorilla55/chat-space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tendergorilla55/chat-space/merges","archive_url":"https://api.github.com/repos/tendergorilla55/chat-space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tendergorilla55/chat-space/downloads","issues_url":"https://api.github.com/repos/tendergorilla55/chat-space/issues{/number}","pulls_url":"https://api.github.com/repos/tendergorilla55/chat-space/pulls{/number}","milestones_url":"https://api.github.com/repos/tendergorilla55/chat-space/milestones{/number}","notifications_url":"https://api.github.com/repos/tendergorilla55/chat-space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tendergorilla55/chat-space/labels{/name}","releases_url":"https://api.github.com/repos/tendergorilla55/chat-space/releases{/id}","deployments_url":"https://api.github.com/repos/tendergorilla55/chat-space/deployments","created_at":"2018-12-01T08:56:52Z","updated_at":"2018-12-23T07:51:32Z","pushed_at":"2019-01-04T07:25:02Z","git_url":"git://github.com/tendergorilla55/chat-space.git","ssh_url":"git@github.com:tendergorilla55/chat-space.git","clone_url":"https://github.com/tendergorilla55/chat-space.git","svn_url":"https://github.com/tendergorilla55/chat-space","homepage":null,"size":170,"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/tendergorilla55/chat-space/pulls/11"},"html":{"href":"https://github.com/tendergorilla55/chat-space/pull/11"},"issue":{"href":"https://api.github.com/repos/tendergorilla55/chat-space/issues/11"},"comments":{"href":"https://api.github.com/repos/tendergorilla55/chat-space/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/tendergorilla55/chat-space/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/tendergorilla55/chat-space/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tendergorilla55/chat-space/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/tendergorilla55/chat-space/statuses/ea9177a4394f6fc01af8236cd9d3888591a2e6d0"}},"author_association":"OWNER"}}
{"actor":{"display_login":"kuroko918"}}