{"action":"created","comment":{"url":"https://api.github.com/repos/inyt/chat-space/pulls/comments/90597564","pull_request_review_id":11116482,"id":90597564,"diff_hunk":"@@ -1,12 +1,14 @@\n $(function(){\n \n   function prependMessage(data){\n-    var nameSpan = $('<span class=\"name\">').append(data.name);\n-    var timeSpan = $('<span class=\"time\">').append(data.time);\n-    var bodyP = $('<p class=\"chat-unit__message\">').append(data.message.body);\n-    var li = $('<li class=\"chat-unit__name-time\">').append(nameSpan).append(timeSpan).append(bodyP);\n-    var div = $('<div class=\"chat-unit\">').append(li);\n-    $('.message-list').prepend(div);\n+    var html =  '<div class=\"chat-unit\">' +\n+                '<li class=\"chat-unit__name-time\">' +\n+                '<span class=\"name\">' + data.name + '</span>' +\n+                '<span class=\"time\">' + data.time + '</span>' +\n+                '<p class=\"chat-unit__message\">' + data.message.body + '</p>' +\n+                '</li>' +\n+                '</div>';\n+    $('.message-list').prepend(html);","path":"app/assets/javascripts/message.js","position":null,"original_position":17,"commit_id":"494887b154e0b096cc9e5ae6ef4b55f83c50c0e2","original_commit_id":"122ebadfdaee0fe77ffed98cfd57083ed8205f5b","user":{"login":"inyt","id":7474709,"avatar_url":"https://avatars.githubusercontent.com/u/7474709?v=3","gravatar_id":"","url":"https://api.github.com/users/inyt","html_url":"https://github.com/inyt","followers_url":"https://api.github.com/users/inyt/followers","following_url":"https://api.github.com/users/inyt/following{/other_user}","gists_url":"https://api.github.com/users/inyt/gists{/gist_id}","starred_url":"https://api.github.com/users/inyt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inyt/subscriptions","organizations_url":"https://api.github.com/users/inyt/orgs","repos_url":"https://api.github.com/users/inyt/repos","events_url":"https://api.github.com/users/inyt/events{/privacy}","received_events_url":"https://api.github.com/users/inyt/received_events","type":"User","site_admin":false},"body":"下に追加されるように変更しました。\r\nスクロール機能を追加しました。","created_at":"2016-12-02T07:33:55Z","updated_at":"2016-12-02T07:33:55Z","html_url":"https://github.com/inyt/chat-space/pull/20#discussion_r90597564","pull_request_url":"https://api.github.com/repos/inyt/chat-space/pulls/20","_links":{"self":{"href":"https://api.github.com/repos/inyt/chat-space/pulls/comments/90597564"},"html":{"href":"https://github.com/inyt/chat-space/pull/20#discussion_r90597564"},"pull_request":{"href":"https://api.github.com/repos/inyt/chat-space/pulls/20"}}},"pull_request":{"url":"https://api.github.com/repos/inyt/chat-space/pulls/20","id":96022711,"html_url":"https://github.com/inyt/chat-space/pull/20","diff_url":"https://github.com/inyt/chat-space/pull/20.diff","patch_url":"https://github.com/inyt/chat-space/pull/20.patch","issue_url":"https://api.github.com/repos/inyt/chat-space/issues/20","number":20,"state":"open","locked":false,"title":"asynchronous message transmission","user":{"login":"inyt","id":7474709,"avatar_url":"https://avatars.githubusercontent.com/u/7474709?v=3","gravatar_id":"","url":"https://api.github.com/users/inyt","html_url":"https://github.com/inyt","followers_url":"https://api.github.com/users/inyt/followers","following_url":"https://api.github.com/users/inyt/following{/other_user}","gists_url":"https://api.github.com/users/inyt/gists{/gist_id}","starred_url":"https://api.github.com/users/inyt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inyt/subscriptions","organizations_url":"https://api.github.com/users/inyt/orgs","repos_url":"https://api.github.com/users/inyt/repos","events_url":"https://api.github.com/users/inyt/events{/privacy}","received_events_url":"https://api.github.com/users/inyt/received_events","type":"User","site_admin":false},"body":"# WHAT\r\nメッセージ送信機能の非同期通信化\r\n# WHY\r\nユーザーエクスペリエンス向上の為","created_at":"2016-12-01T04:02:47Z","updated_at":"2016-12-02T07:33:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8913e0e98f869412528cf8a8e6bdb56aa278cdf1","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/inyt/chat-space/pulls/20/commits","review_comments_url":"https://api.github.com/repos/inyt/chat-space/pulls/20/comments","review_comment_url":"https://api.github.com/repos/inyt/chat-space/pulls/comments{/number}","comments_url":"https://api.github.com/repos/inyt/chat-space/issues/20/comments","statuses_url":"https://api.github.com/repos/inyt/chat-space/statuses/494887b154e0b096cc9e5ae6ef4b55f83c50c0e2","head":{"label":"inyt:asynchronous-message-sending","ref":"asynchronous-message-sending","sha":"494887b154e0b096cc9e5ae6ef4b55f83c50c0e2","user":{"login":"inyt","id":7474709,"avatar_url":"https://avatars.githubusercontent.com/u/7474709?v=3","gravatar_id":"","url":"https://api.github.com/users/inyt","html_url":"https://github.com/inyt","followers_url":"https://api.github.com/users/inyt/followers","following_url":"https://api.github.com/users/inyt/following{/other_user}","gists_url":"https://api.github.com/users/inyt/gists{/gist_id}","starred_url":"https://api.github.com/users/inyt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inyt/subscriptions","organizations_url":"https://api.github.com/users/inyt/orgs","repos_url":"https://api.github.com/users/inyt/repos","events_url":"https://api.github.com/users/inyt/events{/privacy}","received_events_url":"https://api.github.com/users/inyt/received_events","type":"User","site_admin":false},"repo":{"id":73543013,"name":"chat-space","full_name":"inyt/chat-space","owner":{"login":"inyt","id":7474709,"avatar_url":"https://avatars.githubusercontent.com/u/7474709?v=3","gravatar_id":"","url":"https://api.github.com/users/inyt","html_url":"https://github.com/inyt","followers_url":"https://api.github.com/users/inyt/followers","following_url":"https://api.github.com/users/inyt/following{/other_user}","gists_url":"https://api.github.com/users/inyt/gists{/gist_id}","starred_url":"https://api.github.com/users/inyt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inyt/subscriptions","organizations_url":"https://api.github.com/users/inyt/orgs","repos_url":"https://api.github.com/users/inyt/repos","events_url":"https://api.github.com/users/inyt/events{/privacy}","received_events_url":"https://api.github.com/users/inyt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/inyt/chat-space","description":null,"fork":false,"url":"https://api.github.com/repos/inyt/chat-space","forks_url":"https://api.github.com/repos/inyt/chat-space/forks","keys_url":"https://api.github.com/repos/inyt/chat-space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/inyt/chat-space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/inyt/chat-space/teams","hooks_url":"https://api.github.com/repos/inyt/chat-space/hooks","issue_events_url":"https://api.github.com/repos/inyt/chat-space/issues/events{/number}","events_url":"https://api.github.com/repos/inyt/chat-space/events","assignees_url":"https://api.github.com/repos/inyt/chat-space/assignees{/user}","branches_url":"https://api.github.com/repos/inyt/chat-space/branches{/branch}","tags_url":"https://api.github.com/repos/inyt/chat-space/tags","blobs_url":"https://api.github.com/repos/inyt/chat-space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/inyt/chat-space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/inyt/chat-space/git/refs{/sha}","trees_url":"https://api.github.com/repos/inyt/chat-space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/inyt/chat-space/statuses/{sha}","languages_url":"https://api.github.com/repos/inyt/chat-space/languages","stargazers_url":"https://api.github.com/repos/inyt/chat-space/stargazers","contributors_url":"https://api.github.com/repos/inyt/chat-space/contributors","subscribers_url":"https://api.github.com/repos/inyt/chat-space/subscribers","subscription_url":"https://api.github.com/repos/inyt/chat-space/subscription","commits_url":"https://api.github.com/repos/inyt/chat-space/commits{/sha}","git_commits_url":"https://api.github.com/repos/inyt/chat-space/git/commits{/sha}","comments_url":"https://api.github.com/repos/inyt/chat-space/comments{/number}","issue_comment_url":"https://api.github.com/repos/inyt/chat-space/issues/comments{/number}","contents_url":"https://api.github.com/repos/inyt/chat-space/contents/{+path}","compare_url":"https://api.github.com/repos/inyt/chat-space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/inyt/chat-space/merges","archive_url":"https://api.github.com/repos/inyt/chat-space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/inyt/chat-space/downloads","issues_url":"https://api.github.com/repos/inyt/chat-space/issues{/number}","pulls_url":"https://api.github.com/repos/inyt/chat-space/pulls{/number}","milestones_url":"https://api.github.com/repos/inyt/chat-space/milestones{/number}","notifications_url":"https://api.github.com/repos/inyt/chat-space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/inyt/chat-space/labels{/name}","releases_url":"https://api.github.com/repos/inyt/chat-space/releases{/id}","deployments_url":"https://api.github.com/repos/inyt/chat-space/deployments","created_at":"2016-11-12T09:16:38Z","updated_at":"2016-11-12T09:16:46Z","pushed_at":"2016-12-02T07:31:29Z","git_url":"git://github.com/inyt/chat-space.git","ssh_url":"git@github.com:inyt/chat-space.git","clone_url":"https://github.com/inyt/chat-space.git","svn_url":"https://github.com/inyt/chat-space","homepage":null,"size":118,"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":"inyt:master","ref":"master","sha":"a8a863303450f59f2cccdf400c5c07ddb68bc9d1","user":{"login":"inyt","id":7474709,"avatar_url":"https://avatars.githubusercontent.com/u/7474709?v=3","gravatar_id":"","url":"https://api.github.com/users/inyt","html_url":"https://github.com/inyt","followers_url":"https://api.github.com/users/inyt/followers","following_url":"https://api.github.com/users/inyt/following{/other_user}","gists_url":"https://api.github.com/users/inyt/gists{/gist_id}","starred_url":"https://api.github.com/users/inyt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inyt/subscriptions","organizations_url":"https://api.github.com/users/inyt/orgs","repos_url":"https://api.github.com/users/inyt/repos","events_url":"https://api.github.com/users/inyt/events{/privacy}","received_events_url":"https://api.github.com/users/inyt/received_events","type":"User","site_admin":false},"repo":{"id":73543013,"name":"chat-space","full_name":"inyt/chat-space","owner":{"login":"inyt","id":7474709,"avatar_url":"https://avatars.githubusercontent.com/u/7474709?v=3","gravatar_id":"","url":"https://api.github.com/users/inyt","html_url":"https://github.com/inyt","followers_url":"https://api.github.com/users/inyt/followers","following_url":"https://api.github.com/users/inyt/following{/other_user}","gists_url":"https://api.github.com/users/inyt/gists{/gist_id}","starred_url":"https://api.github.com/users/inyt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inyt/subscriptions","organizations_url":"https://api.github.com/users/inyt/orgs","repos_url":"https://api.github.com/users/inyt/repos","events_url":"https://api.github.com/users/inyt/events{/privacy}","received_events_url":"https://api.github.com/users/inyt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/inyt/chat-space","description":null,"fork":false,"url":"https://api.github.com/repos/inyt/chat-space","forks_url":"https://api.github.com/repos/inyt/chat-space/forks","keys_url":"https://api.github.com/repos/inyt/chat-space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/inyt/chat-space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/inyt/chat-space/teams","hooks_url":"https://api.github.com/repos/inyt/chat-space/hooks","issue_events_url":"https://api.github.com/repos/inyt/chat-space/issues/events{/number}","events_url":"https://api.github.com/repos/inyt/chat-space/events","assignees_url":"https://api.github.com/repos/inyt/chat-space/assignees{/user}","branches_url":"https://api.github.com/repos/inyt/chat-space/branches{/branch}","tags_url":"https://api.github.com/repos/inyt/chat-space/tags","blobs_url":"https://api.github.com/repos/inyt/chat-space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/inyt/chat-space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/inyt/chat-space/git/refs{/sha}","trees_url":"https://api.github.com/repos/inyt/chat-space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/inyt/chat-space/statuses/{sha}","languages_url":"https://api.github.com/repos/inyt/chat-space/languages","stargazers_url":"https://api.github.com/repos/inyt/chat-space/stargazers","contributors_url":"https://api.github.com/repos/inyt/chat-space/contributors","subscribers_url":"https://api.github.com/repos/inyt/chat-space/subscribers","subscription_url":"https://api.github.com/repos/inyt/chat-space/subscription","commits_url":"https://api.github.com/repos/inyt/chat-space/commits{/sha}","git_commits_url":"https://api.github.com/repos/inyt/chat-space/git/commits{/sha}","comments_url":"https://api.github.com/repos/inyt/chat-space/comments{/number}","issue_comment_url":"https://api.github.com/repos/inyt/chat-space/issues/comments{/number}","contents_url":"https://api.github.com/repos/inyt/chat-space/contents/{+path}","compare_url":"https://api.github.com/repos/inyt/chat-space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/inyt/chat-space/merges","archive_url":"https://api.github.com/repos/inyt/chat-space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/inyt/chat-space/downloads","issues_url":"https://api.github.com/repos/inyt/chat-space/issues{/number}","pulls_url":"https://api.github.com/repos/inyt/chat-space/pulls{/number}","milestones_url":"https://api.github.com/repos/inyt/chat-space/milestones{/number}","notifications_url":"https://api.github.com/repos/inyt/chat-space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/inyt/chat-space/labels{/name}","releases_url":"https://api.github.com/repos/inyt/chat-space/releases{/id}","deployments_url":"https://api.github.com/repos/inyt/chat-space/deployments","created_at":"2016-11-12T09:16:38Z","updated_at":"2016-11-12T09:16:46Z","pushed_at":"2016-12-02T07:31:29Z","git_url":"git://github.com/inyt/chat-space.git","ssh_url":"git@github.com:inyt/chat-space.git","clone_url":"https://github.com/inyt/chat-space.git","svn_url":"https://github.com/inyt/chat-space","homepage":null,"size":118,"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/inyt/chat-space/pulls/20"},"html":{"href":"https://github.com/inyt/chat-space/pull/20"},"issue":{"href":"https://api.github.com/repos/inyt/chat-space/issues/20"},"comments":{"href":"https://api.github.com/repos/inyt/chat-space/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/inyt/chat-space/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/inyt/chat-space/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/inyt/chat-space/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/inyt/chat-space/statuses/494887b154e0b096cc9e5ae6ef4b55f83c50c0e2"}}}}
{"actor":{"display_login":"inyt"}}