{"action":"created","comment":{"url":"https://api.github.com/repos/tateyamatooru/chat-space/pulls/comments/181548185","pull_request_review_id":112203497,"id":181548185,"diff_hunk":"@@ -0,0 +1,56 @@\n+$(function() {\n+  var search_name = $(\"#user-search-result\");\n+\n+  function appendUser(user)  {\n+      var html =`<div class=\"chat-group-form__field--right--search\">\n+                  <div class=\"chat-group-user clearfix\">\n+                    <p class=\"chat-group-user__name\">${user.name}</p>\n+                      <a class=\"user-search-add chat-group-user__btn chat-group-user__btn--add\" data-user-id=\"${user.id}\" data-user-name=\"${user.name}\">追加</a>\n+                  </div>\n+               </div>`\n+    search_name.append(html);\n+  }\n+\n+  function groupUser(id, name){\n+    var html = `<div class='chat-group-user clearfix js-chat-member' id='chat-group-user-8'>\n+                        <input name='group[user_ids][]' type='hidden' value='${id}'>\n+                        <p class='chat-group-user__name'>${name}</p>\n+                        <a class='user-search-remove chat-group-user__btn chat-group-user__btn--remove js-remove-btn'>削除</a>\n+                      </div>`\n+     return html;\n+    }\n+\n+  $(\"#user-search-field\").on(\"keyup \", function() {\n+    var input = $(\"#user-search-field\").val();\n+    console.log(input);","path":"app/assets/javascripts/search.js","position":25,"original_position":25,"commit_id":"984d22570354a4e4a37ae5543e560cfd5eac2398","original_commit_id":"984d22570354a4e4a37ae5543e560cfd5eac2398","user":{"login":"fumihumi","id":20330326,"avatar_url":"https://avatars3.githubusercontent.com/u/20330326?v=4","gravatar_id":"","url":"https://api.github.com/users/fumihumi","html_url":"https://github.com/fumihumi","followers_url":"https://api.github.com/users/fumihumi/followers","following_url":"https://api.github.com/users/fumihumi/following{/other_user}","gists_url":"https://api.github.com/users/fumihumi/gists{/gist_id}","starred_url":"https://api.github.com/users/fumihumi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fumihumi/subscriptions","organizations_url":"https://api.github.com/users/fumihumi/orgs","repos_url":"https://api.github.com/users/fumihumi/repos","events_url":"https://api.github.com/users/fumihumi/events{/privacy}","received_events_url":"https://api.github.com/users/fumihumi/received_events","type":"User","site_admin":false},"body":"デバックの記述は作男しましょう","created_at":"2018-04-14T10:10:47Z","updated_at":"2018-04-14T10:10:47Z","html_url":"https://github.com/tateyamatooru/chat-space/pull/13#discussion_r181548185","pull_request_url":"https://api.github.com/repos/tateyamatooru/chat-space/pulls/13","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/tateyamatooru/chat-space/pulls/comments/181548185"},"html":{"href":"https://github.com/tateyamatooru/chat-space/pull/13#discussion_r181548185"},"pull_request":{"href":"https://api.github.com/repos/tateyamatooru/chat-space/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/tateyamatooru/chat-space/pulls/13","id":181639320,"html_url":"https://github.com/tateyamatooru/chat-space/pull/13","diff_url":"https://github.com/tateyamatooru/chat-space/pull/13.diff","patch_url":"https://github.com/tateyamatooru/chat-space/pull/13.patch","issue_url":"https://api.github.com/repos/tateyamatooru/chat-space/issues/13","number":13,"state":"open","locked":false,"title":"Incremental seach","user":{"login":"tateyamatooru","id":37870752,"avatar_url":"https://avatars3.githubusercontent.com/u/37870752?v=4","gravatar_id":"","url":"https://api.github.com/users/tateyamatooru","html_url":"https://github.com/tateyamatooru","followers_url":"https://api.github.com/users/tateyamatooru/followers","following_url":"https://api.github.com/users/tateyamatooru/following{/other_user}","gists_url":"https://api.github.com/users/tateyamatooru/gists{/gist_id}","starred_url":"https://api.github.com/users/tateyamatooru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tateyamatooru/subscriptions","organizations_url":"https://api.github.com/users/tateyamatooru/orgs","repos_url":"https://api.github.com/users/tateyamatooru/repos","events_url":"https://api.github.com/users/tateyamatooru/events{/privacy}","received_events_url":"https://api.github.com/users/tateyamatooru/received_events","type":"User","site_admin":false},"body":"##WHAT \nグループ作成時の検索機能でインクリメンタルサーチを実装\n\n##WHY \nユーザーがより使いやすいようにするため","created_at":"2018-04-14T09:27:05Z","updated_at":"2018-04-14T10:10:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ebd07797cc084230f6df158f30b81702e49fc0cb","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/tateyamatooru/chat-space/pulls/13/commits","review_comments_url":"https://api.github.com/repos/tateyamatooru/chat-space/pulls/13/comments","review_comment_url":"https://api.github.com/repos/tateyamatooru/chat-space/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tateyamatooru/chat-space/issues/13/comments","statuses_url":"https://api.github.com/repos/tateyamatooru/chat-space/statuses/984d22570354a4e4a37ae5543e560cfd5eac2398","head":{"label":"tateyamatooru:インクリメンタルサーチ","ref":"インクリメンタルサーチ","sha":"984d22570354a4e4a37ae5543e560cfd5eac2398","user":{"login":"tateyamatooru","id":37870752,"avatar_url":"https://avatars3.githubusercontent.com/u/37870752?v=4","gravatar_id":"","url":"https://api.github.com/users/tateyamatooru","html_url":"https://github.com/tateyamatooru","followers_url":"https://api.github.com/users/tateyamatooru/followers","following_url":"https://api.github.com/users/tateyamatooru/following{/other_user}","gists_url":"https://api.github.com/users/tateyamatooru/gists{/gist_id}","starred_url":"https://api.github.com/users/tateyamatooru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tateyamatooru/subscriptions","organizations_url":"https://api.github.com/users/tateyamatooru/orgs","repos_url":"https://api.github.com/users/tateyamatooru/repos","events_url":"https://api.github.com/users/tateyamatooru/events{/privacy}","received_events_url":"https://api.github.com/users/tateyamatooru/received_events","type":"User","site_admin":false},"repo":{"id":127505018,"name":"chat-space","full_name":"tateyamatooru/chat-space","owner":{"login":"tateyamatooru","id":37870752,"avatar_url":"https://avatars3.githubusercontent.com/u/37870752?v=4","gravatar_id":"","url":"https://api.github.com/users/tateyamatooru","html_url":"https://github.com/tateyamatooru","followers_url":"https://api.github.com/users/tateyamatooru/followers","following_url":"https://api.github.com/users/tateyamatooru/following{/other_user}","gists_url":"https://api.github.com/users/tateyamatooru/gists{/gist_id}","starred_url":"https://api.github.com/users/tateyamatooru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tateyamatooru/subscriptions","organizations_url":"https://api.github.com/users/tateyamatooru/orgs","repos_url":"https://api.github.com/users/tateyamatooru/repos","events_url":"https://api.github.com/users/tateyamatooru/events{/privacy}","received_events_url":"https://api.github.com/users/tateyamatooru/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tateyamatooru/chat-space","description":null,"fork":false,"url":"https://api.github.com/repos/tateyamatooru/chat-space","forks_url":"https://api.github.com/repos/tateyamatooru/chat-space/forks","keys_url":"https://api.github.com/repos/tateyamatooru/chat-space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tateyamatooru/chat-space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tateyamatooru/chat-space/teams","hooks_url":"https://api.github.com/repos/tateyamatooru/chat-space/hooks","issue_events_url":"https://api.github.com/repos/tateyamatooru/chat-space/issues/events{/number}","events_url":"https://api.github.com/repos/tateyamatooru/chat-space/events","assignees_url":"https://api.github.com/repos/tateyamatooru/chat-space/assignees{/user}","branches_url":"https://api.github.com/repos/tateyamatooru/chat-space/branches{/branch}","tags_url":"https://api.github.com/repos/tateyamatooru/chat-space/tags","blobs_url":"https://api.github.com/repos/tateyamatooru/chat-space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tateyamatooru/chat-space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tateyamatooru/chat-space/git/refs{/sha}","trees_url":"https://api.github.com/repos/tateyamatooru/chat-space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tateyamatooru/chat-space/statuses/{sha}","languages_url":"https://api.github.com/repos/tateyamatooru/chat-space/languages","stargazers_url":"https://api.github.com/repos/tateyamatooru/chat-space/stargazers","contributors_url":"https://api.github.com/repos/tateyamatooru/chat-space/contributors","subscribers_url":"https://api.github.com/repos/tateyamatooru/chat-space/subscribers","subscription_url":"https://api.github.com/repos/tateyamatooru/chat-space/subscription","commits_url":"https://api.github.com/repos/tateyamatooru/chat-space/commits{/sha}","git_commits_url":"https://api.github.com/repos/tateyamatooru/chat-space/git/commits{/sha}","comments_url":"https://api.github.com/repos/tateyamatooru/chat-space/comments{/number}","issue_comment_url":"https://api.github.com/repos/tateyamatooru/chat-space/issues/comments{/number}","contents_url":"https://api.github.com/repos/tateyamatooru/chat-space/contents/{+path}","compare_url":"https://api.github.com/repos/tateyamatooru/chat-space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tateyamatooru/chat-space/merges","archive_url":"https://api.github.com/repos/tateyamatooru/chat-space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tateyamatooru/chat-space/downloads","issues_url":"https://api.github.com/repos/tateyamatooru/chat-space/issues{/number}","pulls_url":"https://api.github.com/repos/tateyamatooru/chat-space/pulls{/number}","milestones_url":"https://api.github.com/repos/tateyamatooru/chat-space/milestones{/number}","notifications_url":"https://api.github.com/repos/tateyamatooru/chat-space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tateyamatooru/chat-space/labels{/name}","releases_url":"https://api.github.com/repos/tateyamatooru/chat-space/releases{/id}","deployments_url":"https://api.github.com/repos/tateyamatooru/chat-space/deployments","created_at":"2018-03-31T06:19:09Z","updated_at":"2018-04-13T04:13:54Z","pushed_at":"2018-04-14T09:27:06Z","git_url":"git://github.com/tateyamatooru/chat-space.git","ssh_url":"git@github.com:tateyamatooru/chat-space.git","clone_url":"https://github.com/tateyamatooru/chat-space.git","svn_url":"https://github.com/tateyamatooru/chat-space","homepage":null,"size":180,"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":"tateyamatooru:master","ref":"master","sha":"32864c72ccb6d5cf676d9ffcd137d0bf6c6a3a4c","user":{"login":"tateyamatooru","id":37870752,"avatar_url":"https://avatars3.githubusercontent.com/u/37870752?v=4","gravatar_id":"","url":"https://api.github.com/users/tateyamatooru","html_url":"https://github.com/tateyamatooru","followers_url":"https://api.github.com/users/tateyamatooru/followers","following_url":"https://api.github.com/users/tateyamatooru/following{/other_user}","gists_url":"https://api.github.com/users/tateyamatooru/gists{/gist_id}","starred_url":"https://api.github.com/users/tateyamatooru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tateyamatooru/subscriptions","organizations_url":"https://api.github.com/users/tateyamatooru/orgs","repos_url":"https://api.github.com/users/tateyamatooru/repos","events_url":"https://api.github.com/users/tateyamatooru/events{/privacy}","received_events_url":"https://api.github.com/users/tateyamatooru/received_events","type":"User","site_admin":false},"repo":{"id":127505018,"name":"chat-space","full_name":"tateyamatooru/chat-space","owner":{"login":"tateyamatooru","id":37870752,"avatar_url":"https://avatars3.githubusercontent.com/u/37870752?v=4","gravatar_id":"","url":"https://api.github.com/users/tateyamatooru","html_url":"https://github.com/tateyamatooru","followers_url":"https://api.github.com/users/tateyamatooru/followers","following_url":"https://api.github.com/users/tateyamatooru/following{/other_user}","gists_url":"https://api.github.com/users/tateyamatooru/gists{/gist_id}","starred_url":"https://api.github.com/users/tateyamatooru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tateyamatooru/subscriptions","organizations_url":"https://api.github.com/users/tateyamatooru/orgs","repos_url":"https://api.github.com/users/tateyamatooru/repos","events_url":"https://api.github.com/users/tateyamatooru/events{/privacy}","received_events_url":"https://api.github.com/users/tateyamatooru/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tateyamatooru/chat-space","description":null,"fork":false,"url":"https://api.github.com/repos/tateyamatooru/chat-space","forks_url":"https://api.github.com/repos/tateyamatooru/chat-space/forks","keys_url":"https://api.github.com/repos/tateyamatooru/chat-space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tateyamatooru/chat-space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tateyamatooru/chat-space/teams","hooks_url":"https://api.github.com/repos/tateyamatooru/chat-space/hooks","issue_events_url":"https://api.github.com/repos/tateyamatooru/chat-space/issues/events{/number}","events_url":"https://api.github.com/repos/tateyamatooru/chat-space/events","assignees_url":"https://api.github.com/repos/tateyamatooru/chat-space/assignees{/user}","branches_url":"https://api.github.com/repos/tateyamatooru/chat-space/branches{/branch}","tags_url":"https://api.github.com/repos/tateyamatooru/chat-space/tags","blobs_url":"https://api.github.com/repos/tateyamatooru/chat-space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tateyamatooru/chat-space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tateyamatooru/chat-space/git/refs{/sha}","trees_url":"https://api.github.com/repos/tateyamatooru/chat-space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tateyamatooru/chat-space/statuses/{sha}","languages_url":"https://api.github.com/repos/tateyamatooru/chat-space/languages","stargazers_url":"https://api.github.com/repos/tateyamatooru/chat-space/stargazers","contributors_url":"https://api.github.com/repos/tateyamatooru/chat-space/contributors","subscribers_url":"https://api.github.com/repos/tateyamatooru/chat-space/subscribers","subscription_url":"https://api.github.com/repos/tateyamatooru/chat-space/subscription","commits_url":"https://api.github.com/repos/tateyamatooru/chat-space/commits{/sha}","git_commits_url":"https://api.github.com/repos/tateyamatooru/chat-space/git/commits{/sha}","comments_url":"https://api.github.com/repos/tateyamatooru/chat-space/comments{/number}","issue_comment_url":"https://api.github.com/repos/tateyamatooru/chat-space/issues/comments{/number}","contents_url":"https://api.github.com/repos/tateyamatooru/chat-space/contents/{+path}","compare_url":"https://api.github.com/repos/tateyamatooru/chat-space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tateyamatooru/chat-space/merges","archive_url":"https://api.github.com/repos/tateyamatooru/chat-space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tateyamatooru/chat-space/downloads","issues_url":"https://api.github.com/repos/tateyamatooru/chat-space/issues{/number}","pulls_url":"https://api.github.com/repos/tateyamatooru/chat-space/pulls{/number}","milestones_url":"https://api.github.com/repos/tateyamatooru/chat-space/milestones{/number}","notifications_url":"https://api.github.com/repos/tateyamatooru/chat-space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tateyamatooru/chat-space/labels{/name}","releases_url":"https://api.github.com/repos/tateyamatooru/chat-space/releases{/id}","deployments_url":"https://api.github.com/repos/tateyamatooru/chat-space/deployments","created_at":"2018-03-31T06:19:09Z","updated_at":"2018-04-13T04:13:54Z","pushed_at":"2018-04-14T09:27:06Z","git_url":"git://github.com/tateyamatooru/chat-space.git","ssh_url":"git@github.com:tateyamatooru/chat-space.git","clone_url":"https://github.com/tateyamatooru/chat-space.git","svn_url":"https://github.com/tateyamatooru/chat-space","homepage":null,"size":180,"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/tateyamatooru/chat-space/pulls/13"},"html":{"href":"https://github.com/tateyamatooru/chat-space/pull/13"},"issue":{"href":"https://api.github.com/repos/tateyamatooru/chat-space/issues/13"},"comments":{"href":"https://api.github.com/repos/tateyamatooru/chat-space/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/tateyamatooru/chat-space/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/tateyamatooru/chat-space/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tateyamatooru/chat-space/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/tateyamatooru/chat-space/statuses/984d22570354a4e4a37ae5543e560cfd5eac2398"}},"author_association":"OWNER"}}
{"actor":{"display_login":"fumihumi"}}