{"action":"created","comment":{"url":"https://api.github.com/repos/takao-sone/chat-space/pulls/comments/89640366","pull_request_review_id":10185843,"id":89640366,"diff_hunk":"@@ -0,0 +1,94 @@\n+$(document).on('turbolinks:load', function(){\n+\n+  var user_list = $(\"#user-search-result\");\n+  var preWord;\n+  var preFunc = null;\n+  var preInput = '';\n+  var input = '';\n+\n+  // 検索結果追加メソッド\n+  function appendUser(data) {\n+    var user_html = \"<div class='chat-group-user clearfix'>\"\n+      + \"<input name='chat-group[user_ids][]', type='hidden'>\"\n+      + \"<p class='chat-group-user__name'>\" + data.name\n+      + \"</p><a id='add-user-btn' class='user-search-add chat-group-user__btn chat-group-user__btn--add' data-user-id='\" + data.id\n+      + \"' data-user-name='\" + data.name + \"'>追加</a></div>\"\n+    user_list.append(user_html);\n+  }\n+\n+  // メンバー追加メソッド\n+  function appendUserToMember($btn){\n+    console.log('appendUserToMember');\n+    var name = $btn.data('user-name');\n+    var id = $btn.data('user-id');\n+    var user_html = \"<div class='chat-group-user clearfix'>\"\n+      + \"<input name='group[user_ids][]', value='\" + id + \"' type='hidden' id='chat-group-ids' >\"\n+      + \"<p class='chat-group-user__name'>\" + name\n+      + \"</p><a style='color: red;' id='delete-user-btn' class='user-search-add chat-group-user__btn chat-group-user__btn--add delete-user' data-user-id='\" + id\n+      + \"' data-user-name='\" + name + \"'>削除</a></div>\"\n+    $('#chat-group-users').append(user_html);\n+  }\n+\n+  // ajaxメソッド\n+  ajaxSearch = function(input){\n+    $.ajax({\n+      type: \"GET\",\n+      url: \"/groups/ajax_user_list\",\n+      data: (\"keyword=\" + input),\n+      dataType: 'json'\n+    })\n+      .done(function(data){\n+        console.log('done');","path":"app/assets/javascripts/group.js","position":41,"original_position":41,"commit_id":"6214d9bbdfb6ff4fc5dae96597d42c16d765b9b2","original_commit_id":"6214d9bbdfb6ff4fc5dae96597d42c16d765b9b2","user":{"login":"takao-sone","id":19811438,"avatar_url":"https://avatars.githubusercontent.com/u/19811438?v=3","gravatar_id":"","url":"https://api.github.com/users/takao-sone","html_url":"https://github.com/takao-sone","followers_url":"https://api.github.com/users/takao-sone/followers","following_url":"https://api.github.com/users/takao-sone/following{/other_user}","gists_url":"https://api.github.com/users/takao-sone/gists{/gist_id}","starred_url":"https://api.github.com/users/takao-sone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takao-sone/subscriptions","organizations_url":"https://api.github.com/users/takao-sone/orgs","repos_url":"https://api.github.com/users/takao-sone/repos","events_url":"https://api.github.com/users/takao-sone/events{/privacy}","received_events_url":"https://api.github.com/users/takao-sone/received_events","type":"User","site_admin":false},"body":"sone","created_at":"2016-11-25T16:35:46Z","updated_at":"2016-11-25T16:35:46Z","html_url":"https://github.com/takao-sone/chat-space/pull/9#discussion_r89640366","pull_request_url":"https://api.github.com/repos/takao-sone/chat-space/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/takao-sone/chat-space/pulls/comments/89640366"},"html":{"href":"https://github.com/takao-sone/chat-space/pull/9#discussion_r89640366"},"pull_request":{"href":"https://api.github.com/repos/takao-sone/chat-space/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/takao-sone/chat-space/pulls/9","id":93646084,"html_url":"https://github.com/takao-sone/chat-space/pull/9","diff_url":"https://github.com/takao-sone/chat-space/pull/9.diff","patch_url":"https://github.com/takao-sone/chat-space/pull/9.patch","issue_url":"https://api.github.com/repos/takao-sone/chat-space/issues/9","number":9,"state":"open","locked":false,"title":"Asynchronous Transmission","user":{"login":"takao-sone","id":19811438,"avatar_url":"https://avatars.githubusercontent.com/u/19811438?v=3","gravatar_id":"","url":"https://api.github.com/users/takao-sone","html_url":"https://github.com/takao-sone","followers_url":"https://api.github.com/users/takao-sone/followers","following_url":"https://api.github.com/users/takao-sone/following{/other_user}","gists_url":"https://api.github.com/users/takao-sone/gists{/gist_id}","starred_url":"https://api.github.com/users/takao-sone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takao-sone/subscriptions","organizations_url":"https://api.github.com/users/takao-sone/orgs","repos_url":"https://api.github.com/users/takao-sone/repos","events_url":"https://api.github.com/users/takao-sone/events{/privacy}","received_events_url":"https://api.github.com/users/takao-sone/received_events","type":"User","site_admin":false},"body":"## What\r\nAsynchronous Transmission\r\n\r\n## Why\r\nIn order to improve UX\r\n\r\n## DeadLine\r\n2016/11/20","created_at":"2016-11-14T20:54:53Z","updated_at":"2016-11-25T16:35:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d76b744d0bd2359008f23ddb05410648c684e0e5","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/takao-sone/chat-space/pulls/9/commits","review_comments_url":"https://api.github.com/repos/takao-sone/chat-space/pulls/9/comments","review_comment_url":"https://api.github.com/repos/takao-sone/chat-space/pulls/comments{/number}","comments_url":"https://api.github.com/repos/takao-sone/chat-space/issues/9/comments","statuses_url":"https://api.github.com/repos/takao-sone/chat-space/statuses/6214d9bbdfb6ff4fc5dae96597d42c16d765b9b2","head":{"label":"takao-sone:ajax","ref":"ajax","sha":"6214d9bbdfb6ff4fc5dae96597d42c16d765b9b2","user":{"login":"takao-sone","id":19811438,"avatar_url":"https://avatars.githubusercontent.com/u/19811438?v=3","gravatar_id":"","url":"https://api.github.com/users/takao-sone","html_url":"https://github.com/takao-sone","followers_url":"https://api.github.com/users/takao-sone/followers","following_url":"https://api.github.com/users/takao-sone/following{/other_user}","gists_url":"https://api.github.com/users/takao-sone/gists{/gist_id}","starred_url":"https://api.github.com/users/takao-sone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takao-sone/subscriptions","organizations_url":"https://api.github.com/users/takao-sone/orgs","repos_url":"https://api.github.com/users/takao-sone/repos","events_url":"https://api.github.com/users/takao-sone/events{/privacy}","received_events_url":"https://api.github.com/users/takao-sone/received_events","type":"User","site_admin":false},"repo":{"id":70718825,"name":"chat-space","full_name":"takao-sone/chat-space","owner":{"login":"takao-sone","id":19811438,"avatar_url":"https://avatars.githubusercontent.com/u/19811438?v=3","gravatar_id":"","url":"https://api.github.com/users/takao-sone","html_url":"https://github.com/takao-sone","followers_url":"https://api.github.com/users/takao-sone/followers","following_url":"https://api.github.com/users/takao-sone/following{/other_user}","gists_url":"https://api.github.com/users/takao-sone/gists{/gist_id}","starred_url":"https://api.github.com/users/takao-sone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takao-sone/subscriptions","organizations_url":"https://api.github.com/users/takao-sone/orgs","repos_url":"https://api.github.com/users/takao-sone/repos","events_url":"https://api.github.com/users/takao-sone/events{/privacy}","received_events_url":"https://api.github.com/users/takao-sone/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/takao-sone/chat-space","description":null,"fork":false,"url":"https://api.github.com/repos/takao-sone/chat-space","forks_url":"https://api.github.com/repos/takao-sone/chat-space/forks","keys_url":"https://api.github.com/repos/takao-sone/chat-space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/takao-sone/chat-space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/takao-sone/chat-space/teams","hooks_url":"https://api.github.com/repos/takao-sone/chat-space/hooks","issue_events_url":"https://api.github.com/repos/takao-sone/chat-space/issues/events{/number}","events_url":"https://api.github.com/repos/takao-sone/chat-space/events","assignees_url":"https://api.github.com/repos/takao-sone/chat-space/assignees{/user}","branches_url":"https://api.github.com/repos/takao-sone/chat-space/branches{/branch}","tags_url":"https://api.github.com/repos/takao-sone/chat-space/tags","blobs_url":"https://api.github.com/repos/takao-sone/chat-space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/takao-sone/chat-space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/takao-sone/chat-space/git/refs{/sha}","trees_url":"https://api.github.com/repos/takao-sone/chat-space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/takao-sone/chat-space/statuses/{sha}","languages_url":"https://api.github.com/repos/takao-sone/chat-space/languages","stargazers_url":"https://api.github.com/repos/takao-sone/chat-space/stargazers","contributors_url":"https://api.github.com/repos/takao-sone/chat-space/contributors","subscribers_url":"https://api.github.com/repos/takao-sone/chat-space/subscribers","subscription_url":"https://api.github.com/repos/takao-sone/chat-space/subscription","commits_url":"https://api.github.com/repos/takao-sone/chat-space/commits{/sha}","git_commits_url":"https://api.github.com/repos/takao-sone/chat-space/git/commits{/sha}","comments_url":"https://api.github.com/repos/takao-sone/chat-space/comments{/number}","issue_comment_url":"https://api.github.com/repos/takao-sone/chat-space/issues/comments{/number}","contents_url":"https://api.github.com/repos/takao-sone/chat-space/contents/{+path}","compare_url":"https://api.github.com/repos/takao-sone/chat-space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/takao-sone/chat-space/merges","archive_url":"https://api.github.com/repos/takao-sone/chat-space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/takao-sone/chat-space/downloads","issues_url":"https://api.github.com/repos/takao-sone/chat-space/issues{/number}","pulls_url":"https://api.github.com/repos/takao-sone/chat-space/pulls{/number}","milestones_url":"https://api.github.com/repos/takao-sone/chat-space/milestones{/number}","notifications_url":"https://api.github.com/repos/takao-sone/chat-space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/takao-sone/chat-space/labels{/name}","releases_url":"https://api.github.com/repos/takao-sone/chat-space/releases{/id}","deployments_url":"https://api.github.com/repos/takao-sone/chat-space/deployments","created_at":"2016-10-12T16:25:17Z","updated_at":"2016-10-12T16:32:28Z","pushed_at":"2016-11-25T15:46:04Z","git_url":"git://github.com/takao-sone/chat-space.git","ssh_url":"git@github.com:takao-sone/chat-space.git","clone_url":"https://github.com/takao-sone/chat-space.git","svn_url":"https://github.com/takao-sone/chat-space","homepage":"","size":96,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"takao-sone:master","ref":"master","sha":"9da358cd7375a2b58e68603561fcc94177ca52ac","user":{"login":"takao-sone","id":19811438,"avatar_url":"https://avatars.githubusercontent.com/u/19811438?v=3","gravatar_id":"","url":"https://api.github.com/users/takao-sone","html_url":"https://github.com/takao-sone","followers_url":"https://api.github.com/users/takao-sone/followers","following_url":"https://api.github.com/users/takao-sone/following{/other_user}","gists_url":"https://api.github.com/users/takao-sone/gists{/gist_id}","starred_url":"https://api.github.com/users/takao-sone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takao-sone/subscriptions","organizations_url":"https://api.github.com/users/takao-sone/orgs","repos_url":"https://api.github.com/users/takao-sone/repos","events_url":"https://api.github.com/users/takao-sone/events{/privacy}","received_events_url":"https://api.github.com/users/takao-sone/received_events","type":"User","site_admin":false},"repo":{"id":70718825,"name":"chat-space","full_name":"takao-sone/chat-space","owner":{"login":"takao-sone","id":19811438,"avatar_url":"https://avatars.githubusercontent.com/u/19811438?v=3","gravatar_id":"","url":"https://api.github.com/users/takao-sone","html_url":"https://github.com/takao-sone","followers_url":"https://api.github.com/users/takao-sone/followers","following_url":"https://api.github.com/users/takao-sone/following{/other_user}","gists_url":"https://api.github.com/users/takao-sone/gists{/gist_id}","starred_url":"https://api.github.com/users/takao-sone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takao-sone/subscriptions","organizations_url":"https://api.github.com/users/takao-sone/orgs","repos_url":"https://api.github.com/users/takao-sone/repos","events_url":"https://api.github.com/users/takao-sone/events{/privacy}","received_events_url":"https://api.github.com/users/takao-sone/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/takao-sone/chat-space","description":null,"fork":false,"url":"https://api.github.com/repos/takao-sone/chat-space","forks_url":"https://api.github.com/repos/takao-sone/chat-space/forks","keys_url":"https://api.github.com/repos/takao-sone/chat-space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/takao-sone/chat-space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/takao-sone/chat-space/teams","hooks_url":"https://api.github.com/repos/takao-sone/chat-space/hooks","issue_events_url":"https://api.github.com/repos/takao-sone/chat-space/issues/events{/number}","events_url":"https://api.github.com/repos/takao-sone/chat-space/events","assignees_url":"https://api.github.com/repos/takao-sone/chat-space/assignees{/user}","branches_url":"https://api.github.com/repos/takao-sone/chat-space/branches{/branch}","tags_url":"https://api.github.com/repos/takao-sone/chat-space/tags","blobs_url":"https://api.github.com/repos/takao-sone/chat-space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/takao-sone/chat-space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/takao-sone/chat-space/git/refs{/sha}","trees_url":"https://api.github.com/repos/takao-sone/chat-space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/takao-sone/chat-space/statuses/{sha}","languages_url":"https://api.github.com/repos/takao-sone/chat-space/languages","stargazers_url":"https://api.github.com/repos/takao-sone/chat-space/stargazers","contributors_url":"https://api.github.com/repos/takao-sone/chat-space/contributors","subscribers_url":"https://api.github.com/repos/takao-sone/chat-space/subscribers","subscription_url":"https://api.github.com/repos/takao-sone/chat-space/subscription","commits_url":"https://api.github.com/repos/takao-sone/chat-space/commits{/sha}","git_commits_url":"https://api.github.com/repos/takao-sone/chat-space/git/commits{/sha}","comments_url":"https://api.github.com/repos/takao-sone/chat-space/comments{/number}","issue_comment_url":"https://api.github.com/repos/takao-sone/chat-space/issues/comments{/number}","contents_url":"https://api.github.com/repos/takao-sone/chat-space/contents/{+path}","compare_url":"https://api.github.com/repos/takao-sone/chat-space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/takao-sone/chat-space/merges","archive_url":"https://api.github.com/repos/takao-sone/chat-space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/takao-sone/chat-space/downloads","issues_url":"https://api.github.com/repos/takao-sone/chat-space/issues{/number}","pulls_url":"https://api.github.com/repos/takao-sone/chat-space/pulls{/number}","milestones_url":"https://api.github.com/repos/takao-sone/chat-space/milestones{/number}","notifications_url":"https://api.github.com/repos/takao-sone/chat-space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/takao-sone/chat-space/labels{/name}","releases_url":"https://api.github.com/repos/takao-sone/chat-space/releases{/id}","deployments_url":"https://api.github.com/repos/takao-sone/chat-space/deployments","created_at":"2016-10-12T16:25:17Z","updated_at":"2016-10-12T16:32:28Z","pushed_at":"2016-11-25T15:46:04Z","git_url":"git://github.com/takao-sone/chat-space.git","ssh_url":"git@github.com:takao-sone/chat-space.git","clone_url":"https://github.com/takao-sone/chat-space.git","svn_url":"https://github.com/takao-sone/chat-space","homepage":"","size":96,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/takao-sone/chat-space/pulls/9"},"html":{"href":"https://github.com/takao-sone/chat-space/pull/9"},"issue":{"href":"https://api.github.com/repos/takao-sone/chat-space/issues/9"},"comments":{"href":"https://api.github.com/repos/takao-sone/chat-space/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/takao-sone/chat-space/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/takao-sone/chat-space/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/takao-sone/chat-space/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/takao-sone/chat-space/statuses/6214d9bbdfb6ff4fc5dae96597d42c16d765b9b2"}}}}
{"actor":{"display_login":"takao-sone"}}