{"action":"created","comment":{"url":"https://api.github.com/repos/Keisuke-Awa/chat-space/pulls/comments/171235142","pull_request_review_id":100050745,"id":171235142,"diff_hunk":"@@ -1,29 +1,36 @@\n $(function(){\n     // Messageクラスの定義\n     var Message = function(data) {","path":"app/assets/javascripts/messages.js","position":null,"original_position":3,"commit_id":"2ebe4633515fa5018fd4c1c48ee7b613104cb258","original_commit_id":"13f68a7ef38d46b76ef4e398ba326b3acd698a32","user":{"login":"Keisuke-Awa","id":26059040,"avatar_url":"https://avatars2.githubusercontent.com/u/26059040?v=4","gravatar_id":"","url":"https://api.github.com/users/Keisuke-Awa","html_url":"https://github.com/Keisuke-Awa","followers_url":"https://api.github.com/users/Keisuke-Awa/followers","following_url":"https://api.github.com/users/Keisuke-Awa/following{/other_user}","gists_url":"https://api.github.com/users/Keisuke-Awa/gists{/gist_id}","starred_url":"https://api.github.com/users/Keisuke-Awa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Keisuke-Awa/subscriptions","organizations_url":"https://api.github.com/users/Keisuke-Awa/orgs","repos_url":"https://api.github.com/users/Keisuke-Awa/repos","events_url":"https://api.github.com/users/Keisuke-Awa/events{/privacy}","received_events_url":"https://api.github.com/users/Keisuke-Awa/received_events","type":"User","site_admin":false},"body":"定義もconstなのですね、以後気をつけます。","created_at":"2018-02-28T12:55:21Z","updated_at":"2018-02-28T12:55:21Z","html_url":"https://github.com/Keisuke-Awa/chat-space/pull/19#discussion_r171235142","pull_request_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/pulls/19","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/Keisuke-Awa/chat-space/pulls/comments/171235142"},"html":{"href":"https://github.com/Keisuke-Awa/chat-space/pull/19#discussion_r171235142"},"pull_request":{"href":"https://api.github.com/repos/Keisuke-Awa/chat-space/pulls/19"}},"in_reply_to_id":171149592},"pull_request":{"url":"https://api.github.com/repos/Keisuke-Awa/chat-space/pulls/19","id":171569173,"html_url":"https://github.com/Keisuke-Awa/chat-space/pull/19","diff_url":"https://github.com/Keisuke-Awa/chat-space/pull/19.diff","patch_url":"https://github.com/Keisuke-Awa/chat-space/pull/19.patch","issue_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/issues/19","number":19,"state":"open","locked":false,"title":"Feature/auto load messages","user":{"login":"Keisuke-Awa","id":26059040,"avatar_url":"https://avatars2.githubusercontent.com/u/26059040?v=4","gravatar_id":"","url":"https://api.github.com/users/Keisuke-Awa","html_url":"https://github.com/Keisuke-Awa","followers_url":"https://api.github.com/users/Keisuke-Awa/followers","following_url":"https://api.github.com/users/Keisuke-Awa/following{/other_user}","gists_url":"https://api.github.com/users/Keisuke-Awa/gists{/gist_id}","starred_url":"https://api.github.com/users/Keisuke-Awa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Keisuke-Awa/subscriptions","organizations_url":"https://api.github.com/users/Keisuke-Awa/orgs","repos_url":"https://api.github.com/users/Keisuke-Awa/repos","events_url":"https://api.github.com/users/Keisuke-Awa/events{/privacy}","received_events_url":"https://api.github.com/users/Keisuke-Awa/received_events","type":"User","site_admin":false},"body":"## WHY\r\nメッセージを自動で更新させるため\r\n\r\n## WHAT\r\n- 自動更新すべきurlかを判断させる関数を作成\r\n- messageのidを判別できるdata属性を追加\r\n- `MessageSerializer`においてidを利用できるように修正\r\n- `setInterval`を用いて、差分のメッセージのみを追加する関数を作成\r\n- turbolinksの無効化","created_at":"2018-02-27T05:45:53Z","updated_at":"2018-02-28T12:55:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8fc29ae4c66b2f15f0a687645986413585ec01ae","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/pulls/19/commits","review_comments_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/pulls/19/comments","review_comment_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/issues/19/comments","statuses_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/statuses/2ebe4633515fa5018fd4c1c48ee7b613104cb258","head":{"label":"Keisuke-Awa:feature/auto_load_messages","ref":"feature/auto_load_messages","sha":"2ebe4633515fa5018fd4c1c48ee7b613104cb258","user":{"login":"Keisuke-Awa","id":26059040,"avatar_url":"https://avatars2.githubusercontent.com/u/26059040?v=4","gravatar_id":"","url":"https://api.github.com/users/Keisuke-Awa","html_url":"https://github.com/Keisuke-Awa","followers_url":"https://api.github.com/users/Keisuke-Awa/followers","following_url":"https://api.github.com/users/Keisuke-Awa/following{/other_user}","gists_url":"https://api.github.com/users/Keisuke-Awa/gists{/gist_id}","starred_url":"https://api.github.com/users/Keisuke-Awa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Keisuke-Awa/subscriptions","organizations_url":"https://api.github.com/users/Keisuke-Awa/orgs","repos_url":"https://api.github.com/users/Keisuke-Awa/repos","events_url":"https://api.github.com/users/Keisuke-Awa/events{/privacy}","received_events_url":"https://api.github.com/users/Keisuke-Awa/received_events","type":"User","site_admin":false},"repo":{"id":97217250,"name":"chat-space","full_name":"Keisuke-Awa/chat-space","owner":{"login":"Keisuke-Awa","id":26059040,"avatar_url":"https://avatars2.githubusercontent.com/u/26059040?v=4","gravatar_id":"","url":"https://api.github.com/users/Keisuke-Awa","html_url":"https://github.com/Keisuke-Awa","followers_url":"https://api.github.com/users/Keisuke-Awa/followers","following_url":"https://api.github.com/users/Keisuke-Awa/following{/other_user}","gists_url":"https://api.github.com/users/Keisuke-Awa/gists{/gist_id}","starred_url":"https://api.github.com/users/Keisuke-Awa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Keisuke-Awa/subscriptions","organizations_url":"https://api.github.com/users/Keisuke-Awa/orgs","repos_url":"https://api.github.com/users/Keisuke-Awa/repos","events_url":"https://api.github.com/users/Keisuke-Awa/events{/privacy}","received_events_url":"https://api.github.com/users/Keisuke-Awa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Keisuke-Awa/chat-space","description":null,"fork":false,"url":"https://api.github.com/repos/Keisuke-Awa/chat-space","forks_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/forks","keys_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/teams","hooks_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/hooks","issue_events_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/issues/events{/number}","events_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/events","assignees_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/assignees{/user}","branches_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/branches{/branch}","tags_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/tags","blobs_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/git/refs{/sha}","trees_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/statuses/{sha}","languages_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/languages","stargazers_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/stargazers","contributors_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/contributors","subscribers_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/subscribers","subscription_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/subscription","commits_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/commits{/sha}","git_commits_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/git/commits{/sha}","comments_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/comments{/number}","issue_comment_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/issues/comments{/number}","contents_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/contents/{+path}","compare_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/merges","archive_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/downloads","issues_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/issues{/number}","pulls_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/pulls{/number}","milestones_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/milestones{/number}","notifications_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/labels{/name}","releases_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/releases{/id}","deployments_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/deployments","created_at":"2017-07-14T09:28:17Z","updated_at":"2017-07-14T09:31:34Z","pushed_at":"2018-02-28T12:51:26Z","git_url":"git://github.com/Keisuke-Awa/chat-space.git","ssh_url":"git@github.com:Keisuke-Awa/chat-space.git","clone_url":"https://github.com/Keisuke-Awa/chat-space.git","svn_url":"https://github.com/Keisuke-Awa/chat-space","homepage":null,"size":1386,"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":"Keisuke-Awa:master","ref":"master","sha":"20c2a3799a590d84df89e61e086cf93a33aaa1cc","user":{"login":"Keisuke-Awa","id":26059040,"avatar_url":"https://avatars2.githubusercontent.com/u/26059040?v=4","gravatar_id":"","url":"https://api.github.com/users/Keisuke-Awa","html_url":"https://github.com/Keisuke-Awa","followers_url":"https://api.github.com/users/Keisuke-Awa/followers","following_url":"https://api.github.com/users/Keisuke-Awa/following{/other_user}","gists_url":"https://api.github.com/users/Keisuke-Awa/gists{/gist_id}","starred_url":"https://api.github.com/users/Keisuke-Awa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Keisuke-Awa/subscriptions","organizations_url":"https://api.github.com/users/Keisuke-Awa/orgs","repos_url":"https://api.github.com/users/Keisuke-Awa/repos","events_url":"https://api.github.com/users/Keisuke-Awa/events{/privacy}","received_events_url":"https://api.github.com/users/Keisuke-Awa/received_events","type":"User","site_admin":false},"repo":{"id":97217250,"name":"chat-space","full_name":"Keisuke-Awa/chat-space","owner":{"login":"Keisuke-Awa","id":26059040,"avatar_url":"https://avatars2.githubusercontent.com/u/26059040?v=4","gravatar_id":"","url":"https://api.github.com/users/Keisuke-Awa","html_url":"https://github.com/Keisuke-Awa","followers_url":"https://api.github.com/users/Keisuke-Awa/followers","following_url":"https://api.github.com/users/Keisuke-Awa/following{/other_user}","gists_url":"https://api.github.com/users/Keisuke-Awa/gists{/gist_id}","starred_url":"https://api.github.com/users/Keisuke-Awa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Keisuke-Awa/subscriptions","organizations_url":"https://api.github.com/users/Keisuke-Awa/orgs","repos_url":"https://api.github.com/users/Keisuke-Awa/repos","events_url":"https://api.github.com/users/Keisuke-Awa/events{/privacy}","received_events_url":"https://api.github.com/users/Keisuke-Awa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Keisuke-Awa/chat-space","description":null,"fork":false,"url":"https://api.github.com/repos/Keisuke-Awa/chat-space","forks_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/forks","keys_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/teams","hooks_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/hooks","issue_events_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/issues/events{/number}","events_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/events","assignees_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/assignees{/user}","branches_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/branches{/branch}","tags_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/tags","blobs_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/git/refs{/sha}","trees_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/statuses/{sha}","languages_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/languages","stargazers_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/stargazers","contributors_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/contributors","subscribers_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/subscribers","subscription_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/subscription","commits_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/commits{/sha}","git_commits_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/git/commits{/sha}","comments_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/comments{/number}","issue_comment_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/issues/comments{/number}","contents_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/contents/{+path}","compare_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/merges","archive_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/downloads","issues_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/issues{/number}","pulls_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/pulls{/number}","milestones_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/milestones{/number}","notifications_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/labels{/name}","releases_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/releases{/id}","deployments_url":"https://api.github.com/repos/Keisuke-Awa/chat-space/deployments","created_at":"2017-07-14T09:28:17Z","updated_at":"2017-07-14T09:31:34Z","pushed_at":"2018-02-28T12:51:26Z","git_url":"git://github.com/Keisuke-Awa/chat-space.git","ssh_url":"git@github.com:Keisuke-Awa/chat-space.git","clone_url":"https://github.com/Keisuke-Awa/chat-space.git","svn_url":"https://github.com/Keisuke-Awa/chat-space","homepage":null,"size":1386,"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/Keisuke-Awa/chat-space/pulls/19"},"html":{"href":"https://github.com/Keisuke-Awa/chat-space/pull/19"},"issue":{"href":"https://api.github.com/repos/Keisuke-Awa/chat-space/issues/19"},"comments":{"href":"https://api.github.com/repos/Keisuke-Awa/chat-space/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/Keisuke-Awa/chat-space/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/Keisuke-Awa/chat-space/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Keisuke-Awa/chat-space/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/Keisuke-Awa/chat-space/statuses/2ebe4633515fa5018fd4c1c48ee7b613104cb258"}},"author_association":"OWNER"}}
{"actor":{"display_login":"Keisuke-Awa"}}