{"action":"created","comment":{"url":"https://api.github.com/repos/awesome-academy/football_new01/pulls/comments/244937262","pull_request_review_id":188931967,"id":244937262,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0NDkzNzI2Mg==","diff_hunk":"@@ -4,4 +4,5 @@ class League < ApplicationRecord\n   has_many :teams, dependent: :destroy\n \n   scope :newest, ->{order created_at: :desc}\n+  scope :search_by_country, ->(country){where(\"country like?\", \"%#{country}%\")}","path":"app/models/league.rb","position":4,"original_position":4,"commit_id":"7db90552683690a313bd5f1fd998b210c405db8a","original_commit_id":"7db90552683690a313bd5f1fd998b210c405db8a","user":{"login":"phamvanbk11","id":10772245,"node_id":"MDQ6VXNlcjEwNzcyMjQ1","avatar_url":"https://avatars1.githubusercontent.com/u/10772245?v=4","gravatar_id":"","url":"https://api.github.com/users/phamvanbk11","html_url":"https://github.com/phamvanbk11","followers_url":"https://api.github.com/users/phamvanbk11/followers","following_url":"https://api.github.com/users/phamvanbk11/following{/other_user}","gists_url":"https://api.github.com/users/phamvanbk11/gists{/gist_id}","starred_url":"https://api.github.com/users/phamvanbk11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phamvanbk11/subscriptions","organizations_url":"https://api.github.com/users/phamvanbk11/orgs","repos_url":"https://api.github.com/users/phamvanbk11/repos","events_url":"https://api.github.com/users/phamvanbk11/events{/privacy}","received_events_url":"https://api.github.com/users/phamvanbk11/received_events","type":"User","site_admin":false},"body":"xóa ()","created_at":"2019-01-03T08:56:55Z","updated_at":"2019-01-03T08:57:44Z","html_url":"https://github.com/awesome-academy/football_new01/pull/8#discussion_r244937262","pull_request_url":"https://api.github.com/repos/awesome-academy/football_new01/pulls/8","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/awesome-academy/football_new01/pulls/comments/244937262"},"html":{"href":"https://github.com/awesome-academy/football_new01/pull/8#discussion_r244937262"},"pull_request":{"href":"https://api.github.com/repos/awesome-academy/football_new01/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/awesome-academy/football_new01/pulls/8","id":241923849,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQxOTIzODQ5","html_url":"https://github.com/awesome-academy/football_new01/pull/8","diff_url":"https://github.com/awesome-academy/football_new01/pull/8.diff","patch_url":"https://github.com/awesome-academy/football_new01/pull/8.patch","issue_url":"https://api.github.com/repos/awesome-academy/football_new01/issues/8","number":8,"state":"open","locked":false,"title":"show teams and search by country","user":{"login":"lanlehoang67","id":42288932,"node_id":"MDQ6VXNlcjQyMjg4OTMy","avatar_url":"https://avatars3.githubusercontent.com/u/42288932?v=4","gravatar_id":"","url":"https://api.github.com/users/lanlehoang67","html_url":"https://github.com/lanlehoang67","followers_url":"https://api.github.com/users/lanlehoang67/followers","following_url":"https://api.github.com/users/lanlehoang67/following{/other_user}","gists_url":"https://api.github.com/users/lanlehoang67/gists{/gist_id}","starred_url":"https://api.github.com/users/lanlehoang67/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lanlehoang67/subscriptions","organizations_url":"https://api.github.com/users/lanlehoang67/orgs","repos_url":"https://api.github.com/users/lanlehoang67/repos","events_url":"https://api.github.com/users/lanlehoang67/events{/privacy}","received_events_url":"https://api.github.com/users/lanlehoang67/received_events","type":"User","site_admin":false},"body":"![image](https://user-images.githubusercontent.com/42288932/50627398-d7e91100-0f65-11e9-9d56-75471004c42e.png)\r\n","created_at":"2019-01-03T07:42:54Z","updated_at":"2019-01-03T08:57:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ad4561f4cb313951b66706381ab47608e0730c5e","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/awesome-academy/football_new01/pulls/8/commits","review_comments_url":"https://api.github.com/repos/awesome-academy/football_new01/pulls/8/comments","review_comment_url":"https://api.github.com/repos/awesome-academy/football_new01/pulls/comments{/number}","comments_url":"https://api.github.com/repos/awesome-academy/football_new01/issues/8/comments","statuses_url":"https://api.github.com/repos/awesome-academy/football_new01/statuses/7db90552683690a313bd5f1fd998b210c405db8a","head":{"label":"lanlehoang67:show_teams","ref":"show_teams","sha":"7db90552683690a313bd5f1fd998b210c405db8a","user":{"login":"lanlehoang67","id":42288932,"node_id":"MDQ6VXNlcjQyMjg4OTMy","avatar_url":"https://avatars3.githubusercontent.com/u/42288932?v=4","gravatar_id":"","url":"https://api.github.com/users/lanlehoang67","html_url":"https://github.com/lanlehoang67","followers_url":"https://api.github.com/users/lanlehoang67/followers","following_url":"https://api.github.com/users/lanlehoang67/following{/other_user}","gists_url":"https://api.github.com/users/lanlehoang67/gists{/gist_id}","starred_url":"https://api.github.com/users/lanlehoang67/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lanlehoang67/subscriptions","organizations_url":"https://api.github.com/users/lanlehoang67/orgs","repos_url":"https://api.github.com/users/lanlehoang67/repos","events_url":"https://api.github.com/users/lanlehoang67/events{/privacy}","received_events_url":"https://api.github.com/users/lanlehoang67/received_events","type":"User","site_admin":false},"repo":{"id":162398787,"node_id":"MDEwOlJlcG9zaXRvcnkxNjIzOTg3ODc=","name":"football_new01","full_name":"lanlehoang67/football_new01","private":false,"owner":{"login":"lanlehoang67","id":42288932,"node_id":"MDQ6VXNlcjQyMjg4OTMy","avatar_url":"https://avatars3.githubusercontent.com/u/42288932?v=4","gravatar_id":"","url":"https://api.github.com/users/lanlehoang67","html_url":"https://github.com/lanlehoang67","followers_url":"https://api.github.com/users/lanlehoang67/followers","following_url":"https://api.github.com/users/lanlehoang67/following{/other_user}","gists_url":"https://api.github.com/users/lanlehoang67/gists{/gist_id}","starred_url":"https://api.github.com/users/lanlehoang67/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lanlehoang67/subscriptions","organizations_url":"https://api.github.com/users/lanlehoang67/orgs","repos_url":"https://api.github.com/users/lanlehoang67/repos","events_url":"https://api.github.com/users/lanlehoang67/events{/privacy}","received_events_url":"https://api.github.com/users/lanlehoang67/received_events","type":"User","site_admin":false},"html_url":"https://github.com/lanlehoang67/football_new01","description":null,"fork":true,"url":"https://api.github.com/repos/lanlehoang67/football_new01","forks_url":"https://api.github.com/repos/lanlehoang67/football_new01/forks","keys_url":"https://api.github.com/repos/lanlehoang67/football_new01/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lanlehoang67/football_new01/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lanlehoang67/football_new01/teams","hooks_url":"https://api.github.com/repos/lanlehoang67/football_new01/hooks","issue_events_url":"https://api.github.com/repos/lanlehoang67/football_new01/issues/events{/number}","events_url":"https://api.github.com/repos/lanlehoang67/football_new01/events","assignees_url":"https://api.github.com/repos/lanlehoang67/football_new01/assignees{/user}","branches_url":"https://api.github.com/repos/lanlehoang67/football_new01/branches{/branch}","tags_url":"https://api.github.com/repos/lanlehoang67/football_new01/tags","blobs_url":"https://api.github.com/repos/lanlehoang67/football_new01/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lanlehoang67/football_new01/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lanlehoang67/football_new01/git/refs{/sha}","trees_url":"https://api.github.com/repos/lanlehoang67/football_new01/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lanlehoang67/football_new01/statuses/{sha}","languages_url":"https://api.github.com/repos/lanlehoang67/football_new01/languages","stargazers_url":"https://api.github.com/repos/lanlehoang67/football_new01/stargazers","contributors_url":"https://api.github.com/repos/lanlehoang67/football_new01/contributors","subscribers_url":"https://api.github.com/repos/lanlehoang67/football_new01/subscribers","subscription_url":"https://api.github.com/repos/lanlehoang67/football_new01/subscription","commits_url":"https://api.github.com/repos/lanlehoang67/football_new01/commits{/sha}","git_commits_url":"https://api.github.com/repos/lanlehoang67/football_new01/git/commits{/sha}","comments_url":"https://api.github.com/repos/lanlehoang67/football_new01/comments{/number}","issue_comment_url":"https://api.github.com/repos/lanlehoang67/football_new01/issues/comments{/number}","contents_url":"https://api.github.com/repos/lanlehoang67/football_new01/contents/{+path}","compare_url":"https://api.github.com/repos/lanlehoang67/football_new01/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lanlehoang67/football_new01/merges","archive_url":"https://api.github.com/repos/lanlehoang67/football_new01/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lanlehoang67/football_new01/downloads","issues_url":"https://api.github.com/repos/lanlehoang67/football_new01/issues{/number}","pulls_url":"https://api.github.com/repos/lanlehoang67/football_new01/pulls{/number}","milestones_url":"https://api.github.com/repos/lanlehoang67/football_new01/milestones{/number}","notifications_url":"https://api.github.com/repos/lanlehoang67/football_new01/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lanlehoang67/football_new01/labels{/name}","releases_url":"https://api.github.com/repos/lanlehoang67/football_new01/releases{/id}","deployments_url":"https://api.github.com/repos/lanlehoang67/football_new01/deployments","created_at":"2018-12-19T07:24:44Z","updated_at":"2018-12-19T07:24:46Z","pushed_at":"2019-01-03T07:09:59Z","git_url":"git://github.com/lanlehoang67/football_new01.git","ssh_url":"git@github.com:lanlehoang67/football_new01.git","clone_url":"https://github.com/lanlehoang67/football_new01.git","svn_url":"https://github.com/lanlehoang67/football_new01","homepage":null,"size":3955,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"awesome-academy:master","ref":"master","sha":"c5b586d64ac11ad9f813d1c36bd8bdaaddc9b6e2","user":{"login":"awesome-academy","id":33895223,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMzODk1MjIz","avatar_url":"https://avatars0.githubusercontent.com/u/33895223?v=4","gravatar_id":"","url":"https://api.github.com/users/awesome-academy","html_url":"https://github.com/awesome-academy","followers_url":"https://api.github.com/users/awesome-academy/followers","following_url":"https://api.github.com/users/awesome-academy/following{/other_user}","gists_url":"https://api.github.com/users/awesome-academy/gists{/gist_id}","starred_url":"https://api.github.com/users/awesome-academy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awesome-academy/subscriptions","organizations_url":"https://api.github.com/users/awesome-academy/orgs","repos_url":"https://api.github.com/users/awesome-academy/repos","events_url":"https://api.github.com/users/awesome-academy/events{/privacy}","received_events_url":"https://api.github.com/users/awesome-academy/received_events","type":"Organization","site_admin":false},"repo":{"id":161607517,"node_id":"MDEwOlJlcG9zaXRvcnkxNjE2MDc1MTc=","name":"football_new01","full_name":"awesome-academy/football_new01","private":false,"owner":{"login":"awesome-academy","id":33895223,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMzODk1MjIz","avatar_url":"https://avatars0.githubusercontent.com/u/33895223?v=4","gravatar_id":"","url":"https://api.github.com/users/awesome-academy","html_url":"https://github.com/awesome-academy","followers_url":"https://api.github.com/users/awesome-academy/followers","following_url":"https://api.github.com/users/awesome-academy/following{/other_user}","gists_url":"https://api.github.com/users/awesome-academy/gists{/gist_id}","starred_url":"https://api.github.com/users/awesome-academy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awesome-academy/subscriptions","organizations_url":"https://api.github.com/users/awesome-academy/orgs","repos_url":"https://api.github.com/users/awesome-academy/repos","events_url":"https://api.github.com/users/awesome-academy/events{/privacy}","received_events_url":"https://api.github.com/users/awesome-academy/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/awesome-academy/football_new01","description":null,"fork":false,"url":"https://api.github.com/repos/awesome-academy/football_new01","forks_url":"https://api.github.com/repos/awesome-academy/football_new01/forks","keys_url":"https://api.github.com/repos/awesome-academy/football_new01/keys{/key_id}","collaborators_url":"https://api.github.com/repos/awesome-academy/football_new01/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/awesome-academy/football_new01/teams","hooks_url":"https://api.github.com/repos/awesome-academy/football_new01/hooks","issue_events_url":"https://api.github.com/repos/awesome-academy/football_new01/issues/events{/number}","events_url":"https://api.github.com/repos/awesome-academy/football_new01/events","assignees_url":"https://api.github.com/repos/awesome-academy/football_new01/assignees{/user}","branches_url":"https://api.github.com/repos/awesome-academy/football_new01/branches{/branch}","tags_url":"https://api.github.com/repos/awesome-academy/football_new01/tags","blobs_url":"https://api.github.com/repos/awesome-academy/football_new01/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/awesome-academy/football_new01/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/awesome-academy/football_new01/git/refs{/sha}","trees_url":"https://api.github.com/repos/awesome-academy/football_new01/git/trees{/sha}","statuses_url":"https://api.github.com/repos/awesome-academy/football_new01/statuses/{sha}","languages_url":"https://api.github.com/repos/awesome-academy/football_new01/languages","stargazers_url":"https://api.github.com/repos/awesome-academy/football_new01/stargazers","contributors_url":"https://api.github.com/repos/awesome-academy/football_new01/contributors","subscribers_url":"https://api.github.com/repos/awesome-academy/football_new01/subscribers","subscription_url":"https://api.github.com/repos/awesome-academy/football_new01/subscription","commits_url":"https://api.github.com/repos/awesome-academy/football_new01/commits{/sha}","git_commits_url":"https://api.github.com/repos/awesome-academy/football_new01/git/commits{/sha}","comments_url":"https://api.github.com/repos/awesome-academy/football_new01/comments{/number}","issue_comment_url":"https://api.github.com/repos/awesome-academy/football_new01/issues/comments{/number}","contents_url":"https://api.github.com/repos/awesome-academy/football_new01/contents/{+path}","compare_url":"https://api.github.com/repos/awesome-academy/football_new01/compare/{base}...{head}","merges_url":"https://api.github.com/repos/awesome-academy/football_new01/merges","archive_url":"https://api.github.com/repos/awesome-academy/football_new01/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/awesome-academy/football_new01/downloads","issues_url":"https://api.github.com/repos/awesome-academy/football_new01/issues{/number}","pulls_url":"https://api.github.com/repos/awesome-academy/football_new01/pulls{/number}","milestones_url":"https://api.github.com/repos/awesome-academy/football_new01/milestones{/number}","notifications_url":"https://api.github.com/repos/awesome-academy/football_new01/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/awesome-academy/football_new01/labels{/name}","releases_url":"https://api.github.com/repos/awesome-academy/football_new01/releases{/id}","deployments_url":"https://api.github.com/repos/awesome-academy/football_new01/deployments","created_at":"2018-12-13T08:27:55Z","updated_at":"2019-01-02T08:38:34Z","pushed_at":"2019-01-03T07:42:55Z","git_url":"git://github.com/awesome-academy/football_new01.git","ssh_url":"git@github.com:awesome-academy/football_new01.git","clone_url":"https://github.com/awesome-academy/football_new01.git","svn_url":"https://github.com/awesome-academy/football_new01","homepage":null,"size":3951,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/awesome-academy/football_new01/pulls/8"},"html":{"href":"https://github.com/awesome-academy/football_new01/pull/8"},"issue":{"href":"https://api.github.com/repos/awesome-academy/football_new01/issues/8"},"comments":{"href":"https://api.github.com/repos/awesome-academy/football_new01/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/awesome-academy/football_new01/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/awesome-academy/football_new01/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/awesome-academy/football_new01/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/awesome-academy/football_new01/statuses/7db90552683690a313bd5f1fd998b210c405db8a"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"phamvanbk11"}}