{"action":"created","comment":{"url":"https://api.github.com/repos/cyder/emojix/pulls/comments/193056104","pull_request_review_id":125949338,"id":193056104,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5MzA1NjEwNA==","diff_hunk":"@@ -1,3 +1,26 @@\n class Emoji < ApplicationRecord\n   belongs_to :user\n+  has_many :download_logs, dependent: :destroy\n+  has_many :tags, dependent: :destroy\n+\n+  def number_of_downloaded\n+    download_logs.count\n+  end\n+\n+  scope :keyword_search, ->(keyword) {","path":"app/models/emoji.rb","position":10,"original_position":10,"commit_id":"931f0990192882de90c494137e769abfbe6cc313","original_commit_id":"931f0990192882de90c494137e769abfbe6cc313","user":{"login":"tanishi","id":3890820,"node_id":"MDQ6VXNlcjM4OTA4MjA=","avatar_url":"https://avatars1.githubusercontent.com/u/3890820?v=4","gravatar_id":"","url":"https://api.github.com/users/tanishi","html_url":"https://github.com/tanishi","followers_url":"https://api.github.com/users/tanishi/followers","following_url":"https://api.github.com/users/tanishi/following{/other_user}","gists_url":"https://api.github.com/users/tanishi/gists{/gist_id}","starred_url":"https://api.github.com/users/tanishi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tanishi/subscriptions","organizations_url":"https://api.github.com/users/tanishi/orgs","repos_url":"https://api.github.com/users/tanishi/repos","events_url":"https://api.github.com/users/tanishi/events{/privacy}","received_events_url":"https://api.github.com/users/tanishi/received_events","type":"User","site_admin":false},"body":"クラスメソッドっぽく使えるなぁと思ってたら\r\nこれ便利ね","created_at":"2018-06-05T12:40:36Z","updated_at":"2018-06-05T12:40:36Z","html_url":"https://github.com/cyder/emojix/pull/33#discussion_r193056104","pull_request_url":"https://api.github.com/repos/cyder/emojix/pulls/33","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/cyder/emojix/pulls/comments/193056104"},"html":{"href":"https://github.com/cyder/emojix/pull/33#discussion_r193056104"},"pull_request":{"href":"https://api.github.com/repos/cyder/emojix/pulls/33"}},"in_reply_to_id":193054422},"pull_request":{"url":"https://api.github.com/repos/cyder/emojix/pulls/33","id":192372640,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkyMzcyNjQw","html_url":"https://github.com/cyder/emojix/pull/33","diff_url":"https://github.com/cyder/emojix/pull/33.diff","patch_url":"https://github.com/cyder/emojix/pull/33.patch","issue_url":"https://api.github.com/repos/cyder/emojix/issues/33","number":33,"state":"open","locked":false,"title":"絵文字を検索できるようにした","user":{"login":"Mori-Atsushi","id":13435109,"node_id":"MDQ6VXNlcjEzNDM1MTA5","avatar_url":"https://avatars0.githubusercontent.com/u/13435109?v=4","gravatar_id":"","url":"https://api.github.com/users/Mori-Atsushi","html_url":"https://github.com/Mori-Atsushi","followers_url":"https://api.github.com/users/Mori-Atsushi/followers","following_url":"https://api.github.com/users/Mori-Atsushi/following{/other_user}","gists_url":"https://api.github.com/users/Mori-Atsushi/gists{/gist_id}","starred_url":"https://api.github.com/users/Mori-Atsushi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mori-Atsushi/subscriptions","organizations_url":"https://api.github.com/users/Mori-Atsushi/orgs","repos_url":"https://api.github.com/users/Mori-Atsushi/repos","events_url":"https://api.github.com/users/Mori-Atsushi/events{/privacy}","received_events_url":"https://api.github.com/users/Mori-Atsushi/received_events","type":"User","site_admin":false},"body":"close #32 \r\nページングは別Issueで\r\n細かいエラー処理もまだ入れてません。","created_at":"2018-06-04T11:05:47Z","updated_at":"2018-06-05T12:40:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9aa10d008595887fefc53c2ac71f0f7c9ff61911","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":878208113,"node_id":"MDU6TGFiZWw4NzgyMDgxMTM=","url":"https://api.github.com/repos/cyder/emojix/labels/wait%20for%20review","name":"wait for review","color":"f8c6ff","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/cyder/emojix/pulls/33/commits","review_comments_url":"https://api.github.com/repos/cyder/emojix/pulls/33/comments","review_comment_url":"https://api.github.com/repos/cyder/emojix/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cyder/emojix/issues/33/comments","statuses_url":"https://api.github.com/repos/cyder/emojix/statuses/931f0990192882de90c494137e769abfbe6cc313","head":{"label":"cyder:32-emoji-search","ref":"32-emoji-search","sha":"931f0990192882de90c494137e769abfbe6cc313","user":{"login":"cyder","id":25344502,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MzQ0NTAy","avatar_url":"https://avatars3.githubusercontent.com/u/25344502?v=4","gravatar_id":"","url":"https://api.github.com/users/cyder","html_url":"https://github.com/cyder","followers_url":"https://api.github.com/users/cyder/followers","following_url":"https://api.github.com/users/cyder/following{/other_user}","gists_url":"https://api.github.com/users/cyder/gists{/gist_id}","starred_url":"https://api.github.com/users/cyder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyder/subscriptions","organizations_url":"https://api.github.com/users/cyder/orgs","repos_url":"https://api.github.com/users/cyder/repos","events_url":"https://api.github.com/users/cyder/events{/privacy}","received_events_url":"https://api.github.com/users/cyder/received_events","type":"Organization","site_admin":false},"repo":{"id":125134914,"node_id":"MDEwOlJlcG9zaXRvcnkxMjUxMzQ5MTQ=","name":"emojix","full_name":"cyder/emojix","owner":{"login":"cyder","id":25344502,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MzQ0NTAy","avatar_url":"https://avatars3.githubusercontent.com/u/25344502?v=4","gravatar_id":"","url":"https://api.github.com/users/cyder","html_url":"https://github.com/cyder","followers_url":"https://api.github.com/users/cyder/followers","following_url":"https://api.github.com/users/cyder/following{/other_user}","gists_url":"https://api.github.com/users/cyder/gists{/gist_id}","starred_url":"https://api.github.com/users/cyder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyder/subscriptions","organizations_url":"https://api.github.com/users/cyder/orgs","repos_url":"https://api.github.com/users/cyder/repos","events_url":"https://api.github.com/users/cyder/events{/privacy}","received_events_url":"https://api.github.com/users/cyder/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cyder/emojix","description":"Let's share slack emojis!","fork":false,"url":"https://api.github.com/repos/cyder/emojix","forks_url":"https://api.github.com/repos/cyder/emojix/forks","keys_url":"https://api.github.com/repos/cyder/emojix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cyder/emojix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cyder/emojix/teams","hooks_url":"https://api.github.com/repos/cyder/emojix/hooks","issue_events_url":"https://api.github.com/repos/cyder/emojix/issues/events{/number}","events_url":"https://api.github.com/repos/cyder/emojix/events","assignees_url":"https://api.github.com/repos/cyder/emojix/assignees{/user}","branches_url":"https://api.github.com/repos/cyder/emojix/branches{/branch}","tags_url":"https://api.github.com/repos/cyder/emojix/tags","blobs_url":"https://api.github.com/repos/cyder/emojix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cyder/emojix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cyder/emojix/git/refs{/sha}","trees_url":"https://api.github.com/repos/cyder/emojix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cyder/emojix/statuses/{sha}","languages_url":"https://api.github.com/repos/cyder/emojix/languages","stargazers_url":"https://api.github.com/repos/cyder/emojix/stargazers","contributors_url":"https://api.github.com/repos/cyder/emojix/contributors","subscribers_url":"https://api.github.com/repos/cyder/emojix/subscribers","subscription_url":"https://api.github.com/repos/cyder/emojix/subscription","commits_url":"https://api.github.com/repos/cyder/emojix/commits{/sha}","git_commits_url":"https://api.github.com/repos/cyder/emojix/git/commits{/sha}","comments_url":"https://api.github.com/repos/cyder/emojix/comments{/number}","issue_comment_url":"https://api.github.com/repos/cyder/emojix/issues/comments{/number}","contents_url":"https://api.github.com/repos/cyder/emojix/contents/{+path}","compare_url":"https://api.github.com/repos/cyder/emojix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cyder/emojix/merges","archive_url":"https://api.github.com/repos/cyder/emojix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cyder/emojix/downloads","issues_url":"https://api.github.com/repos/cyder/emojix/issues{/number}","pulls_url":"https://api.github.com/repos/cyder/emojix/pulls{/number}","milestones_url":"https://api.github.com/repos/cyder/emojix/milestones{/number}","notifications_url":"https://api.github.com/repos/cyder/emojix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cyder/emojix/labels{/name}","releases_url":"https://api.github.com/repos/cyder/emojix/releases{/id}","deployments_url":"https://api.github.com/repos/cyder/emojix/deployments","created_at":"2018-03-14T01:02:53Z","updated_at":"2018-04-13T10:41:19Z","pushed_at":"2018-06-04T11:21:01Z","git_url":"git://github.com/cyder/emojix.git","ssh_url":"git@github.com:cyder/emojix.git","clone_url":"https://github.com/cyder/emojix.git","svn_url":"https://github.com/cyder/emojix","homepage":null,"size":305,"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":1,"mirror_url":null,"archived":false,"open_issues_count":6,"license":null,"forks":1,"open_issues":6,"watchers":0,"default_branch":"master"}},"base":{"label":"cyder:master","ref":"master","sha":"aaa128302441098e9ec02f9e385319620190f209","user":{"login":"cyder","id":25344502,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MzQ0NTAy","avatar_url":"https://avatars3.githubusercontent.com/u/25344502?v=4","gravatar_id":"","url":"https://api.github.com/users/cyder","html_url":"https://github.com/cyder","followers_url":"https://api.github.com/users/cyder/followers","following_url":"https://api.github.com/users/cyder/following{/other_user}","gists_url":"https://api.github.com/users/cyder/gists{/gist_id}","starred_url":"https://api.github.com/users/cyder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyder/subscriptions","organizations_url":"https://api.github.com/users/cyder/orgs","repos_url":"https://api.github.com/users/cyder/repos","events_url":"https://api.github.com/users/cyder/events{/privacy}","received_events_url":"https://api.github.com/users/cyder/received_events","type":"Organization","site_admin":false},"repo":{"id":125134914,"node_id":"MDEwOlJlcG9zaXRvcnkxMjUxMzQ5MTQ=","name":"emojix","full_name":"cyder/emojix","owner":{"login":"cyder","id":25344502,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MzQ0NTAy","avatar_url":"https://avatars3.githubusercontent.com/u/25344502?v=4","gravatar_id":"","url":"https://api.github.com/users/cyder","html_url":"https://github.com/cyder","followers_url":"https://api.github.com/users/cyder/followers","following_url":"https://api.github.com/users/cyder/following{/other_user}","gists_url":"https://api.github.com/users/cyder/gists{/gist_id}","starred_url":"https://api.github.com/users/cyder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyder/subscriptions","organizations_url":"https://api.github.com/users/cyder/orgs","repos_url":"https://api.github.com/users/cyder/repos","events_url":"https://api.github.com/users/cyder/events{/privacy}","received_events_url":"https://api.github.com/users/cyder/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cyder/emojix","description":"Let's share slack emojis!","fork":false,"url":"https://api.github.com/repos/cyder/emojix","forks_url":"https://api.github.com/repos/cyder/emojix/forks","keys_url":"https://api.github.com/repos/cyder/emojix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cyder/emojix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cyder/emojix/teams","hooks_url":"https://api.github.com/repos/cyder/emojix/hooks","issue_events_url":"https://api.github.com/repos/cyder/emojix/issues/events{/number}","events_url":"https://api.github.com/repos/cyder/emojix/events","assignees_url":"https://api.github.com/repos/cyder/emojix/assignees{/user}","branches_url":"https://api.github.com/repos/cyder/emojix/branches{/branch}","tags_url":"https://api.github.com/repos/cyder/emojix/tags","blobs_url":"https://api.github.com/repos/cyder/emojix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cyder/emojix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cyder/emojix/git/refs{/sha}","trees_url":"https://api.github.com/repos/cyder/emojix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cyder/emojix/statuses/{sha}","languages_url":"https://api.github.com/repos/cyder/emojix/languages","stargazers_url":"https://api.github.com/repos/cyder/emojix/stargazers","contributors_url":"https://api.github.com/repos/cyder/emojix/contributors","subscribers_url":"https://api.github.com/repos/cyder/emojix/subscribers","subscription_url":"https://api.github.com/repos/cyder/emojix/subscription","commits_url":"https://api.github.com/repos/cyder/emojix/commits{/sha}","git_commits_url":"https://api.github.com/repos/cyder/emojix/git/commits{/sha}","comments_url":"https://api.github.com/repos/cyder/emojix/comments{/number}","issue_comment_url":"https://api.github.com/repos/cyder/emojix/issues/comments{/number}","contents_url":"https://api.github.com/repos/cyder/emojix/contents/{+path}","compare_url":"https://api.github.com/repos/cyder/emojix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cyder/emojix/merges","archive_url":"https://api.github.com/repos/cyder/emojix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cyder/emojix/downloads","issues_url":"https://api.github.com/repos/cyder/emojix/issues{/number}","pulls_url":"https://api.github.com/repos/cyder/emojix/pulls{/number}","milestones_url":"https://api.github.com/repos/cyder/emojix/milestones{/number}","notifications_url":"https://api.github.com/repos/cyder/emojix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cyder/emojix/labels{/name}","releases_url":"https://api.github.com/repos/cyder/emojix/releases{/id}","deployments_url":"https://api.github.com/repos/cyder/emojix/deployments","created_at":"2018-03-14T01:02:53Z","updated_at":"2018-04-13T10:41:19Z","pushed_at":"2018-06-04T11:21:01Z","git_url":"git://github.com/cyder/emojix.git","ssh_url":"git@github.com:cyder/emojix.git","clone_url":"https://github.com/cyder/emojix.git","svn_url":"https://github.com/cyder/emojix","homepage":null,"size":305,"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":1,"mirror_url":null,"archived":false,"open_issues_count":6,"license":null,"forks":1,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cyder/emojix/pulls/33"},"html":{"href":"https://github.com/cyder/emojix/pull/33"},"issue":{"href":"https://api.github.com/repos/cyder/emojix/issues/33"},"comments":{"href":"https://api.github.com/repos/cyder/emojix/issues/33/comments"},"review_comments":{"href":"https://api.github.com/repos/cyder/emojix/pulls/33/comments"},"review_comment":{"href":"https://api.github.com/repos/cyder/emojix/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cyder/emojix/pulls/33/commits"},"statuses":{"href":"https://api.github.com/repos/cyder/emojix/statuses/931f0990192882de90c494137e769abfbe6cc313"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"tanishi"}}