{"action":"created","comment":{"url":"https://api.github.com/repos/shoma11/chat-space/pulls/comments/227701865","pull_request_review_id":167801255,"id":227701865,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNzcwMTg2NQ==","diff_hunk":"@@ -40,6 +40,38 @@ $(function(){\n     })\n     .fail(function(data){\n       alert('入力してください');\n+      $(\".form__submit\").attr(\"disabled\",false);\n     })\n   })\n+  // 自動更新機能\n+  $(function(){\n+  setInterval(autoUpdate, 3000);\n+  });\n+  function autoUpdate() {\n+    var url = window.location.href;\n+    if (url.match(/\\/groups\\/\\d+\\/messages/)) {\n+      var message_id = $('.message').last().data('message-id');","path":"app/assets/javascripts/message.js","position":14,"original_position":14,"commit_id":"d9e2e8d638cd8c5bee9276e7a109ff69e4f135ba","original_commit_id":"d9e2e8d638cd8c5bee9276e7a109ff69e4f135ba","user":{"login":"ReoKuriyama","id":23122015,"node_id":"MDQ6VXNlcjIzMTIyMDE1","avatar_url":"https://avatars2.githubusercontent.com/u/23122015?v=4","gravatar_id":"","url":"https://api.github.com/users/ReoKuriyama","html_url":"https://github.com/ReoKuriyama","followers_url":"https://api.github.com/users/ReoKuriyama/followers","following_url":"https://api.github.com/users/ReoKuriyama/following{/other_user}","gists_url":"https://api.github.com/users/ReoKuriyama/gists{/gist_id}","starred_url":"https://api.github.com/users/ReoKuriyama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ReoKuriyama/subscriptions","organizations_url":"https://api.github.com/users/ReoKuriyama/orgs","repos_url":"https://api.github.com/users/ReoKuriyama/repos","events_url":"https://api.github.com/users/ReoKuriyama/events{/privacy}","received_events_url":"https://api.github.com/users/ReoKuriyama/received_events","type":"User","site_admin":false},"body":"自動更新によって挿入されるhtmlは`_message.html.haml`の中には存在せず、buildHTMLによって付け足されるものかと思いますので、その中にidを含める必要があるはずです。\r\n` $('.messages').append(html);`ここで作られるhtmlです","created_at":"2018-10-24T09:05:17Z","updated_at":"2018-10-24T09:05:17Z","html_url":"https://github.com/shoma11/chat-space/pull/10#discussion_r227701865","pull_request_url":"https://api.github.com/repos/shoma11/chat-space/pulls/10","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/shoma11/chat-space/pulls/comments/227701865"},"html":{"href":"https://github.com/shoma11/chat-space/pull/10#discussion_r227701865"},"pull_request":{"href":"https://api.github.com/repos/shoma11/chat-space/pulls/10"}},"in_reply_to_id":227691302},"pull_request":{"url":"https://api.github.com/repos/shoma11/chat-space/pulls/10","id":225309868,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI1MzA5ODY4","html_url":"https://github.com/shoma11/chat-space/pull/10","diff_url":"https://github.com/shoma11/chat-space/pull/10.diff","patch_url":"https://github.com/shoma11/chat-space/pull/10.patch","issue_url":"https://api.github.com/repos/shoma11/chat-space/issues/10","number":10,"state":"open","locked":false,"title":"自動更新機能の実装","user":{"login":"shoma11","id":43050183,"node_id":"MDQ6VXNlcjQzMDUwMTgz","avatar_url":"https://avatars0.githubusercontent.com/u/43050183?v=4","gravatar_id":"","url":"https://api.github.com/users/shoma11","html_url":"https://github.com/shoma11","followers_url":"https://api.github.com/users/shoma11/followers","following_url":"https://api.github.com/users/shoma11/following{/other_user}","gists_url":"https://api.github.com/users/shoma11/gists{/gist_id}","starred_url":"https://api.github.com/users/shoma11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shoma11/subscriptions","organizations_url":"https://api.github.com/users/shoma11/orgs","repos_url":"https://api.github.com/users/shoma11/repos","events_url":"https://api.github.com/users/shoma11/events{/privacy}","received_events_url":"https://api.github.com/users/shoma11/received_events","type":"User","site_admin":false},"body":"＃WHAT\n自動更新機能の実装\n\n＃WHY\nサービスに必須の機能であるから","created_at":"2018-10-24T08:30:28Z","updated_at":"2018-10-24T09:05:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1651a5f2caecac08f3cd4d9b0184fdda705d4636","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/shoma11/chat-space/pulls/10/commits","review_comments_url":"https://api.github.com/repos/shoma11/chat-space/pulls/10/comments","review_comment_url":"https://api.github.com/repos/shoma11/chat-space/pulls/comments{/number}","comments_url":"https://api.github.com/repos/shoma11/chat-space/issues/10/comments","statuses_url":"https://api.github.com/repos/shoma11/chat-space/statuses/d9e2e8d638cd8c5bee9276e7a109ff69e4f135ba","head":{"label":"shoma11:Auto-update-function","ref":"Auto-update-function","sha":"d9e2e8d638cd8c5bee9276e7a109ff69e4f135ba","user":{"login":"shoma11","id":43050183,"node_id":"MDQ6VXNlcjQzMDUwMTgz","avatar_url":"https://avatars0.githubusercontent.com/u/43050183?v=4","gravatar_id":"","url":"https://api.github.com/users/shoma11","html_url":"https://github.com/shoma11","followers_url":"https://api.github.com/users/shoma11/followers","following_url":"https://api.github.com/users/shoma11/following{/other_user}","gists_url":"https://api.github.com/users/shoma11/gists{/gist_id}","starred_url":"https://api.github.com/users/shoma11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shoma11/subscriptions","organizations_url":"https://api.github.com/users/shoma11/orgs","repos_url":"https://api.github.com/users/shoma11/repos","events_url":"https://api.github.com/users/shoma11/events{/privacy}","received_events_url":"https://api.github.com/users/shoma11/received_events","type":"User","site_admin":false},"repo":{"id":150473953,"node_id":"MDEwOlJlcG9zaXRvcnkxNTA0NzM5NTM=","name":"chat-space","full_name":"shoma11/chat-space","private":false,"owner":{"login":"shoma11","id":43050183,"node_id":"MDQ6VXNlcjQzMDUwMTgz","avatar_url":"https://avatars0.githubusercontent.com/u/43050183?v=4","gravatar_id":"","url":"https://api.github.com/users/shoma11","html_url":"https://github.com/shoma11","followers_url":"https://api.github.com/users/shoma11/followers","following_url":"https://api.github.com/users/shoma11/following{/other_user}","gists_url":"https://api.github.com/users/shoma11/gists{/gist_id}","starred_url":"https://api.github.com/users/shoma11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shoma11/subscriptions","organizations_url":"https://api.github.com/users/shoma11/orgs","repos_url":"https://api.github.com/users/shoma11/repos","events_url":"https://api.github.com/users/shoma11/events{/privacy}","received_events_url":"https://api.github.com/users/shoma11/received_events","type":"User","site_admin":false},"html_url":"https://github.com/shoma11/chat-space","description":null,"fork":false,"url":"https://api.github.com/repos/shoma11/chat-space","forks_url":"https://api.github.com/repos/shoma11/chat-space/forks","keys_url":"https://api.github.com/repos/shoma11/chat-space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shoma11/chat-space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shoma11/chat-space/teams","hooks_url":"https://api.github.com/repos/shoma11/chat-space/hooks","issue_events_url":"https://api.github.com/repos/shoma11/chat-space/issues/events{/number}","events_url":"https://api.github.com/repos/shoma11/chat-space/events","assignees_url":"https://api.github.com/repos/shoma11/chat-space/assignees{/user}","branches_url":"https://api.github.com/repos/shoma11/chat-space/branches{/branch}","tags_url":"https://api.github.com/repos/shoma11/chat-space/tags","blobs_url":"https://api.github.com/repos/shoma11/chat-space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shoma11/chat-space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shoma11/chat-space/git/refs{/sha}","trees_url":"https://api.github.com/repos/shoma11/chat-space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shoma11/chat-space/statuses/{sha}","languages_url":"https://api.github.com/repos/shoma11/chat-space/languages","stargazers_url":"https://api.github.com/repos/shoma11/chat-space/stargazers","contributors_url":"https://api.github.com/repos/shoma11/chat-space/contributors","subscribers_url":"https://api.github.com/repos/shoma11/chat-space/subscribers","subscription_url":"https://api.github.com/repos/shoma11/chat-space/subscription","commits_url":"https://api.github.com/repos/shoma11/chat-space/commits{/sha}","git_commits_url":"https://api.github.com/repos/shoma11/chat-space/git/commits{/sha}","comments_url":"https://api.github.com/repos/shoma11/chat-space/comments{/number}","issue_comment_url":"https://api.github.com/repos/shoma11/chat-space/issues/comments{/number}","contents_url":"https://api.github.com/repos/shoma11/chat-space/contents/{+path}","compare_url":"https://api.github.com/repos/shoma11/chat-space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shoma11/chat-space/merges","archive_url":"https://api.github.com/repos/shoma11/chat-space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shoma11/chat-space/downloads","issues_url":"https://api.github.com/repos/shoma11/chat-space/issues{/number}","pulls_url":"https://api.github.com/repos/shoma11/chat-space/pulls{/number}","milestones_url":"https://api.github.com/repos/shoma11/chat-space/milestones{/number}","notifications_url":"https://api.github.com/repos/shoma11/chat-space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shoma11/chat-space/labels{/name}","releases_url":"https://api.github.com/repos/shoma11/chat-space/releases{/id}","deployments_url":"https://api.github.com/repos/shoma11/chat-space/deployments","created_at":"2018-09-26T18:44:51Z","updated_at":"2018-10-21T08:30:34Z","pushed_at":"2018-10-24T08:30:28Z","git_url":"git://github.com/shoma11/chat-space.git","ssh_url":"git@github.com:shoma11/chat-space.git","clone_url":"https://github.com/shoma11/chat-space.git","svn_url":"https://github.com/shoma11/chat-space","homepage":null,"size":246,"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":"shoma11:master","ref":"master","sha":"132596a118e3d3fe57af69e164075ebafcf63968","user":{"login":"shoma11","id":43050183,"node_id":"MDQ6VXNlcjQzMDUwMTgz","avatar_url":"https://avatars0.githubusercontent.com/u/43050183?v=4","gravatar_id":"","url":"https://api.github.com/users/shoma11","html_url":"https://github.com/shoma11","followers_url":"https://api.github.com/users/shoma11/followers","following_url":"https://api.github.com/users/shoma11/following{/other_user}","gists_url":"https://api.github.com/users/shoma11/gists{/gist_id}","starred_url":"https://api.github.com/users/shoma11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shoma11/subscriptions","organizations_url":"https://api.github.com/users/shoma11/orgs","repos_url":"https://api.github.com/users/shoma11/repos","events_url":"https://api.github.com/users/shoma11/events{/privacy}","received_events_url":"https://api.github.com/users/shoma11/received_events","type":"User","site_admin":false},"repo":{"id":150473953,"node_id":"MDEwOlJlcG9zaXRvcnkxNTA0NzM5NTM=","name":"chat-space","full_name":"shoma11/chat-space","private":false,"owner":{"login":"shoma11","id":43050183,"node_id":"MDQ6VXNlcjQzMDUwMTgz","avatar_url":"https://avatars0.githubusercontent.com/u/43050183?v=4","gravatar_id":"","url":"https://api.github.com/users/shoma11","html_url":"https://github.com/shoma11","followers_url":"https://api.github.com/users/shoma11/followers","following_url":"https://api.github.com/users/shoma11/following{/other_user}","gists_url":"https://api.github.com/users/shoma11/gists{/gist_id}","starred_url":"https://api.github.com/users/shoma11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shoma11/subscriptions","organizations_url":"https://api.github.com/users/shoma11/orgs","repos_url":"https://api.github.com/users/shoma11/repos","events_url":"https://api.github.com/users/shoma11/events{/privacy}","received_events_url":"https://api.github.com/users/shoma11/received_events","type":"User","site_admin":false},"html_url":"https://github.com/shoma11/chat-space","description":null,"fork":false,"url":"https://api.github.com/repos/shoma11/chat-space","forks_url":"https://api.github.com/repos/shoma11/chat-space/forks","keys_url":"https://api.github.com/repos/shoma11/chat-space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shoma11/chat-space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shoma11/chat-space/teams","hooks_url":"https://api.github.com/repos/shoma11/chat-space/hooks","issue_events_url":"https://api.github.com/repos/shoma11/chat-space/issues/events{/number}","events_url":"https://api.github.com/repos/shoma11/chat-space/events","assignees_url":"https://api.github.com/repos/shoma11/chat-space/assignees{/user}","branches_url":"https://api.github.com/repos/shoma11/chat-space/branches{/branch}","tags_url":"https://api.github.com/repos/shoma11/chat-space/tags","blobs_url":"https://api.github.com/repos/shoma11/chat-space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shoma11/chat-space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shoma11/chat-space/git/refs{/sha}","trees_url":"https://api.github.com/repos/shoma11/chat-space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shoma11/chat-space/statuses/{sha}","languages_url":"https://api.github.com/repos/shoma11/chat-space/languages","stargazers_url":"https://api.github.com/repos/shoma11/chat-space/stargazers","contributors_url":"https://api.github.com/repos/shoma11/chat-space/contributors","subscribers_url":"https://api.github.com/repos/shoma11/chat-space/subscribers","subscription_url":"https://api.github.com/repos/shoma11/chat-space/subscription","commits_url":"https://api.github.com/repos/shoma11/chat-space/commits{/sha}","git_commits_url":"https://api.github.com/repos/shoma11/chat-space/git/commits{/sha}","comments_url":"https://api.github.com/repos/shoma11/chat-space/comments{/number}","issue_comment_url":"https://api.github.com/repos/shoma11/chat-space/issues/comments{/number}","contents_url":"https://api.github.com/repos/shoma11/chat-space/contents/{+path}","compare_url":"https://api.github.com/repos/shoma11/chat-space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shoma11/chat-space/merges","archive_url":"https://api.github.com/repos/shoma11/chat-space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shoma11/chat-space/downloads","issues_url":"https://api.github.com/repos/shoma11/chat-space/issues{/number}","pulls_url":"https://api.github.com/repos/shoma11/chat-space/pulls{/number}","milestones_url":"https://api.github.com/repos/shoma11/chat-space/milestones{/number}","notifications_url":"https://api.github.com/repos/shoma11/chat-space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shoma11/chat-space/labels{/name}","releases_url":"https://api.github.com/repos/shoma11/chat-space/releases{/id}","deployments_url":"https://api.github.com/repos/shoma11/chat-space/deployments","created_at":"2018-09-26T18:44:51Z","updated_at":"2018-10-21T08:30:34Z","pushed_at":"2018-10-24T08:30:28Z","git_url":"git://github.com/shoma11/chat-space.git","ssh_url":"git@github.com:shoma11/chat-space.git","clone_url":"https://github.com/shoma11/chat-space.git","svn_url":"https://github.com/shoma11/chat-space","homepage":null,"size":246,"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/shoma11/chat-space/pulls/10"},"html":{"href":"https://github.com/shoma11/chat-space/pull/10"},"issue":{"href":"https://api.github.com/repos/shoma11/chat-space/issues/10"},"comments":{"href":"https://api.github.com/repos/shoma11/chat-space/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/shoma11/chat-space/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/shoma11/chat-space/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/shoma11/chat-space/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/shoma11/chat-space/statuses/d9e2e8d638cd8c5bee9276e7a109ff69e4f135ba"}},"author_association":"OWNER"}}
{"actor":{"display_login":"ReoKuriyama"}}