{"action":"created","comment":{"url":"https://api.github.com/repos/YusukeHirose/chat-space/pulls/comments/171210674","pull_request_review_id":100021063,"id":171210674,"diff_hunk":"@@ -0,0 +1,74 @@\n+$(function() {\n+  var searchList = $(\"#user-search-result\");\n+  var memberList = $(\"#member-list\")\n+\n+  function appendUser(user) {\n+    var html = `<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+    searchList.append(html);\n+  }\n+\n+  function appendNoUser(user) {\n+    var html = `<div calss=\"chat-group-user clearfix\">\n+                  <p class=\"chat-group-user__name\">${user}</p>\n+                </div>`\n+    searchList.append(html);\n+  }\n+\n+  $(\"#user-search-field\").ready(function() {","path":"app/assets/javascripts/search.js","position":20,"original_position":20,"commit_id":"6d53b31604c479bc0a2742a9e345fea51c196249","original_commit_id":"6d53b31604c479bc0a2742a9e345fea51c196249","user":{"login":"Atsuyoshi-N","id":26040501,"avatar_url":"https://avatars3.githubusercontent.com/u/26040501?v=4","gravatar_id":"","url":"https://api.github.com/users/Atsuyoshi-N","html_url":"https://github.com/Atsuyoshi-N","followers_url":"https://api.github.com/users/Atsuyoshi-N/followers","following_url":"https://api.github.com/users/Atsuyoshi-N/following{/other_user}","gists_url":"https://api.github.com/users/Atsuyoshi-N/gists{/gist_id}","starred_url":"https://api.github.com/users/Atsuyoshi-N/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Atsuyoshi-N/subscriptions","organizations_url":"https://api.github.com/users/Atsuyoshi-N/orgs","repos_url":"https://api.github.com/users/Atsuyoshi-N/repos","events_url":"https://api.github.com/users/Atsuyoshi-N/events{/privacy}","received_events_url":"https://api.github.com/users/Atsuyoshi-N/received_events","type":"User","site_admin":false},"body":"なるほどね.\r\nready使ったのか！そのやり方でもいいし、turbolinks loadってやり方もあるから、時間ある時調べて見て！","created_at":"2018-02-28T11:06:35Z","updated_at":"2018-02-28T11:10:23Z","html_url":"https://github.com/YusukeHirose/chat-space/pull/13#discussion_r171210674","pull_request_url":"https://api.github.com/repos/YusukeHirose/chat-space/pulls/13","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/YusukeHirose/chat-space/pulls/comments/171210674"},"html":{"href":"https://github.com/YusukeHirose/chat-space/pull/13#discussion_r171210674"},"pull_request":{"href":"https://api.github.com/repos/YusukeHirose/chat-space/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/YusukeHirose/chat-space/pulls/13","id":171575008,"html_url":"https://github.com/YusukeHirose/chat-space/pull/13","diff_url":"https://github.com/YusukeHirose/chat-space/pull/13.diff","patch_url":"https://github.com/YusukeHirose/chat-space/pull/13.patch","issue_url":"https://api.github.com/repos/YusukeHirose/chat-space/issues/13","number":13,"state":"open","locked":false,"title":"インクリメンタルサーチの実装","user":{"login":"YusukeHirose","id":24663841,"avatar_url":"https://avatars2.githubusercontent.com/u/24663841?v=4","gravatar_id":"","url":"https://api.github.com/users/YusukeHirose","html_url":"https://github.com/YusukeHirose","followers_url":"https://api.github.com/users/YusukeHirose/followers","following_url":"https://api.github.com/users/YusukeHirose/following{/other_user}","gists_url":"https://api.github.com/users/YusukeHirose/gists{/gist_id}","starred_url":"https://api.github.com/users/YusukeHirose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YusukeHirose/subscriptions","organizations_url":"https://api.github.com/users/YusukeHirose/orgs","repos_url":"https://api.github.com/users/YusukeHirose/repos","events_url":"https://api.github.com/users/YusukeHirose/events{/privacy}","received_events_url":"https://api.github.com/users/YusukeHirose/received_events","type":"User","site_admin":false},"body":"# What\r\nインクリメンタルサーチの実装\r\n非同期のユーザー検索\r\nユーザーの追加、削除\r\n\r\n# How\r\nルーティングなどAPI側の準備をする\r\nテキストフィールドを作成する\r\nテキストフィールドに入力された時にイベント発火\r\nイベント時に非同期通信できるようにする\r\n非同期通信の結果でHTMLを作成\r\n作成したHTMLを追加\r\nエラー時の処理\r\n","created_at":"2018-02-27T06:32:43Z","updated_at":"2018-02-28T11:10:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"af40ef950a169d0c3eedd09a55c4ad9acc4dc83e","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/YusukeHirose/chat-space/pulls/13/commits","review_comments_url":"https://api.github.com/repos/YusukeHirose/chat-space/pulls/13/comments","review_comment_url":"https://api.github.com/repos/YusukeHirose/chat-space/pulls/comments{/number}","comments_url":"https://api.github.com/repos/YusukeHirose/chat-space/issues/13/comments","statuses_url":"https://api.github.com/repos/YusukeHirose/chat-space/statuses/6d53b31604c479bc0a2742a9e345fea51c196249","head":{"label":"YusukeHirose:incrementalsearch","ref":"incrementalsearch","sha":"6d53b31604c479bc0a2742a9e345fea51c196249","user":{"login":"YusukeHirose","id":24663841,"avatar_url":"https://avatars2.githubusercontent.com/u/24663841?v=4","gravatar_id":"","url":"https://api.github.com/users/YusukeHirose","html_url":"https://github.com/YusukeHirose","followers_url":"https://api.github.com/users/YusukeHirose/followers","following_url":"https://api.github.com/users/YusukeHirose/following{/other_user}","gists_url":"https://api.github.com/users/YusukeHirose/gists{/gist_id}","starred_url":"https://api.github.com/users/YusukeHirose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YusukeHirose/subscriptions","organizations_url":"https://api.github.com/users/YusukeHirose/orgs","repos_url":"https://api.github.com/users/YusukeHirose/repos","events_url":"https://api.github.com/users/YusukeHirose/events{/privacy}","received_events_url":"https://api.github.com/users/YusukeHirose/received_events","type":"User","site_admin":false},"repo":{"id":102958297,"name":"chat-space","full_name":"YusukeHirose/chat-space","owner":{"login":"YusukeHirose","id":24663841,"avatar_url":"https://avatars2.githubusercontent.com/u/24663841?v=4","gravatar_id":"","url":"https://api.github.com/users/YusukeHirose","html_url":"https://github.com/YusukeHirose","followers_url":"https://api.github.com/users/YusukeHirose/followers","following_url":"https://api.github.com/users/YusukeHirose/following{/other_user}","gists_url":"https://api.github.com/users/YusukeHirose/gists{/gist_id}","starred_url":"https://api.github.com/users/YusukeHirose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YusukeHirose/subscriptions","organizations_url":"https://api.github.com/users/YusukeHirose/orgs","repos_url":"https://api.github.com/users/YusukeHirose/repos","events_url":"https://api.github.com/users/YusukeHirose/events{/privacy}","received_events_url":"https://api.github.com/users/YusukeHirose/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/YusukeHirose/chat-space","description":null,"fork":false,"url":"https://api.github.com/repos/YusukeHirose/chat-space","forks_url":"https://api.github.com/repos/YusukeHirose/chat-space/forks","keys_url":"https://api.github.com/repos/YusukeHirose/chat-space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/YusukeHirose/chat-space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/YusukeHirose/chat-space/teams","hooks_url":"https://api.github.com/repos/YusukeHirose/chat-space/hooks","issue_events_url":"https://api.github.com/repos/YusukeHirose/chat-space/issues/events{/number}","events_url":"https://api.github.com/repos/YusukeHirose/chat-space/events","assignees_url":"https://api.github.com/repos/YusukeHirose/chat-space/assignees{/user}","branches_url":"https://api.github.com/repos/YusukeHirose/chat-space/branches{/branch}","tags_url":"https://api.github.com/repos/YusukeHirose/chat-space/tags","blobs_url":"https://api.github.com/repos/YusukeHirose/chat-space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/YusukeHirose/chat-space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/YusukeHirose/chat-space/git/refs{/sha}","trees_url":"https://api.github.com/repos/YusukeHirose/chat-space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/YusukeHirose/chat-space/statuses/{sha}","languages_url":"https://api.github.com/repos/YusukeHirose/chat-space/languages","stargazers_url":"https://api.github.com/repos/YusukeHirose/chat-space/stargazers","contributors_url":"https://api.github.com/repos/YusukeHirose/chat-space/contributors","subscribers_url":"https://api.github.com/repos/YusukeHirose/chat-space/subscribers","subscription_url":"https://api.github.com/repos/YusukeHirose/chat-space/subscription","commits_url":"https://api.github.com/repos/YusukeHirose/chat-space/commits{/sha}","git_commits_url":"https://api.github.com/repos/YusukeHirose/chat-space/git/commits{/sha}","comments_url":"https://api.github.com/repos/YusukeHirose/chat-space/comments{/number}","issue_comment_url":"https://api.github.com/repos/YusukeHirose/chat-space/issues/comments{/number}","contents_url":"https://api.github.com/repos/YusukeHirose/chat-space/contents/{+path}","compare_url":"https://api.github.com/repos/YusukeHirose/chat-space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/YusukeHirose/chat-space/merges","archive_url":"https://api.github.com/repos/YusukeHirose/chat-space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/YusukeHirose/chat-space/downloads","issues_url":"https://api.github.com/repos/YusukeHirose/chat-space/issues{/number}","pulls_url":"https://api.github.com/repos/YusukeHirose/chat-space/pulls{/number}","milestones_url":"https://api.github.com/repos/YusukeHirose/chat-space/milestones{/number}","notifications_url":"https://api.github.com/repos/YusukeHirose/chat-space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/YusukeHirose/chat-space/labels{/name}","releases_url":"https://api.github.com/repos/YusukeHirose/chat-space/releases{/id}","deployments_url":"https://api.github.com/repos/YusukeHirose/chat-space/deployments","created_at":"2017-09-09T13:53:11Z","updated_at":"2017-10-22T05:47:48Z","pushed_at":"2018-02-28T10:33:39Z","git_url":"git://github.com/YusukeHirose/chat-space.git","ssh_url":"git@github.com:YusukeHirose/chat-space.git","clone_url":"https://github.com/YusukeHirose/chat-space.git","svn_url":"https://github.com/YusukeHirose/chat-space","homepage":null,"size":160,"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":"YusukeHirose:master","ref":"master","sha":"2377f0d6ca60c23190e74dc1b769e8f327885297","user":{"login":"YusukeHirose","id":24663841,"avatar_url":"https://avatars2.githubusercontent.com/u/24663841?v=4","gravatar_id":"","url":"https://api.github.com/users/YusukeHirose","html_url":"https://github.com/YusukeHirose","followers_url":"https://api.github.com/users/YusukeHirose/followers","following_url":"https://api.github.com/users/YusukeHirose/following{/other_user}","gists_url":"https://api.github.com/users/YusukeHirose/gists{/gist_id}","starred_url":"https://api.github.com/users/YusukeHirose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YusukeHirose/subscriptions","organizations_url":"https://api.github.com/users/YusukeHirose/orgs","repos_url":"https://api.github.com/users/YusukeHirose/repos","events_url":"https://api.github.com/users/YusukeHirose/events{/privacy}","received_events_url":"https://api.github.com/users/YusukeHirose/received_events","type":"User","site_admin":false},"repo":{"id":102958297,"name":"chat-space","full_name":"YusukeHirose/chat-space","owner":{"login":"YusukeHirose","id":24663841,"avatar_url":"https://avatars2.githubusercontent.com/u/24663841?v=4","gravatar_id":"","url":"https://api.github.com/users/YusukeHirose","html_url":"https://github.com/YusukeHirose","followers_url":"https://api.github.com/users/YusukeHirose/followers","following_url":"https://api.github.com/users/YusukeHirose/following{/other_user}","gists_url":"https://api.github.com/users/YusukeHirose/gists{/gist_id}","starred_url":"https://api.github.com/users/YusukeHirose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YusukeHirose/subscriptions","organizations_url":"https://api.github.com/users/YusukeHirose/orgs","repos_url":"https://api.github.com/users/YusukeHirose/repos","events_url":"https://api.github.com/users/YusukeHirose/events{/privacy}","received_events_url":"https://api.github.com/users/YusukeHirose/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/YusukeHirose/chat-space","description":null,"fork":false,"url":"https://api.github.com/repos/YusukeHirose/chat-space","forks_url":"https://api.github.com/repos/YusukeHirose/chat-space/forks","keys_url":"https://api.github.com/repos/YusukeHirose/chat-space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/YusukeHirose/chat-space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/YusukeHirose/chat-space/teams","hooks_url":"https://api.github.com/repos/YusukeHirose/chat-space/hooks","issue_events_url":"https://api.github.com/repos/YusukeHirose/chat-space/issues/events{/number}","events_url":"https://api.github.com/repos/YusukeHirose/chat-space/events","assignees_url":"https://api.github.com/repos/YusukeHirose/chat-space/assignees{/user}","branches_url":"https://api.github.com/repos/YusukeHirose/chat-space/branches{/branch}","tags_url":"https://api.github.com/repos/YusukeHirose/chat-space/tags","blobs_url":"https://api.github.com/repos/YusukeHirose/chat-space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/YusukeHirose/chat-space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/YusukeHirose/chat-space/git/refs{/sha}","trees_url":"https://api.github.com/repos/YusukeHirose/chat-space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/YusukeHirose/chat-space/statuses/{sha}","languages_url":"https://api.github.com/repos/YusukeHirose/chat-space/languages","stargazers_url":"https://api.github.com/repos/YusukeHirose/chat-space/stargazers","contributors_url":"https://api.github.com/repos/YusukeHirose/chat-space/contributors","subscribers_url":"https://api.github.com/repos/YusukeHirose/chat-space/subscribers","subscription_url":"https://api.github.com/repos/YusukeHirose/chat-space/subscription","commits_url":"https://api.github.com/repos/YusukeHirose/chat-space/commits{/sha}","git_commits_url":"https://api.github.com/repos/YusukeHirose/chat-space/git/commits{/sha}","comments_url":"https://api.github.com/repos/YusukeHirose/chat-space/comments{/number}","issue_comment_url":"https://api.github.com/repos/YusukeHirose/chat-space/issues/comments{/number}","contents_url":"https://api.github.com/repos/YusukeHirose/chat-space/contents/{+path}","compare_url":"https://api.github.com/repos/YusukeHirose/chat-space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/YusukeHirose/chat-space/merges","archive_url":"https://api.github.com/repos/YusukeHirose/chat-space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/YusukeHirose/chat-space/downloads","issues_url":"https://api.github.com/repos/YusukeHirose/chat-space/issues{/number}","pulls_url":"https://api.github.com/repos/YusukeHirose/chat-space/pulls{/number}","milestones_url":"https://api.github.com/repos/YusukeHirose/chat-space/milestones{/number}","notifications_url":"https://api.github.com/repos/YusukeHirose/chat-space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/YusukeHirose/chat-space/labels{/name}","releases_url":"https://api.github.com/repos/YusukeHirose/chat-space/releases{/id}","deployments_url":"https://api.github.com/repos/YusukeHirose/chat-space/deployments","created_at":"2017-09-09T13:53:11Z","updated_at":"2017-10-22T05:47:48Z","pushed_at":"2018-02-28T10:33:39Z","git_url":"git://github.com/YusukeHirose/chat-space.git","ssh_url":"git@github.com:YusukeHirose/chat-space.git","clone_url":"https://github.com/YusukeHirose/chat-space.git","svn_url":"https://github.com/YusukeHirose/chat-space","homepage":null,"size":160,"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/YusukeHirose/chat-space/pulls/13"},"html":{"href":"https://github.com/YusukeHirose/chat-space/pull/13"},"issue":{"href":"https://api.github.com/repos/YusukeHirose/chat-space/issues/13"},"comments":{"href":"https://api.github.com/repos/YusukeHirose/chat-space/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/YusukeHirose/chat-space/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/YusukeHirose/chat-space/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/YusukeHirose/chat-space/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/YusukeHirose/chat-space/statuses/6d53b31604c479bc0a2742a9e345fea51c196249"}},"author_association":"OWNER"}}
{"actor":{"display_login":"Atsuyoshi-N"}}