{"action":"created","comment":{"url":"https://api.github.com/repos/ars-ishi/chat-space/pulls/comments/220513022","pull_request_review_id":158934851,"id":220513022,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMDUxMzAyMg==","diff_hunk":"@@ -1,4 +1,12 @@\n class UsersController < ApplicationController\n+  def index\n+    @users =  User.where('name LIKE(?)', \"%#{params[:keyword]}%\").where.not(id: current_user.id)","path":"app/controllers/users_controller.rb","position":3,"original_position":3,"commit_id":"e98b89031ac8462be0c3ad57bb02c7a988414624","original_commit_id":"e98b89031ac8462be0c3ad57bb02c7a988414624","user":{"login":"miyagit","id":17040491,"node_id":"MDQ6VXNlcjE3MDQwNDkx","avatar_url":"https://avatars3.githubusercontent.com/u/17040491?v=4","gravatar_id":"","url":"https://api.github.com/users/miyagit","html_url":"https://github.com/miyagit","followers_url":"https://api.github.com/users/miyagit/followers","following_url":"https://api.github.com/users/miyagit/following{/other_user}","gists_url":"https://api.github.com/users/miyagit/gists{/gist_id}","starred_url":"https://api.github.com/users/miyagit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miyagit/subscriptions","organizations_url":"https://api.github.com/users/miyagit/orgs","repos_url":"https://api.github.com/users/miyagit/repos","events_url":"https://api.github.com/users/miyagit/events{/privacy}","received_events_url":"https://api.github.com/users/miyagit/received_events","type":"User","site_admin":false},"body":"where.not使わずにそのままプレースホルダ使って実装しましょう。","created_at":"2018-09-26T10:44:28Z","updated_at":"2018-09-26T10:44:59Z","html_url":"https://github.com/ars-ishi/chat-space/pull/12#discussion_r220513022","pull_request_url":"https://api.github.com/repos/ars-ishi/chat-space/pulls/12","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/ars-ishi/chat-space/pulls/comments/220513022"},"html":{"href":"https://github.com/ars-ishi/chat-space/pull/12#discussion_r220513022"},"pull_request":{"href":"https://api.github.com/repos/ars-ishi/chat-space/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/ars-ishi/chat-space/pulls/12","id":217623681,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE3NjIzNjgx","html_url":"https://github.com/ars-ishi/chat-space/pull/12","diff_url":"https://github.com/ars-ishi/chat-space/pull/12.diff","patch_url":"https://github.com/ars-ishi/chat-space/pull/12.patch","issue_url":"https://api.github.com/repos/ars-ishi/chat-space/issues/12","number":12,"state":"open","locked":false,"title":"ユーザー検索をインクリメンタルサーチ化","user":{"login":"ars-ishi","id":43198227,"node_id":"MDQ6VXNlcjQzMTk4MjI3","avatar_url":"https://avatars0.githubusercontent.com/u/43198227?v=4","gravatar_id":"","url":"https://api.github.com/users/ars-ishi","html_url":"https://github.com/ars-ishi","followers_url":"https://api.github.com/users/ars-ishi/followers","following_url":"https://api.github.com/users/ars-ishi/following{/other_user}","gists_url":"https://api.github.com/users/ars-ishi/gists{/gist_id}","starred_url":"https://api.github.com/users/ars-ishi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ars-ishi/subscriptions","organizations_url":"https://api.github.com/users/ars-ishi/orgs","repos_url":"https://api.github.com/users/ars-ishi/repos","events_url":"https://api.github.com/users/ars-ishi/events{/privacy}","received_events_url":"https://api.github.com/users/ars-ishi/received_events","type":"User","site_admin":false},"body":"# WHAT\r\nユーザー検索をインクリメンタルサーチ化\r\n\r\n# WHY\r\nグループに追加するユーザーを検索するため","created_at":"2018-09-24T11:21:06Z","updated_at":"2018-09-26T10:44:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a6d971217842db508833a270198540e39517179a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ars-ishi/chat-space/pulls/12/commits","review_comments_url":"https://api.github.com/repos/ars-ishi/chat-space/pulls/12/comments","review_comment_url":"https://api.github.com/repos/ars-ishi/chat-space/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ars-ishi/chat-space/issues/12/comments","statuses_url":"https://api.github.com/repos/ars-ishi/chat-space/statuses/e98b89031ac8462be0c3ad57bb02c7a988414624","head":{"label":"ars-ishi:add-function-incremental-search","ref":"add-function-incremental-search","sha":"e98b89031ac8462be0c3ad57bb02c7a988414624","user":{"login":"ars-ishi","id":43198227,"node_id":"MDQ6VXNlcjQzMTk4MjI3","avatar_url":"https://avatars0.githubusercontent.com/u/43198227?v=4","gravatar_id":"","url":"https://api.github.com/users/ars-ishi","html_url":"https://github.com/ars-ishi","followers_url":"https://api.github.com/users/ars-ishi/followers","following_url":"https://api.github.com/users/ars-ishi/following{/other_user}","gists_url":"https://api.github.com/users/ars-ishi/gists{/gist_id}","starred_url":"https://api.github.com/users/ars-ishi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ars-ishi/subscriptions","organizations_url":"https://api.github.com/users/ars-ishi/orgs","repos_url":"https://api.github.com/users/ars-ishi/repos","events_url":"https://api.github.com/users/ars-ishi/events{/privacy}","received_events_url":"https://api.github.com/users/ars-ishi/received_events","type":"User","site_admin":false},"repo":{"id":148890120,"node_id":"MDEwOlJlcG9zaXRvcnkxNDg4OTAxMjA=","name":"chat-space","full_name":"ars-ishi/chat-space","private":false,"owner":{"login":"ars-ishi","id":43198227,"node_id":"MDQ6VXNlcjQzMTk4MjI3","avatar_url":"https://avatars0.githubusercontent.com/u/43198227?v=4","gravatar_id":"","url":"https://api.github.com/users/ars-ishi","html_url":"https://github.com/ars-ishi","followers_url":"https://api.github.com/users/ars-ishi/followers","following_url":"https://api.github.com/users/ars-ishi/following{/other_user}","gists_url":"https://api.github.com/users/ars-ishi/gists{/gist_id}","starred_url":"https://api.github.com/users/ars-ishi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ars-ishi/subscriptions","organizations_url":"https://api.github.com/users/ars-ishi/orgs","repos_url":"https://api.github.com/users/ars-ishi/repos","events_url":"https://api.github.com/users/ars-ishi/events{/privacy}","received_events_url":"https://api.github.com/users/ars-ishi/received_events","type":"User","site_admin":false},"html_url":"https://github.com/ars-ishi/chat-space","description":null,"fork":false,"url":"https://api.github.com/repos/ars-ishi/chat-space","forks_url":"https://api.github.com/repos/ars-ishi/chat-space/forks","keys_url":"https://api.github.com/repos/ars-ishi/chat-space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ars-ishi/chat-space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ars-ishi/chat-space/teams","hooks_url":"https://api.github.com/repos/ars-ishi/chat-space/hooks","issue_events_url":"https://api.github.com/repos/ars-ishi/chat-space/issues/events{/number}","events_url":"https://api.github.com/repos/ars-ishi/chat-space/events","assignees_url":"https://api.github.com/repos/ars-ishi/chat-space/assignees{/user}","branches_url":"https://api.github.com/repos/ars-ishi/chat-space/branches{/branch}","tags_url":"https://api.github.com/repos/ars-ishi/chat-space/tags","blobs_url":"https://api.github.com/repos/ars-ishi/chat-space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ars-ishi/chat-space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ars-ishi/chat-space/git/refs{/sha}","trees_url":"https://api.github.com/repos/ars-ishi/chat-space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ars-ishi/chat-space/statuses/{sha}","languages_url":"https://api.github.com/repos/ars-ishi/chat-space/languages","stargazers_url":"https://api.github.com/repos/ars-ishi/chat-space/stargazers","contributors_url":"https://api.github.com/repos/ars-ishi/chat-space/contributors","subscribers_url":"https://api.github.com/repos/ars-ishi/chat-space/subscribers","subscription_url":"https://api.github.com/repos/ars-ishi/chat-space/subscription","commits_url":"https://api.github.com/repos/ars-ishi/chat-space/commits{/sha}","git_commits_url":"https://api.github.com/repos/ars-ishi/chat-space/git/commits{/sha}","comments_url":"https://api.github.com/repos/ars-ishi/chat-space/comments{/number}","issue_comment_url":"https://api.github.com/repos/ars-ishi/chat-space/issues/comments{/number}","contents_url":"https://api.github.com/repos/ars-ishi/chat-space/contents/{+path}","compare_url":"https://api.github.com/repos/ars-ishi/chat-space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ars-ishi/chat-space/merges","archive_url":"https://api.github.com/repos/ars-ishi/chat-space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ars-ishi/chat-space/downloads","issues_url":"https://api.github.com/repos/ars-ishi/chat-space/issues{/number}","pulls_url":"https://api.github.com/repos/ars-ishi/chat-space/pulls{/number}","milestones_url":"https://api.github.com/repos/ars-ishi/chat-space/milestones{/number}","notifications_url":"https://api.github.com/repos/ars-ishi/chat-space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ars-ishi/chat-space/labels{/name}","releases_url":"https://api.github.com/repos/ars-ishi/chat-space/releases{/id}","deployments_url":"https://api.github.com/repos/ars-ishi/chat-space/deployments","created_at":"2018-09-15T09:57:29Z","updated_at":"2018-09-24T11:14:13Z","pushed_at":"2018-09-26T10:34:53Z","git_url":"git://github.com/ars-ishi/chat-space.git","ssh_url":"git@github.com:ars-ishi/chat-space.git","clone_url":"https://github.com/ars-ishi/chat-space.git","svn_url":"https://github.com/ars-ishi/chat-space","homepage":null,"size":121,"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":"ars-ishi:master","ref":"master","sha":"79d612b81b60f58799a04bfbb5cc15d72ba9032f","user":{"login":"ars-ishi","id":43198227,"node_id":"MDQ6VXNlcjQzMTk4MjI3","avatar_url":"https://avatars0.githubusercontent.com/u/43198227?v=4","gravatar_id":"","url":"https://api.github.com/users/ars-ishi","html_url":"https://github.com/ars-ishi","followers_url":"https://api.github.com/users/ars-ishi/followers","following_url":"https://api.github.com/users/ars-ishi/following{/other_user}","gists_url":"https://api.github.com/users/ars-ishi/gists{/gist_id}","starred_url":"https://api.github.com/users/ars-ishi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ars-ishi/subscriptions","organizations_url":"https://api.github.com/users/ars-ishi/orgs","repos_url":"https://api.github.com/users/ars-ishi/repos","events_url":"https://api.github.com/users/ars-ishi/events{/privacy}","received_events_url":"https://api.github.com/users/ars-ishi/received_events","type":"User","site_admin":false},"repo":{"id":148890120,"node_id":"MDEwOlJlcG9zaXRvcnkxNDg4OTAxMjA=","name":"chat-space","full_name":"ars-ishi/chat-space","private":false,"owner":{"login":"ars-ishi","id":43198227,"node_id":"MDQ6VXNlcjQzMTk4MjI3","avatar_url":"https://avatars0.githubusercontent.com/u/43198227?v=4","gravatar_id":"","url":"https://api.github.com/users/ars-ishi","html_url":"https://github.com/ars-ishi","followers_url":"https://api.github.com/users/ars-ishi/followers","following_url":"https://api.github.com/users/ars-ishi/following{/other_user}","gists_url":"https://api.github.com/users/ars-ishi/gists{/gist_id}","starred_url":"https://api.github.com/users/ars-ishi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ars-ishi/subscriptions","organizations_url":"https://api.github.com/users/ars-ishi/orgs","repos_url":"https://api.github.com/users/ars-ishi/repos","events_url":"https://api.github.com/users/ars-ishi/events{/privacy}","received_events_url":"https://api.github.com/users/ars-ishi/received_events","type":"User","site_admin":false},"html_url":"https://github.com/ars-ishi/chat-space","description":null,"fork":false,"url":"https://api.github.com/repos/ars-ishi/chat-space","forks_url":"https://api.github.com/repos/ars-ishi/chat-space/forks","keys_url":"https://api.github.com/repos/ars-ishi/chat-space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ars-ishi/chat-space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ars-ishi/chat-space/teams","hooks_url":"https://api.github.com/repos/ars-ishi/chat-space/hooks","issue_events_url":"https://api.github.com/repos/ars-ishi/chat-space/issues/events{/number}","events_url":"https://api.github.com/repos/ars-ishi/chat-space/events","assignees_url":"https://api.github.com/repos/ars-ishi/chat-space/assignees{/user}","branches_url":"https://api.github.com/repos/ars-ishi/chat-space/branches{/branch}","tags_url":"https://api.github.com/repos/ars-ishi/chat-space/tags","blobs_url":"https://api.github.com/repos/ars-ishi/chat-space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ars-ishi/chat-space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ars-ishi/chat-space/git/refs{/sha}","trees_url":"https://api.github.com/repos/ars-ishi/chat-space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ars-ishi/chat-space/statuses/{sha}","languages_url":"https://api.github.com/repos/ars-ishi/chat-space/languages","stargazers_url":"https://api.github.com/repos/ars-ishi/chat-space/stargazers","contributors_url":"https://api.github.com/repos/ars-ishi/chat-space/contributors","subscribers_url":"https://api.github.com/repos/ars-ishi/chat-space/subscribers","subscription_url":"https://api.github.com/repos/ars-ishi/chat-space/subscription","commits_url":"https://api.github.com/repos/ars-ishi/chat-space/commits{/sha}","git_commits_url":"https://api.github.com/repos/ars-ishi/chat-space/git/commits{/sha}","comments_url":"https://api.github.com/repos/ars-ishi/chat-space/comments{/number}","issue_comment_url":"https://api.github.com/repos/ars-ishi/chat-space/issues/comments{/number}","contents_url":"https://api.github.com/repos/ars-ishi/chat-space/contents/{+path}","compare_url":"https://api.github.com/repos/ars-ishi/chat-space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ars-ishi/chat-space/merges","archive_url":"https://api.github.com/repos/ars-ishi/chat-space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ars-ishi/chat-space/downloads","issues_url":"https://api.github.com/repos/ars-ishi/chat-space/issues{/number}","pulls_url":"https://api.github.com/repos/ars-ishi/chat-space/pulls{/number}","milestones_url":"https://api.github.com/repos/ars-ishi/chat-space/milestones{/number}","notifications_url":"https://api.github.com/repos/ars-ishi/chat-space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ars-ishi/chat-space/labels{/name}","releases_url":"https://api.github.com/repos/ars-ishi/chat-space/releases{/id}","deployments_url":"https://api.github.com/repos/ars-ishi/chat-space/deployments","created_at":"2018-09-15T09:57:29Z","updated_at":"2018-09-24T11:14:13Z","pushed_at":"2018-09-26T10:34:53Z","git_url":"git://github.com/ars-ishi/chat-space.git","ssh_url":"git@github.com:ars-ishi/chat-space.git","clone_url":"https://github.com/ars-ishi/chat-space.git","svn_url":"https://github.com/ars-ishi/chat-space","homepage":null,"size":121,"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/ars-ishi/chat-space/pulls/12"},"html":{"href":"https://github.com/ars-ishi/chat-space/pull/12"},"issue":{"href":"https://api.github.com/repos/ars-ishi/chat-space/issues/12"},"comments":{"href":"https://api.github.com/repos/ars-ishi/chat-space/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/ars-ishi/chat-space/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/ars-ishi/chat-space/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ars-ishi/chat-space/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/ars-ishi/chat-space/statuses/e98b89031ac8462be0c3ad57bb02c7a988414624"}},"author_association":"OWNER"}}
{"actor":{"display_login":"miyagit"}}