{"action":"created","comment":{"url":"https://api.github.com/repos/fujitami/chat-space/pulls/comments/203699439","pull_request_review_id":138638845,"id":203699439,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMzY5OTQzOQ==","diff_hunk":"@@ -1,6 +1,11 @@\n class UsersController < ApplicationController\n \n   def index\n+    @users = User.where('name LIKE(?)', \"%#{params[:keyword]}%\").limit(20)","path":"app/controllers/users_controller.rb","position":4,"original_position":4,"commit_id":"93fab0e6be2d2a17af37cce542840c18024f1e20","original_commit_id":"93fab0e6be2d2a17af37cce542840c18024f1e20","user":{"login":"fujitami","id":39646282,"node_id":"MDQ6VXNlcjM5NjQ2Mjgy","avatar_url":"https://avatars1.githubusercontent.com/u/39646282?v=4","gravatar_id":"","url":"https://api.github.com/users/fujitami","html_url":"https://github.com/fujitami","followers_url":"https://api.github.com/users/fujitami/followers","following_url":"https://api.github.com/users/fujitami/following{/other_user}","gists_url":"https://api.github.com/users/fujitami/gists{/gist_id}","starred_url":"https://api.github.com/users/fujitami/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fujitami/subscriptions","organizations_url":"https://api.github.com/users/fujitami/orgs","repos_url":"https://api.github.com/users/fujitami/repos","events_url":"https://api.github.com/users/fujitami/events{/privacy}","received_events_url":"https://api.github.com/users/fujitami/received_events","type":"User","site_admin":false},"body":"深く考えていませんでした……。\r\n一旦削除し、のちに表示件数を絞る適切な理由が生じたら、それを明確にした定数を作成して設定いたします。","created_at":"2018-07-19T12:00:57Z","updated_at":"2018-07-19T12:00:57Z","html_url":"https://github.com/fujitami/chat-space/pull/11#discussion_r203699439","pull_request_url":"https://api.github.com/repos/fujitami/chat-space/pulls/11","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/fujitami/chat-space/pulls/comments/203699439"},"html":{"href":"https://github.com/fujitami/chat-space/pull/11#discussion_r203699439"},"pull_request":{"href":"https://api.github.com/repos/fujitami/chat-space/pulls/11"}},"in_reply_to_id":203366928},"pull_request":{"url":"https://api.github.com/repos/fujitami/chat-space/pulls/11","id":202240915,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAyMjQwOTE1","html_url":"https://github.com/fujitami/chat-space/pull/11","diff_url":"https://github.com/fujitami/chat-space/pull/11.diff","patch_url":"https://github.com/fujitami/chat-space/pull/11.patch","issue_url":"https://api.github.com/repos/fujitami/chat-space/issues/11","number":11,"state":"open","locked":false,"title":"インクリメンタルサーチの実装","user":{"login":"fujitami","id":39646282,"node_id":"MDQ6VXNlcjM5NjQ2Mjgy","avatar_url":"https://avatars1.githubusercontent.com/u/39646282?v=4","gravatar_id":"","url":"https://api.github.com/users/fujitami","html_url":"https://github.com/fujitami","followers_url":"https://api.github.com/users/fujitami/followers","following_url":"https://api.github.com/users/fujitami/following{/other_user}","gists_url":"https://api.github.com/users/fujitami/gists{/gist_id}","starred_url":"https://api.github.com/users/fujitami/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fujitami/subscriptions","organizations_url":"https://api.github.com/users/fujitami/orgs","repos_url":"https://api.github.com/users/fujitami/repos","events_url":"https://api.github.com/users/fujitami/events{/privacy}","received_events_url":"https://api.github.com/users/fujitami/received_events","type":"User","site_admin":false},"body":"# WHAT\r\nインクリメンタルサーチによるユーザ検索機能の実装。\r\n\r\n# WHY\r\nユーザ検索時の利便性向上のため。\r\n\r\n![default](https://user-images.githubusercontent.com/39646282/42882887-f21c1308-8ad4-11e8-9596-e5843bd33ac0.gif)","created_at":"2018-07-18T12:46:02Z","updated_at":"2018-07-19T12:00:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a4ef8cddae9d14eccd4ac628fe090aea26249b06","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/fujitami/chat-space/pulls/11/commits","review_comments_url":"https://api.github.com/repos/fujitami/chat-space/pulls/11/comments","review_comment_url":"https://api.github.com/repos/fujitami/chat-space/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fujitami/chat-space/issues/11/comments","statuses_url":"https://api.github.com/repos/fujitami/chat-space/statuses/93fab0e6be2d2a17af37cce542840c18024f1e20","head":{"label":"fujitami:Incremental-Search","ref":"Incremental-Search","sha":"93fab0e6be2d2a17af37cce542840c18024f1e20","user":{"login":"fujitami","id":39646282,"node_id":"MDQ6VXNlcjM5NjQ2Mjgy","avatar_url":"https://avatars1.githubusercontent.com/u/39646282?v=4","gravatar_id":"","url":"https://api.github.com/users/fujitami","html_url":"https://github.com/fujitami","followers_url":"https://api.github.com/users/fujitami/followers","following_url":"https://api.github.com/users/fujitami/following{/other_user}","gists_url":"https://api.github.com/users/fujitami/gists{/gist_id}","starred_url":"https://api.github.com/users/fujitami/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fujitami/subscriptions","organizations_url":"https://api.github.com/users/fujitami/orgs","repos_url":"https://api.github.com/users/fujitami/repos","events_url":"https://api.github.com/users/fujitami/events{/privacy}","received_events_url":"https://api.github.com/users/fujitami/received_events","type":"User","site_admin":false},"repo":{"id":136027890,"node_id":"MDEwOlJlcG9zaXRvcnkxMzYwMjc4OTA=","name":"chat-space","full_name":"fujitami/chat-space","owner":{"login":"fujitami","id":39646282,"node_id":"MDQ6VXNlcjM5NjQ2Mjgy","avatar_url":"https://avatars1.githubusercontent.com/u/39646282?v=4","gravatar_id":"","url":"https://api.github.com/users/fujitami","html_url":"https://github.com/fujitami","followers_url":"https://api.github.com/users/fujitami/followers","following_url":"https://api.github.com/users/fujitami/following{/other_user}","gists_url":"https://api.github.com/users/fujitami/gists{/gist_id}","starred_url":"https://api.github.com/users/fujitami/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fujitami/subscriptions","organizations_url":"https://api.github.com/users/fujitami/orgs","repos_url":"https://api.github.com/users/fujitami/repos","events_url":"https://api.github.com/users/fujitami/events{/privacy}","received_events_url":"https://api.github.com/users/fujitami/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fujitami/chat-space","description":null,"fork":false,"url":"https://api.github.com/repos/fujitami/chat-space","forks_url":"https://api.github.com/repos/fujitami/chat-space/forks","keys_url":"https://api.github.com/repos/fujitami/chat-space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fujitami/chat-space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fujitami/chat-space/teams","hooks_url":"https://api.github.com/repos/fujitami/chat-space/hooks","issue_events_url":"https://api.github.com/repos/fujitami/chat-space/issues/events{/number}","events_url":"https://api.github.com/repos/fujitami/chat-space/events","assignees_url":"https://api.github.com/repos/fujitami/chat-space/assignees{/user}","branches_url":"https://api.github.com/repos/fujitami/chat-space/branches{/branch}","tags_url":"https://api.github.com/repos/fujitami/chat-space/tags","blobs_url":"https://api.github.com/repos/fujitami/chat-space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fujitami/chat-space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fujitami/chat-space/git/refs{/sha}","trees_url":"https://api.github.com/repos/fujitami/chat-space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fujitami/chat-space/statuses/{sha}","languages_url":"https://api.github.com/repos/fujitami/chat-space/languages","stargazers_url":"https://api.github.com/repos/fujitami/chat-space/stargazers","contributors_url":"https://api.github.com/repos/fujitami/chat-space/contributors","subscribers_url":"https://api.github.com/repos/fujitami/chat-space/subscribers","subscription_url":"https://api.github.com/repos/fujitami/chat-space/subscription","commits_url":"https://api.github.com/repos/fujitami/chat-space/commits{/sha}","git_commits_url":"https://api.github.com/repos/fujitami/chat-space/git/commits{/sha}","comments_url":"https://api.github.com/repos/fujitami/chat-space/comments{/number}","issue_comment_url":"https://api.github.com/repos/fujitami/chat-space/issues/comments{/number}","contents_url":"https://api.github.com/repos/fujitami/chat-space/contents/{+path}","compare_url":"https://api.github.com/repos/fujitami/chat-space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fujitami/chat-space/merges","archive_url":"https://api.github.com/repos/fujitami/chat-space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fujitami/chat-space/downloads","issues_url":"https://api.github.com/repos/fujitami/chat-space/issues{/number}","pulls_url":"https://api.github.com/repos/fujitami/chat-space/pulls{/number}","milestones_url":"https://api.github.com/repos/fujitami/chat-space/milestones{/number}","notifications_url":"https://api.github.com/repos/fujitami/chat-space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fujitami/chat-space/labels{/name}","releases_url":"https://api.github.com/repos/fujitami/chat-space/releases{/id}","deployments_url":"https://api.github.com/repos/fujitami/chat-space/deployments","created_at":"2018-06-04T13:18:24Z","updated_at":"2018-07-15T10:31:02Z","pushed_at":"2018-07-18T12:46:03Z","git_url":"git://github.com/fujitami/chat-space.git","ssh_url":"git@github.com:fujitami/chat-space.git","clone_url":"https://github.com/fujitami/chat-space.git","svn_url":"https://github.com/fujitami/chat-space","homepage":null,"size":190,"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":"fujitami:master","ref":"master","sha":"e2c615b5bde8b3c9b419128b51a31fc4334fe517","user":{"login":"fujitami","id":39646282,"node_id":"MDQ6VXNlcjM5NjQ2Mjgy","avatar_url":"https://avatars1.githubusercontent.com/u/39646282?v=4","gravatar_id":"","url":"https://api.github.com/users/fujitami","html_url":"https://github.com/fujitami","followers_url":"https://api.github.com/users/fujitami/followers","following_url":"https://api.github.com/users/fujitami/following{/other_user}","gists_url":"https://api.github.com/users/fujitami/gists{/gist_id}","starred_url":"https://api.github.com/users/fujitami/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fujitami/subscriptions","organizations_url":"https://api.github.com/users/fujitami/orgs","repos_url":"https://api.github.com/users/fujitami/repos","events_url":"https://api.github.com/users/fujitami/events{/privacy}","received_events_url":"https://api.github.com/users/fujitami/received_events","type":"User","site_admin":false},"repo":{"id":136027890,"node_id":"MDEwOlJlcG9zaXRvcnkxMzYwMjc4OTA=","name":"chat-space","full_name":"fujitami/chat-space","owner":{"login":"fujitami","id":39646282,"node_id":"MDQ6VXNlcjM5NjQ2Mjgy","avatar_url":"https://avatars1.githubusercontent.com/u/39646282?v=4","gravatar_id":"","url":"https://api.github.com/users/fujitami","html_url":"https://github.com/fujitami","followers_url":"https://api.github.com/users/fujitami/followers","following_url":"https://api.github.com/users/fujitami/following{/other_user}","gists_url":"https://api.github.com/users/fujitami/gists{/gist_id}","starred_url":"https://api.github.com/users/fujitami/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fujitami/subscriptions","organizations_url":"https://api.github.com/users/fujitami/orgs","repos_url":"https://api.github.com/users/fujitami/repos","events_url":"https://api.github.com/users/fujitami/events{/privacy}","received_events_url":"https://api.github.com/users/fujitami/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fujitami/chat-space","description":null,"fork":false,"url":"https://api.github.com/repos/fujitami/chat-space","forks_url":"https://api.github.com/repos/fujitami/chat-space/forks","keys_url":"https://api.github.com/repos/fujitami/chat-space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fujitami/chat-space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fujitami/chat-space/teams","hooks_url":"https://api.github.com/repos/fujitami/chat-space/hooks","issue_events_url":"https://api.github.com/repos/fujitami/chat-space/issues/events{/number}","events_url":"https://api.github.com/repos/fujitami/chat-space/events","assignees_url":"https://api.github.com/repos/fujitami/chat-space/assignees{/user}","branches_url":"https://api.github.com/repos/fujitami/chat-space/branches{/branch}","tags_url":"https://api.github.com/repos/fujitami/chat-space/tags","blobs_url":"https://api.github.com/repos/fujitami/chat-space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fujitami/chat-space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fujitami/chat-space/git/refs{/sha}","trees_url":"https://api.github.com/repos/fujitami/chat-space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fujitami/chat-space/statuses/{sha}","languages_url":"https://api.github.com/repos/fujitami/chat-space/languages","stargazers_url":"https://api.github.com/repos/fujitami/chat-space/stargazers","contributors_url":"https://api.github.com/repos/fujitami/chat-space/contributors","subscribers_url":"https://api.github.com/repos/fujitami/chat-space/subscribers","subscription_url":"https://api.github.com/repos/fujitami/chat-space/subscription","commits_url":"https://api.github.com/repos/fujitami/chat-space/commits{/sha}","git_commits_url":"https://api.github.com/repos/fujitami/chat-space/git/commits{/sha}","comments_url":"https://api.github.com/repos/fujitami/chat-space/comments{/number}","issue_comment_url":"https://api.github.com/repos/fujitami/chat-space/issues/comments{/number}","contents_url":"https://api.github.com/repos/fujitami/chat-space/contents/{+path}","compare_url":"https://api.github.com/repos/fujitami/chat-space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fujitami/chat-space/merges","archive_url":"https://api.github.com/repos/fujitami/chat-space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fujitami/chat-space/downloads","issues_url":"https://api.github.com/repos/fujitami/chat-space/issues{/number}","pulls_url":"https://api.github.com/repos/fujitami/chat-space/pulls{/number}","milestones_url":"https://api.github.com/repos/fujitami/chat-space/milestones{/number}","notifications_url":"https://api.github.com/repos/fujitami/chat-space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fujitami/chat-space/labels{/name}","releases_url":"https://api.github.com/repos/fujitami/chat-space/releases{/id}","deployments_url":"https://api.github.com/repos/fujitami/chat-space/deployments","created_at":"2018-06-04T13:18:24Z","updated_at":"2018-07-15T10:31:02Z","pushed_at":"2018-07-18T12:46:03Z","git_url":"git://github.com/fujitami/chat-space.git","ssh_url":"git@github.com:fujitami/chat-space.git","clone_url":"https://github.com/fujitami/chat-space.git","svn_url":"https://github.com/fujitami/chat-space","homepage":null,"size":190,"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/fujitami/chat-space/pulls/11"},"html":{"href":"https://github.com/fujitami/chat-space/pull/11"},"issue":{"href":"https://api.github.com/repos/fujitami/chat-space/issues/11"},"comments":{"href":"https://api.github.com/repos/fujitami/chat-space/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/fujitami/chat-space/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/fujitami/chat-space/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fujitami/chat-space/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/fujitami/chat-space/statuses/93fab0e6be2d2a17af37cce542840c18024f1e20"}},"author_association":"OWNER"}}
{"actor":{"display_login":"fujitami"}}