{"action":"created","comment":{"url":"https://api.github.com/repos/tepepe61/ChatSpace/pulls/comments/196401707","pull_request_review_id":129944925,"id":196401707,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NjQwMTcwNw==","diff_hunk":"@@ -29,22 +29,46 @@ $(function(){\n       var formData = new FormData(this);\n       var url = $(this).attr('action')\n       $.ajax({\n-        url: url,\n-        type: \"post\",\n-        data: formData,\n-        dataType: 'json',\n-        processData: false,\n-        contentType: false,\n+        url:          url,\n+        type:         \"post\",\n+        data:         formData,\n+        dataType:     'json',\n+        processData:  false,\n+        contentType:  false,\n       })\n       .done(function(data){\n         var html = buildHTML(data);\n+        if (data.length !== 0){\n         $('.messages').append(html);\n         $('.form__submit').prop('disabled', false);\n         $('#new_message')[0].reset();\n         scroll();\n+        }\n        })\n       .fail(function(){\n        alert('error');\n      })\n     })\n+\n+  setInterval(function(){\n+    if (location.pathname.match(/\\/groups\\/\\d+\\/messages/)){\n+      var message_id = $('.chat').last().data('message-id');\n+      $.ajax({\n+        url:       location.href,\n+        data:      { id: message_id},","path":"app/assets/javascripts/message.js","position":45,"original_position":45,"commit_id":"e0a2128cfe3045118c5204914ad08e2d923efb45","original_commit_id":"e0a2128cfe3045118c5204914ad08e2d923efb45","user":{"login":"kouuuki","id":27132527,"node_id":"MDQ6VXNlcjI3MTMyNTI3","avatar_url":"https://avatars2.githubusercontent.com/u/27132527?v=4","gravatar_id":"","url":"https://api.github.com/users/kouuuki","html_url":"https://github.com/kouuuki","followers_url":"https://api.github.com/users/kouuuki/followers","following_url":"https://api.github.com/users/kouuuki/following{/other_user}","gists_url":"https://api.github.com/users/kouuuki/gists{/gist_id}","starred_url":"https://api.github.com/users/kouuuki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kouuuki/subscriptions","organizations_url":"https://api.github.com/users/kouuuki/orgs","repos_url":"https://api.github.com/users/kouuuki/repos","events_url":"https://api.github.com/users/kouuuki/events{/privacy}","received_events_url":"https://api.github.com/users/kouuuki/received_events","type":"User","site_admin":false},"body":"{ id: message_id}\r\n↓前後に空白を入れましょう！\r\n{ id: message_id }","created_at":"2018-06-19T12:28:36Z","updated_at":"2018-06-19T12:29:11Z","html_url":"https://github.com/tepepe61/ChatSpace/pull/10#discussion_r196401707","pull_request_url":"https://api.github.com/repos/tepepe61/ChatSpace/pulls/10","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/tepepe61/ChatSpace/pulls/comments/196401707"},"html":{"href":"https://github.com/tepepe61/ChatSpace/pull/10#discussion_r196401707"},"pull_request":{"href":"https://api.github.com/repos/tepepe61/ChatSpace/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/tepepe61/ChatSpace/pulls/10","id":195315929,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk1MzE1OTI5","html_url":"https://github.com/tepepe61/ChatSpace/pull/10","diff_url":"https://github.com/tepepe61/ChatSpace/pull/10.diff","patch_url":"https://github.com/tepepe61/ChatSpace/pull/10.patch","issue_url":"https://api.github.com/repos/tepepe61/ChatSpace/issues/10","number":10,"state":"open","locked":false,"title":"自動更新機能","user":{"login":"tepepe61","id":39428316,"node_id":"MDQ6VXNlcjM5NDI4MzE2","avatar_url":"https://avatars0.githubusercontent.com/u/39428316?v=4","gravatar_id":"","url":"https://api.github.com/users/tepepe61","html_url":"https://github.com/tepepe61","followers_url":"https://api.github.com/users/tepepe61/followers","following_url":"https://api.github.com/users/tepepe61/following{/other_user}","gists_url":"https://api.github.com/users/tepepe61/gists{/gist_id}","starred_url":"https://api.github.com/users/tepepe61/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tepepe61/subscriptions","organizations_url":"https://api.github.com/users/tepepe61/orgs","repos_url":"https://api.github.com/users/tepepe61/repos","events_url":"https://api.github.com/users/tepepe61/events{/privacy}","received_events_url":"https://api.github.com/users/tepepe61/received_events","type":"User","site_admin":false},"body":"[WHAT]\r\n自動更新機能の作成\r\n[WHY]\r\nサービスの要なため","created_at":"2018-06-16T03:59:33Z","updated_at":"2018-06-19T12:29:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a1f31a40b495c428107ab4285c6706a6b1f52fd3","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/tepepe61/ChatSpace/pulls/10/commits","review_comments_url":"https://api.github.com/repos/tepepe61/ChatSpace/pulls/10/comments","review_comment_url":"https://api.github.com/repos/tepepe61/ChatSpace/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tepepe61/ChatSpace/issues/10/comments","statuses_url":"https://api.github.com/repos/tepepe61/ChatSpace/statuses/e0a2128cfe3045118c5204914ad08e2d923efb45","head":{"label":"tepepe61:chatspace-AutomaticUpdates","ref":"chatspace-AutomaticUpdates","sha":"e0a2128cfe3045118c5204914ad08e2d923efb45","user":{"login":"tepepe61","id":39428316,"node_id":"MDQ6VXNlcjM5NDI4MzE2","avatar_url":"https://avatars0.githubusercontent.com/u/39428316?v=4","gravatar_id":"","url":"https://api.github.com/users/tepepe61","html_url":"https://github.com/tepepe61","followers_url":"https://api.github.com/users/tepepe61/followers","following_url":"https://api.github.com/users/tepepe61/following{/other_user}","gists_url":"https://api.github.com/users/tepepe61/gists{/gist_id}","starred_url":"https://api.github.com/users/tepepe61/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tepepe61/subscriptions","organizations_url":"https://api.github.com/users/tepepe61/orgs","repos_url":"https://api.github.com/users/tepepe61/repos","events_url":"https://api.github.com/users/tepepe61/events{/privacy}","received_events_url":"https://api.github.com/users/tepepe61/received_events","type":"User","site_admin":false},"repo":{"id":134212323,"node_id":"MDEwOlJlcG9zaXRvcnkxMzQyMTIzMjM=","name":"ChatSpace","full_name":"tepepe61/ChatSpace","owner":{"login":"tepepe61","id":39428316,"node_id":"MDQ6VXNlcjM5NDI4MzE2","avatar_url":"https://avatars0.githubusercontent.com/u/39428316?v=4","gravatar_id":"","url":"https://api.github.com/users/tepepe61","html_url":"https://github.com/tepepe61","followers_url":"https://api.github.com/users/tepepe61/followers","following_url":"https://api.github.com/users/tepepe61/following{/other_user}","gists_url":"https://api.github.com/users/tepepe61/gists{/gist_id}","starred_url":"https://api.github.com/users/tepepe61/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tepepe61/subscriptions","organizations_url":"https://api.github.com/users/tepepe61/orgs","repos_url":"https://api.github.com/users/tepepe61/repos","events_url":"https://api.github.com/users/tepepe61/events{/privacy}","received_events_url":"https://api.github.com/users/tepepe61/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tepepe61/ChatSpace","description":null,"fork":false,"url":"https://api.github.com/repos/tepepe61/ChatSpace","forks_url":"https://api.github.com/repos/tepepe61/ChatSpace/forks","keys_url":"https://api.github.com/repos/tepepe61/ChatSpace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tepepe61/ChatSpace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tepepe61/ChatSpace/teams","hooks_url":"https://api.github.com/repos/tepepe61/ChatSpace/hooks","issue_events_url":"https://api.github.com/repos/tepepe61/ChatSpace/issues/events{/number}","events_url":"https://api.github.com/repos/tepepe61/ChatSpace/events","assignees_url":"https://api.github.com/repos/tepepe61/ChatSpace/assignees{/user}","branches_url":"https://api.github.com/repos/tepepe61/ChatSpace/branches{/branch}","tags_url":"https://api.github.com/repos/tepepe61/ChatSpace/tags","blobs_url":"https://api.github.com/repos/tepepe61/ChatSpace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tepepe61/ChatSpace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tepepe61/ChatSpace/git/refs{/sha}","trees_url":"https://api.github.com/repos/tepepe61/ChatSpace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tepepe61/ChatSpace/statuses/{sha}","languages_url":"https://api.github.com/repos/tepepe61/ChatSpace/languages","stargazers_url":"https://api.github.com/repos/tepepe61/ChatSpace/stargazers","contributors_url":"https://api.github.com/repos/tepepe61/ChatSpace/contributors","subscribers_url":"https://api.github.com/repos/tepepe61/ChatSpace/subscribers","subscription_url":"https://api.github.com/repos/tepepe61/ChatSpace/subscription","commits_url":"https://api.github.com/repos/tepepe61/ChatSpace/commits{/sha}","git_commits_url":"https://api.github.com/repos/tepepe61/ChatSpace/git/commits{/sha}","comments_url":"https://api.github.com/repos/tepepe61/ChatSpace/comments{/number}","issue_comment_url":"https://api.github.com/repos/tepepe61/ChatSpace/issues/comments{/number}","contents_url":"https://api.github.com/repos/tepepe61/ChatSpace/contents/{+path}","compare_url":"https://api.github.com/repos/tepepe61/ChatSpace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tepepe61/ChatSpace/merges","archive_url":"https://api.github.com/repos/tepepe61/ChatSpace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tepepe61/ChatSpace/downloads","issues_url":"https://api.github.com/repos/tepepe61/ChatSpace/issues{/number}","pulls_url":"https://api.github.com/repos/tepepe61/ChatSpace/pulls{/number}","milestones_url":"https://api.github.com/repos/tepepe61/ChatSpace/milestones{/number}","notifications_url":"https://api.github.com/repos/tepepe61/ChatSpace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tepepe61/ChatSpace/labels{/name}","releases_url":"https://api.github.com/repos/tepepe61/ChatSpace/releases{/id}","deployments_url":"https://api.github.com/repos/tepepe61/ChatSpace/deployments","created_at":"2018-05-21T03:18:15Z","updated_at":"2018-06-14T08:41:52Z","pushed_at":"2018-06-19T12:04:03Z","git_url":"git://github.com/tepepe61/ChatSpace.git","ssh_url":"git@github.com:tepepe61/ChatSpace.git","clone_url":"https://github.com/tepepe61/ChatSpace.git","svn_url":"https://github.com/tepepe61/ChatSpace","homepage":null,"size":1354,"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":"tepepe61:master","ref":"master","sha":"9151c35de870211b7d09594127cce9486dde60b9","user":{"login":"tepepe61","id":39428316,"node_id":"MDQ6VXNlcjM5NDI4MzE2","avatar_url":"https://avatars0.githubusercontent.com/u/39428316?v=4","gravatar_id":"","url":"https://api.github.com/users/tepepe61","html_url":"https://github.com/tepepe61","followers_url":"https://api.github.com/users/tepepe61/followers","following_url":"https://api.github.com/users/tepepe61/following{/other_user}","gists_url":"https://api.github.com/users/tepepe61/gists{/gist_id}","starred_url":"https://api.github.com/users/tepepe61/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tepepe61/subscriptions","organizations_url":"https://api.github.com/users/tepepe61/orgs","repos_url":"https://api.github.com/users/tepepe61/repos","events_url":"https://api.github.com/users/tepepe61/events{/privacy}","received_events_url":"https://api.github.com/users/tepepe61/received_events","type":"User","site_admin":false},"repo":{"id":134212323,"node_id":"MDEwOlJlcG9zaXRvcnkxMzQyMTIzMjM=","name":"ChatSpace","full_name":"tepepe61/ChatSpace","owner":{"login":"tepepe61","id":39428316,"node_id":"MDQ6VXNlcjM5NDI4MzE2","avatar_url":"https://avatars0.githubusercontent.com/u/39428316?v=4","gravatar_id":"","url":"https://api.github.com/users/tepepe61","html_url":"https://github.com/tepepe61","followers_url":"https://api.github.com/users/tepepe61/followers","following_url":"https://api.github.com/users/tepepe61/following{/other_user}","gists_url":"https://api.github.com/users/tepepe61/gists{/gist_id}","starred_url":"https://api.github.com/users/tepepe61/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tepepe61/subscriptions","organizations_url":"https://api.github.com/users/tepepe61/orgs","repos_url":"https://api.github.com/users/tepepe61/repos","events_url":"https://api.github.com/users/tepepe61/events{/privacy}","received_events_url":"https://api.github.com/users/tepepe61/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tepepe61/ChatSpace","description":null,"fork":false,"url":"https://api.github.com/repos/tepepe61/ChatSpace","forks_url":"https://api.github.com/repos/tepepe61/ChatSpace/forks","keys_url":"https://api.github.com/repos/tepepe61/ChatSpace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tepepe61/ChatSpace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tepepe61/ChatSpace/teams","hooks_url":"https://api.github.com/repos/tepepe61/ChatSpace/hooks","issue_events_url":"https://api.github.com/repos/tepepe61/ChatSpace/issues/events{/number}","events_url":"https://api.github.com/repos/tepepe61/ChatSpace/events","assignees_url":"https://api.github.com/repos/tepepe61/ChatSpace/assignees{/user}","branches_url":"https://api.github.com/repos/tepepe61/ChatSpace/branches{/branch}","tags_url":"https://api.github.com/repos/tepepe61/ChatSpace/tags","blobs_url":"https://api.github.com/repos/tepepe61/ChatSpace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tepepe61/ChatSpace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tepepe61/ChatSpace/git/refs{/sha}","trees_url":"https://api.github.com/repos/tepepe61/ChatSpace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tepepe61/ChatSpace/statuses/{sha}","languages_url":"https://api.github.com/repos/tepepe61/ChatSpace/languages","stargazers_url":"https://api.github.com/repos/tepepe61/ChatSpace/stargazers","contributors_url":"https://api.github.com/repos/tepepe61/ChatSpace/contributors","subscribers_url":"https://api.github.com/repos/tepepe61/ChatSpace/subscribers","subscription_url":"https://api.github.com/repos/tepepe61/ChatSpace/subscription","commits_url":"https://api.github.com/repos/tepepe61/ChatSpace/commits{/sha}","git_commits_url":"https://api.github.com/repos/tepepe61/ChatSpace/git/commits{/sha}","comments_url":"https://api.github.com/repos/tepepe61/ChatSpace/comments{/number}","issue_comment_url":"https://api.github.com/repos/tepepe61/ChatSpace/issues/comments{/number}","contents_url":"https://api.github.com/repos/tepepe61/ChatSpace/contents/{+path}","compare_url":"https://api.github.com/repos/tepepe61/ChatSpace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tepepe61/ChatSpace/merges","archive_url":"https://api.github.com/repos/tepepe61/ChatSpace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tepepe61/ChatSpace/downloads","issues_url":"https://api.github.com/repos/tepepe61/ChatSpace/issues{/number}","pulls_url":"https://api.github.com/repos/tepepe61/ChatSpace/pulls{/number}","milestones_url":"https://api.github.com/repos/tepepe61/ChatSpace/milestones{/number}","notifications_url":"https://api.github.com/repos/tepepe61/ChatSpace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tepepe61/ChatSpace/labels{/name}","releases_url":"https://api.github.com/repos/tepepe61/ChatSpace/releases{/id}","deployments_url":"https://api.github.com/repos/tepepe61/ChatSpace/deployments","created_at":"2018-05-21T03:18:15Z","updated_at":"2018-06-14T08:41:52Z","pushed_at":"2018-06-19T12:04:03Z","git_url":"git://github.com/tepepe61/ChatSpace.git","ssh_url":"git@github.com:tepepe61/ChatSpace.git","clone_url":"https://github.com/tepepe61/ChatSpace.git","svn_url":"https://github.com/tepepe61/ChatSpace","homepage":null,"size":1354,"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/tepepe61/ChatSpace/pulls/10"},"html":{"href":"https://github.com/tepepe61/ChatSpace/pull/10"},"issue":{"href":"https://api.github.com/repos/tepepe61/ChatSpace/issues/10"},"comments":{"href":"https://api.github.com/repos/tepepe61/ChatSpace/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/tepepe61/ChatSpace/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/tepepe61/ChatSpace/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tepepe61/ChatSpace/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/tepepe61/ChatSpace/statuses/e0a2128cfe3045118c5204914ad08e2d923efb45"}},"author_association":"OWNER"}}
{"actor":{"display_login":"kouuuki"}}