{"action":"created","comment":{"url":"https://api.github.com/repos/konny0311/chat-space/pulls/comments/172009437","pull_request_review_id":100967758,"id":172009437,"diff_hunk":"@@ -15,6 +15,34 @@ $(function() {\n         </ul>`\n     return html_with_image;\n   }\n+  function insertHTML(message){\n+    var html = buildHTML(message);\n+    $('.contents_main--body').append(html).trigger('create');\n+    if (message.image.url == null) $('.image-message').remove();\n+    $('.contents_main--body').animate({scrollTop: $('.contents_main--body')[0].scrollHeight}, 300, 'swing')\n+    $('.form__message').val('')\n+    $('#message_image').val('')\n+  }\n+  setInterval(function(){\n+    if ($('.chat-history')) {","path":"app/assets/javascripts/message.js","position":22,"original_position":22,"commit_id":"120db6fa2070693dada106775f7c5343803ffae0","original_commit_id":"120db6fa2070693dada106775f7c5343803ffae0","user":{"login":"konny0311","id":34429021,"avatar_url":"https://avatars2.githubusercontent.com/u/34429021?v=4","gravatar_id":"","url":"https://api.github.com/users/konny0311","html_url":"https://github.com/konny0311","followers_url":"https://api.github.com/users/konny0311/followers","following_url":"https://api.github.com/users/konny0311/following{/other_user}","gists_url":"https://api.github.com/users/konny0311/gists{/gist_id}","starred_url":"https://api.github.com/users/konny0311/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/konny0311/subscriptions","organizations_url":"https://api.github.com/users/konny0311/orgs","repos_url":"https://api.github.com/users/konny0311/repos","events_url":"https://api.github.com/users/konny0311/events{/privacy}","received_events_url":"https://api.github.com/users/konny0311/received_events","type":"User","site_admin":false},"body":"三項演算子用いればかなりすっきりしました！ありがとうございます。","created_at":"2018-03-03T07:31:12Z","updated_at":"2018-03-03T07:31:12Z","html_url":"https://github.com/konny0311/chat-space/pull/13#discussion_r172009437","pull_request_url":"https://api.github.com/repos/konny0311/chat-space/pulls/13","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/konny0311/chat-space/pulls/comments/172009437"},"html":{"href":"https://github.com/konny0311/chat-space/pull/13#discussion_r172009437"},"pull_request":{"href":"https://api.github.com/repos/konny0311/chat-space/pulls/13"}},"in_reply_to_id":172009047},"pull_request":{"url":"https://api.github.com/repos/konny0311/chat-space/pulls/13","id":172653245,"html_url":"https://github.com/konny0311/chat-space/pull/13","diff_url":"https://github.com/konny0311/chat-space/pull/13.diff","patch_url":"https://github.com/konny0311/chat-space/pull/13.patch","issue_url":"https://api.github.com/repos/konny0311/chat-space/issues/13","number":13,"state":"open","locked":false,"title":"Chatspace自動更新機能実装","user":{"login":"konny0311","id":34429021,"avatar_url":"https://avatars2.githubusercontent.com/u/34429021?v=4","gravatar_id":"","url":"https://api.github.com/users/konny0311","html_url":"https://github.com/konny0311","followers_url":"https://api.github.com/users/konny0311/followers","following_url":"https://api.github.com/users/konny0311/following{/other_user}","gists_url":"https://api.github.com/users/konny0311/gists{/gist_id}","starred_url":"https://api.github.com/users/konny0311/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/konny0311/subscriptions","organizations_url":"https://api.github.com/users/konny0311/orgs","repos_url":"https://api.github.com/users/konny0311/repos","events_url":"https://api.github.com/users/konny0311/events{/privacy}","received_events_url":"https://api.github.com/users/konny0311/received_events","type":"User","site_admin":false},"body":"WHAT\r\n自動更新機能の実装\r\nWHY\r\nユーザー利便性向上","created_at":"2018-03-03T06:22:18Z","updated_at":"2018-03-03T07:31:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"735d8ce82fc5adaee432d8b6f5d0ae98991ff36c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/konny0311/chat-space/pulls/13/commits","review_comments_url":"https://api.github.com/repos/konny0311/chat-space/pulls/13/comments","review_comment_url":"https://api.github.com/repos/konny0311/chat-space/pulls/comments{/number}","comments_url":"https://api.github.com/repos/konny0311/chat-space/issues/13/comments","statuses_url":"https://api.github.com/repos/konny0311/chat-space/statuses/120db6fa2070693dada106775f7c5343803ffae0","head":{"label":"konny0311:Set_auto_updating","ref":"Set_auto_updating","sha":"120db6fa2070693dada106775f7c5343803ffae0","user":{"login":"konny0311","id":34429021,"avatar_url":"https://avatars2.githubusercontent.com/u/34429021?v=4","gravatar_id":"","url":"https://api.github.com/users/konny0311","html_url":"https://github.com/konny0311","followers_url":"https://api.github.com/users/konny0311/followers","following_url":"https://api.github.com/users/konny0311/following{/other_user}","gists_url":"https://api.github.com/users/konny0311/gists{/gist_id}","starred_url":"https://api.github.com/users/konny0311/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/konny0311/subscriptions","organizations_url":"https://api.github.com/users/konny0311/orgs","repos_url":"https://api.github.com/users/konny0311/repos","events_url":"https://api.github.com/users/konny0311/events{/privacy}","received_events_url":"https://api.github.com/users/konny0311/received_events","type":"User","site_admin":false},"repo":{"id":121219892,"name":"chat-space","full_name":"konny0311/chat-space","owner":{"login":"konny0311","id":34429021,"avatar_url":"https://avatars2.githubusercontent.com/u/34429021?v=4","gravatar_id":"","url":"https://api.github.com/users/konny0311","html_url":"https://github.com/konny0311","followers_url":"https://api.github.com/users/konny0311/followers","following_url":"https://api.github.com/users/konny0311/following{/other_user}","gists_url":"https://api.github.com/users/konny0311/gists{/gist_id}","starred_url":"https://api.github.com/users/konny0311/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/konny0311/subscriptions","organizations_url":"https://api.github.com/users/konny0311/orgs","repos_url":"https://api.github.com/users/konny0311/repos","events_url":"https://api.github.com/users/konny0311/events{/privacy}","received_events_url":"https://api.github.com/users/konny0311/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/konny0311/chat-space","description":null,"fork":false,"url":"https://api.github.com/repos/konny0311/chat-space","forks_url":"https://api.github.com/repos/konny0311/chat-space/forks","keys_url":"https://api.github.com/repos/konny0311/chat-space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/konny0311/chat-space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/konny0311/chat-space/teams","hooks_url":"https://api.github.com/repos/konny0311/chat-space/hooks","issue_events_url":"https://api.github.com/repos/konny0311/chat-space/issues/events{/number}","events_url":"https://api.github.com/repos/konny0311/chat-space/events","assignees_url":"https://api.github.com/repos/konny0311/chat-space/assignees{/user}","branches_url":"https://api.github.com/repos/konny0311/chat-space/branches{/branch}","tags_url":"https://api.github.com/repos/konny0311/chat-space/tags","blobs_url":"https://api.github.com/repos/konny0311/chat-space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/konny0311/chat-space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/konny0311/chat-space/git/refs{/sha}","trees_url":"https://api.github.com/repos/konny0311/chat-space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/konny0311/chat-space/statuses/{sha}","languages_url":"https://api.github.com/repos/konny0311/chat-space/languages","stargazers_url":"https://api.github.com/repos/konny0311/chat-space/stargazers","contributors_url":"https://api.github.com/repos/konny0311/chat-space/contributors","subscribers_url":"https://api.github.com/repos/konny0311/chat-space/subscribers","subscription_url":"https://api.github.com/repos/konny0311/chat-space/subscription","commits_url":"https://api.github.com/repos/konny0311/chat-space/commits{/sha}","git_commits_url":"https://api.github.com/repos/konny0311/chat-space/git/commits{/sha}","comments_url":"https://api.github.com/repos/konny0311/chat-space/comments{/number}","issue_comment_url":"https://api.github.com/repos/konny0311/chat-space/issues/comments{/number}","contents_url":"https://api.github.com/repos/konny0311/chat-space/contents/{+path}","compare_url":"https://api.github.com/repos/konny0311/chat-space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/konny0311/chat-space/merges","archive_url":"https://api.github.com/repos/konny0311/chat-space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/konny0311/chat-space/downloads","issues_url":"https://api.github.com/repos/konny0311/chat-space/issues{/number}","pulls_url":"https://api.github.com/repos/konny0311/chat-space/pulls{/number}","milestones_url":"https://api.github.com/repos/konny0311/chat-space/milestones{/number}","notifications_url":"https://api.github.com/repos/konny0311/chat-space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/konny0311/chat-space/labels{/name}","releases_url":"https://api.github.com/repos/konny0311/chat-space/releases{/id}","deployments_url":"https://api.github.com/repos/konny0311/chat-space/deployments","created_at":"2018-02-12T08:26:48Z","updated_at":"2018-02-12T08:26:57Z","pushed_at":"2018-03-03T06:22:19Z","git_url":"git://github.com/konny0311/chat-space.git","ssh_url":"git@github.com:konny0311/chat-space.git","clone_url":"https://github.com/konny0311/chat-space.git","svn_url":"https://github.com/konny0311/chat-space","homepage":null,"size":511,"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":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"konny0311:master","ref":"master","sha":"47618b165f9b3c4cc31f9e679b6813d6b1f88f48","user":{"login":"konny0311","id":34429021,"avatar_url":"https://avatars2.githubusercontent.com/u/34429021?v=4","gravatar_id":"","url":"https://api.github.com/users/konny0311","html_url":"https://github.com/konny0311","followers_url":"https://api.github.com/users/konny0311/followers","following_url":"https://api.github.com/users/konny0311/following{/other_user}","gists_url":"https://api.github.com/users/konny0311/gists{/gist_id}","starred_url":"https://api.github.com/users/konny0311/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/konny0311/subscriptions","organizations_url":"https://api.github.com/users/konny0311/orgs","repos_url":"https://api.github.com/users/konny0311/repos","events_url":"https://api.github.com/users/konny0311/events{/privacy}","received_events_url":"https://api.github.com/users/konny0311/received_events","type":"User","site_admin":false},"repo":{"id":121219892,"name":"chat-space","full_name":"konny0311/chat-space","owner":{"login":"konny0311","id":34429021,"avatar_url":"https://avatars2.githubusercontent.com/u/34429021?v=4","gravatar_id":"","url":"https://api.github.com/users/konny0311","html_url":"https://github.com/konny0311","followers_url":"https://api.github.com/users/konny0311/followers","following_url":"https://api.github.com/users/konny0311/following{/other_user}","gists_url":"https://api.github.com/users/konny0311/gists{/gist_id}","starred_url":"https://api.github.com/users/konny0311/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/konny0311/subscriptions","organizations_url":"https://api.github.com/users/konny0311/orgs","repos_url":"https://api.github.com/users/konny0311/repos","events_url":"https://api.github.com/users/konny0311/events{/privacy}","received_events_url":"https://api.github.com/users/konny0311/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/konny0311/chat-space","description":null,"fork":false,"url":"https://api.github.com/repos/konny0311/chat-space","forks_url":"https://api.github.com/repos/konny0311/chat-space/forks","keys_url":"https://api.github.com/repos/konny0311/chat-space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/konny0311/chat-space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/konny0311/chat-space/teams","hooks_url":"https://api.github.com/repos/konny0311/chat-space/hooks","issue_events_url":"https://api.github.com/repos/konny0311/chat-space/issues/events{/number}","events_url":"https://api.github.com/repos/konny0311/chat-space/events","assignees_url":"https://api.github.com/repos/konny0311/chat-space/assignees{/user}","branches_url":"https://api.github.com/repos/konny0311/chat-space/branches{/branch}","tags_url":"https://api.github.com/repos/konny0311/chat-space/tags","blobs_url":"https://api.github.com/repos/konny0311/chat-space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/konny0311/chat-space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/konny0311/chat-space/git/refs{/sha}","trees_url":"https://api.github.com/repos/konny0311/chat-space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/konny0311/chat-space/statuses/{sha}","languages_url":"https://api.github.com/repos/konny0311/chat-space/languages","stargazers_url":"https://api.github.com/repos/konny0311/chat-space/stargazers","contributors_url":"https://api.github.com/repos/konny0311/chat-space/contributors","subscribers_url":"https://api.github.com/repos/konny0311/chat-space/subscribers","subscription_url":"https://api.github.com/repos/konny0311/chat-space/subscription","commits_url":"https://api.github.com/repos/konny0311/chat-space/commits{/sha}","git_commits_url":"https://api.github.com/repos/konny0311/chat-space/git/commits{/sha}","comments_url":"https://api.github.com/repos/konny0311/chat-space/comments{/number}","issue_comment_url":"https://api.github.com/repos/konny0311/chat-space/issues/comments{/number}","contents_url":"https://api.github.com/repos/konny0311/chat-space/contents/{+path}","compare_url":"https://api.github.com/repos/konny0311/chat-space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/konny0311/chat-space/merges","archive_url":"https://api.github.com/repos/konny0311/chat-space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/konny0311/chat-space/downloads","issues_url":"https://api.github.com/repos/konny0311/chat-space/issues{/number}","pulls_url":"https://api.github.com/repos/konny0311/chat-space/pulls{/number}","milestones_url":"https://api.github.com/repos/konny0311/chat-space/milestones{/number}","notifications_url":"https://api.github.com/repos/konny0311/chat-space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/konny0311/chat-space/labels{/name}","releases_url":"https://api.github.com/repos/konny0311/chat-space/releases{/id}","deployments_url":"https://api.github.com/repos/konny0311/chat-space/deployments","created_at":"2018-02-12T08:26:48Z","updated_at":"2018-02-12T08:26:57Z","pushed_at":"2018-03-03T06:22:19Z","git_url":"git://github.com/konny0311/chat-space.git","ssh_url":"git@github.com:konny0311/chat-space.git","clone_url":"https://github.com/konny0311/chat-space.git","svn_url":"https://github.com/konny0311/chat-space","homepage":null,"size":511,"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":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/konny0311/chat-space/pulls/13"},"html":{"href":"https://github.com/konny0311/chat-space/pull/13"},"issue":{"href":"https://api.github.com/repos/konny0311/chat-space/issues/13"},"comments":{"href":"https://api.github.com/repos/konny0311/chat-space/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/konny0311/chat-space/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/konny0311/chat-space/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/konny0311/chat-space/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/konny0311/chat-space/statuses/120db6fa2070693dada106775f7c5343803ffae0"}},"author_association":"OWNER"}}
{"actor":{"display_login":"konny0311"}}