{"action":"created","comment":{"url":"https://api.github.com/repos/sobameshi0901/chat-space/pulls/comments/176908412","pull_request_review_id":106698168,"id":176908412,"diff_hunk":"@@ -21,6 +20,40 @@ $(function(){\n     return html;\n   }\n \n+\n+  function autoUpdate(){\n+    var href = window.location.href\n+    var last_message = $('.chatBox').last().attr('data-message-id');\n+    console.log(last_message);\n+    $.ajax({\n+      url: href,\n+      type: \"GET\",\n+      data: {last_message_id: last_message},","path":"app/assets/javascripts/message.js","position":26,"original_position":26,"commit_id":"7789b892478c126bb24760f7f144b137cf2e4634","original_commit_id":"7789b892478c126bb24760f7f144b137cf2e4634","user":{"login":"takeru56","id":25771265,"avatar_url":"https://avatars3.githubusercontent.com/u/25771265?v=4","gravatar_id":"","url":"https://api.github.com/users/takeru56","html_url":"https://github.com/takeru56","followers_url":"https://api.github.com/users/takeru56/followers","following_url":"https://api.github.com/users/takeru56/following{/other_user}","gists_url":"https://api.github.com/users/takeru56/gists{/gist_id}","starred_url":"https://api.github.com/users/takeru56/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takeru56/subscriptions","organizations_url":"https://api.github.com/users/takeru56/orgs","repos_url":"https://api.github.com/users/takeru56/repos","events_url":"https://api.github.com/users/takeru56/events{/privacy}","received_events_url":"https://api.github.com/users/takeru56/received_events","type":"User","site_admin":false},"body":"こちらも変数名の修正をお願いします！","created_at":"2018-03-24T12:52:20Z","updated_at":"2018-03-24T12:57:38Z","html_url":"https://github.com/sobameshi0901/chat-space/pull/10#discussion_r176908412","pull_request_url":"https://api.github.com/repos/sobameshi0901/chat-space/pulls/10","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/sobameshi0901/chat-space/pulls/comments/176908412"},"html":{"href":"https://github.com/sobameshi0901/chat-space/pull/10#discussion_r176908412"},"pull_request":{"href":"https://api.github.com/repos/sobameshi0901/chat-space/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/sobameshi0901/chat-space/pulls/10","id":177235350,"html_url":"https://github.com/sobameshi0901/chat-space/pull/10","diff_url":"https://github.com/sobameshi0901/chat-space/pull/10.diff","patch_url":"https://github.com/sobameshi0901/chat-space/pull/10.patch","issue_url":"https://api.github.com/repos/sobameshi0901/chat-space/issues/10","number":10,"state":"open","locked":false,"title":"Add-auto-updata-function","user":{"login":"sobameshi0901","id":24984720,"avatar_url":"https://avatars0.githubusercontent.com/u/24984720?v=4","gravatar_id":"","url":"https://api.github.com/users/sobameshi0901","html_url":"https://github.com/sobameshi0901","followers_url":"https://api.github.com/users/sobameshi0901/followers","following_url":"https://api.github.com/users/sobameshi0901/following{/other_user}","gists_url":"https://api.github.com/users/sobameshi0901/gists{/gist_id}","starred_url":"https://api.github.com/users/sobameshi0901/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sobameshi0901/subscriptions","organizations_url":"https://api.github.com/users/sobameshi0901/orgs","repos_url":"https://api.github.com/users/sobameshi0901/repos","events_url":"https://api.github.com/users/sobameshi0901/events{/privacy}","received_events_url":"https://api.github.com/users/sobameshi0901/received_events","type":"User","site_admin":false},"body":"## WHAT\r\n自動更新機能の実装\r\n\r\n## WHY\r\nグループチャットに必須の機能であるため","created_at":"2018-03-24T12:38:37Z","updated_at":"2018-03-24T12:57:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b7943c29ab4786f61193955dba11aee0345a255c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/sobameshi0901/chat-space/pulls/10/commits","review_comments_url":"https://api.github.com/repos/sobameshi0901/chat-space/pulls/10/comments","review_comment_url":"https://api.github.com/repos/sobameshi0901/chat-space/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sobameshi0901/chat-space/issues/10/comments","statuses_url":"https://api.github.com/repos/sobameshi0901/chat-space/statuses/7789b892478c126bb24760f7f144b137cf2e4634","head":{"label":"sobameshi0901:Add-auto-update-function","ref":"Add-auto-update-function","sha":"7789b892478c126bb24760f7f144b137cf2e4634","user":{"login":"sobameshi0901","id":24984720,"avatar_url":"https://avatars0.githubusercontent.com/u/24984720?v=4","gravatar_id":"","url":"https://api.github.com/users/sobameshi0901","html_url":"https://github.com/sobameshi0901","followers_url":"https://api.github.com/users/sobameshi0901/followers","following_url":"https://api.github.com/users/sobameshi0901/following{/other_user}","gists_url":"https://api.github.com/users/sobameshi0901/gists{/gist_id}","starred_url":"https://api.github.com/users/sobameshi0901/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sobameshi0901/subscriptions","organizations_url":"https://api.github.com/users/sobameshi0901/orgs","repos_url":"https://api.github.com/users/sobameshi0901/repos","events_url":"https://api.github.com/users/sobameshi0901/events{/privacy}","received_events_url":"https://api.github.com/users/sobameshi0901/received_events","type":"User","site_admin":false},"repo":{"id":123552535,"name":"chat-space","full_name":"sobameshi0901/chat-space","owner":{"login":"sobameshi0901","id":24984720,"avatar_url":"https://avatars0.githubusercontent.com/u/24984720?v=4","gravatar_id":"","url":"https://api.github.com/users/sobameshi0901","html_url":"https://github.com/sobameshi0901","followers_url":"https://api.github.com/users/sobameshi0901/followers","following_url":"https://api.github.com/users/sobameshi0901/following{/other_user}","gists_url":"https://api.github.com/users/sobameshi0901/gists{/gist_id}","starred_url":"https://api.github.com/users/sobameshi0901/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sobameshi0901/subscriptions","organizations_url":"https://api.github.com/users/sobameshi0901/orgs","repos_url":"https://api.github.com/users/sobameshi0901/repos","events_url":"https://api.github.com/users/sobameshi0901/events{/privacy}","received_events_url":"https://api.github.com/users/sobameshi0901/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sobameshi0901/chat-space","description":null,"fork":false,"url":"https://api.github.com/repos/sobameshi0901/chat-space","forks_url":"https://api.github.com/repos/sobameshi0901/chat-space/forks","keys_url":"https://api.github.com/repos/sobameshi0901/chat-space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sobameshi0901/chat-space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sobameshi0901/chat-space/teams","hooks_url":"https://api.github.com/repos/sobameshi0901/chat-space/hooks","issue_events_url":"https://api.github.com/repos/sobameshi0901/chat-space/issues/events{/number}","events_url":"https://api.github.com/repos/sobameshi0901/chat-space/events","assignees_url":"https://api.github.com/repos/sobameshi0901/chat-space/assignees{/user}","branches_url":"https://api.github.com/repos/sobameshi0901/chat-space/branches{/branch}","tags_url":"https://api.github.com/repos/sobameshi0901/chat-space/tags","blobs_url":"https://api.github.com/repos/sobameshi0901/chat-space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sobameshi0901/chat-space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sobameshi0901/chat-space/git/refs{/sha}","trees_url":"https://api.github.com/repos/sobameshi0901/chat-space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sobameshi0901/chat-space/statuses/{sha}","languages_url":"https://api.github.com/repos/sobameshi0901/chat-space/languages","stargazers_url":"https://api.github.com/repos/sobameshi0901/chat-space/stargazers","contributors_url":"https://api.github.com/repos/sobameshi0901/chat-space/contributors","subscribers_url":"https://api.github.com/repos/sobameshi0901/chat-space/subscribers","subscription_url":"https://api.github.com/repos/sobameshi0901/chat-space/subscription","commits_url":"https://api.github.com/repos/sobameshi0901/chat-space/commits{/sha}","git_commits_url":"https://api.github.com/repos/sobameshi0901/chat-space/git/commits{/sha}","comments_url":"https://api.github.com/repos/sobameshi0901/chat-space/comments{/number}","issue_comment_url":"https://api.github.com/repos/sobameshi0901/chat-space/issues/comments{/number}","contents_url":"https://api.github.com/repos/sobameshi0901/chat-space/contents/{+path}","compare_url":"https://api.github.com/repos/sobameshi0901/chat-space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sobameshi0901/chat-space/merges","archive_url":"https://api.github.com/repos/sobameshi0901/chat-space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sobameshi0901/chat-space/downloads","issues_url":"https://api.github.com/repos/sobameshi0901/chat-space/issues{/number}","pulls_url":"https://api.github.com/repos/sobameshi0901/chat-space/pulls{/number}","milestones_url":"https://api.github.com/repos/sobameshi0901/chat-space/milestones{/number}","notifications_url":"https://api.github.com/repos/sobameshi0901/chat-space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sobameshi0901/chat-space/labels{/name}","releases_url":"https://api.github.com/repos/sobameshi0901/chat-space/releases{/id}","deployments_url":"https://api.github.com/repos/sobameshi0901/chat-space/deployments","created_at":"2018-03-02T08:29:41Z","updated_at":"2018-03-23T06:35:07Z","pushed_at":"2018-03-24T12:38:37Z","git_url":"git://github.com/sobameshi0901/chat-space.git","ssh_url":"git@github.com:sobameshi0901/chat-space.git","clone_url":"https://github.com/sobameshi0901/chat-space.git","svn_url":"https://github.com/sobameshi0901/chat-space","homepage":null,"size":148,"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":"sobameshi0901:master","ref":"master","sha":"25c4029dc22c79e2f2dc36fe259bd54892b5e716","user":{"login":"sobameshi0901","id":24984720,"avatar_url":"https://avatars0.githubusercontent.com/u/24984720?v=4","gravatar_id":"","url":"https://api.github.com/users/sobameshi0901","html_url":"https://github.com/sobameshi0901","followers_url":"https://api.github.com/users/sobameshi0901/followers","following_url":"https://api.github.com/users/sobameshi0901/following{/other_user}","gists_url":"https://api.github.com/users/sobameshi0901/gists{/gist_id}","starred_url":"https://api.github.com/users/sobameshi0901/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sobameshi0901/subscriptions","organizations_url":"https://api.github.com/users/sobameshi0901/orgs","repos_url":"https://api.github.com/users/sobameshi0901/repos","events_url":"https://api.github.com/users/sobameshi0901/events{/privacy}","received_events_url":"https://api.github.com/users/sobameshi0901/received_events","type":"User","site_admin":false},"repo":{"id":123552535,"name":"chat-space","full_name":"sobameshi0901/chat-space","owner":{"login":"sobameshi0901","id":24984720,"avatar_url":"https://avatars0.githubusercontent.com/u/24984720?v=4","gravatar_id":"","url":"https://api.github.com/users/sobameshi0901","html_url":"https://github.com/sobameshi0901","followers_url":"https://api.github.com/users/sobameshi0901/followers","following_url":"https://api.github.com/users/sobameshi0901/following{/other_user}","gists_url":"https://api.github.com/users/sobameshi0901/gists{/gist_id}","starred_url":"https://api.github.com/users/sobameshi0901/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sobameshi0901/subscriptions","organizations_url":"https://api.github.com/users/sobameshi0901/orgs","repos_url":"https://api.github.com/users/sobameshi0901/repos","events_url":"https://api.github.com/users/sobameshi0901/events{/privacy}","received_events_url":"https://api.github.com/users/sobameshi0901/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sobameshi0901/chat-space","description":null,"fork":false,"url":"https://api.github.com/repos/sobameshi0901/chat-space","forks_url":"https://api.github.com/repos/sobameshi0901/chat-space/forks","keys_url":"https://api.github.com/repos/sobameshi0901/chat-space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sobameshi0901/chat-space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sobameshi0901/chat-space/teams","hooks_url":"https://api.github.com/repos/sobameshi0901/chat-space/hooks","issue_events_url":"https://api.github.com/repos/sobameshi0901/chat-space/issues/events{/number}","events_url":"https://api.github.com/repos/sobameshi0901/chat-space/events","assignees_url":"https://api.github.com/repos/sobameshi0901/chat-space/assignees{/user}","branches_url":"https://api.github.com/repos/sobameshi0901/chat-space/branches{/branch}","tags_url":"https://api.github.com/repos/sobameshi0901/chat-space/tags","blobs_url":"https://api.github.com/repos/sobameshi0901/chat-space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sobameshi0901/chat-space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sobameshi0901/chat-space/git/refs{/sha}","trees_url":"https://api.github.com/repos/sobameshi0901/chat-space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sobameshi0901/chat-space/statuses/{sha}","languages_url":"https://api.github.com/repos/sobameshi0901/chat-space/languages","stargazers_url":"https://api.github.com/repos/sobameshi0901/chat-space/stargazers","contributors_url":"https://api.github.com/repos/sobameshi0901/chat-space/contributors","subscribers_url":"https://api.github.com/repos/sobameshi0901/chat-space/subscribers","subscription_url":"https://api.github.com/repos/sobameshi0901/chat-space/subscription","commits_url":"https://api.github.com/repos/sobameshi0901/chat-space/commits{/sha}","git_commits_url":"https://api.github.com/repos/sobameshi0901/chat-space/git/commits{/sha}","comments_url":"https://api.github.com/repos/sobameshi0901/chat-space/comments{/number}","issue_comment_url":"https://api.github.com/repos/sobameshi0901/chat-space/issues/comments{/number}","contents_url":"https://api.github.com/repos/sobameshi0901/chat-space/contents/{+path}","compare_url":"https://api.github.com/repos/sobameshi0901/chat-space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sobameshi0901/chat-space/merges","archive_url":"https://api.github.com/repos/sobameshi0901/chat-space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sobameshi0901/chat-space/downloads","issues_url":"https://api.github.com/repos/sobameshi0901/chat-space/issues{/number}","pulls_url":"https://api.github.com/repos/sobameshi0901/chat-space/pulls{/number}","milestones_url":"https://api.github.com/repos/sobameshi0901/chat-space/milestones{/number}","notifications_url":"https://api.github.com/repos/sobameshi0901/chat-space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sobameshi0901/chat-space/labels{/name}","releases_url":"https://api.github.com/repos/sobameshi0901/chat-space/releases{/id}","deployments_url":"https://api.github.com/repos/sobameshi0901/chat-space/deployments","created_at":"2018-03-02T08:29:41Z","updated_at":"2018-03-23T06:35:07Z","pushed_at":"2018-03-24T12:38:37Z","git_url":"git://github.com/sobameshi0901/chat-space.git","ssh_url":"git@github.com:sobameshi0901/chat-space.git","clone_url":"https://github.com/sobameshi0901/chat-space.git","svn_url":"https://github.com/sobameshi0901/chat-space","homepage":null,"size":148,"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/sobameshi0901/chat-space/pulls/10"},"html":{"href":"https://github.com/sobameshi0901/chat-space/pull/10"},"issue":{"href":"https://api.github.com/repos/sobameshi0901/chat-space/issues/10"},"comments":{"href":"https://api.github.com/repos/sobameshi0901/chat-space/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/sobameshi0901/chat-space/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/sobameshi0901/chat-space/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sobameshi0901/chat-space/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/sobameshi0901/chat-space/statuses/7789b892478c126bb24760f7f144b137cf2e4634"}},"author_association":"OWNER"}}
{"actor":{"display_login":"takeru56"}}