{"action":"created","comment":{"url":"https://api.github.com/repos/nguyenxuantuan/sample_app/pulls/comments/228025491","pull_request_review_id":168198148,"id":228025491,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyODAyNTQ5MQ==","diff_hunk":"@@ -4,4 +4,13 @@ class ApplicationController < ActionController::Base\n   def hello\n     render html: \"hello, world!\"\n   end\n-end\n+  before_action :set_locale\n+  def set_locale\n+    I18n.locale = params[:locale] || I18n.default_locale\n+  end\n+  def set_locale\n+  locale = params[:locale].to_s.strip.to_sym\n+  I18n.locale = I18n.available_locales.include?(locale) ?\n+    locale : I18n.default_locale\n+  end\n+end","path":"app/controllers/application_controller.rb","position":14,"original_position":14,"commit_id":"9db3fe908ce3a05d719465765e7c7557e1602aba","original_commit_id":"9db3fe908ce3a05d719465765e7c7557e1602aba","user":{"login":"huuphuc93","id":32001464,"node_id":"MDQ6VXNlcjMyMDAxNDY0","avatar_url":"https://avatars1.githubusercontent.com/u/32001464?v=4","gravatar_id":"","url":"https://api.github.com/users/huuphuc93","html_url":"https://github.com/huuphuc93","followers_url":"https://api.github.com/users/huuphuc93/followers","following_url":"https://api.github.com/users/huuphuc93/following{/other_user}","gists_url":"https://api.github.com/users/huuphuc93/gists{/gist_id}","starred_url":"https://api.github.com/users/huuphuc93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huuphuc93/subscriptions","organizations_url":"https://api.github.com/users/huuphuc93/orgs","repos_url":"https://api.github.com/users/huuphuc93/repos","events_url":"https://api.github.com/users/huuphuc93/events{/privacy}","received_events_url":"https://api.github.com/users/huuphuc93/received_events","type":"User","site_admin":false},"body":"Thêm 1 dòng trắng cuối mỗi file","created_at":"2018-10-25T03:35:37Z","updated_at":"2018-10-25T03:40:50Z","html_url":"https://github.com/nguyenxuantuan/sample_app/pull/2#discussion_r228025491","pull_request_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/pulls/2","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/nguyenxuantuan/sample_app/pulls/comments/228025491"},"html":{"href":"https://github.com/nguyenxuantuan/sample_app/pull/2#discussion_r228025491"},"pull_request":{"href":"https://api.github.com/repos/nguyenxuantuan/sample_app/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/nguyenxuantuan/sample_app/pulls/2","id":225356703,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI1MzU2NzAz","html_url":"https://github.com/nguyenxuantuan/sample_app/pull/2","diff_url":"https://github.com/nguyenxuantuan/sample_app/pull/2.diff","patch_url":"https://github.com/nguyenxuantuan/sample_app/pull/2.patch","issue_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/issues/2","number":2,"state":"open","locked":false,"title":"Add a full_title helper","user":{"login":"nguyenxuantuan","id":39181597,"node_id":"MDQ6VXNlcjM5MTgxNTk3","avatar_url":"https://avatars2.githubusercontent.com/u/39181597?v=4","gravatar_id":"","url":"https://api.github.com/users/nguyenxuantuan","html_url":"https://github.com/nguyenxuantuan","followers_url":"https://api.github.com/users/nguyenxuantuan/followers","following_url":"https://api.github.com/users/nguyenxuantuan/following{/other_user}","gists_url":"https://api.github.com/users/nguyenxuantuan/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenxuantuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenxuantuan/subscriptions","organizations_url":"https://api.github.com/users/nguyenxuantuan/orgs","repos_url":"https://api.github.com/users/nguyenxuantuan/repos","events_url":"https://api.github.com/users/nguyenxuantuan/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenxuantuan/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-10-24T10:57:25Z","updated_at":"2018-10-25T03:40:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a7948477f07b356b4126b744d83e4e5be33857bc","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/pulls/2/commits","review_comments_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/pulls/2/comments","review_comment_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/issues/2/comments","statuses_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/statuses/9db3fe908ce3a05d719465765e7c7557e1602aba","head":{"label":"nguyenxuantuan:rails-flavored-ruby","ref":"rails-flavored-ruby","sha":"9db3fe908ce3a05d719465765e7c7557e1602aba","user":{"login":"nguyenxuantuan","id":39181597,"node_id":"MDQ6VXNlcjM5MTgxNTk3","avatar_url":"https://avatars2.githubusercontent.com/u/39181597?v=4","gravatar_id":"","url":"https://api.github.com/users/nguyenxuantuan","html_url":"https://github.com/nguyenxuantuan","followers_url":"https://api.github.com/users/nguyenxuantuan/followers","following_url":"https://api.github.com/users/nguyenxuantuan/following{/other_user}","gists_url":"https://api.github.com/users/nguyenxuantuan/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenxuantuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenxuantuan/subscriptions","organizations_url":"https://api.github.com/users/nguyenxuantuan/orgs","repos_url":"https://api.github.com/users/nguyenxuantuan/repos","events_url":"https://api.github.com/users/nguyenxuantuan/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenxuantuan/received_events","type":"User","site_admin":false},"repo":{"id":154447484,"node_id":"MDEwOlJlcG9zaXRvcnkxNTQ0NDc0ODQ=","name":"sample_app","full_name":"nguyenxuantuan/sample_app","private":false,"owner":{"login":"nguyenxuantuan","id":39181597,"node_id":"MDQ6VXNlcjM5MTgxNTk3","avatar_url":"https://avatars2.githubusercontent.com/u/39181597?v=4","gravatar_id":"","url":"https://api.github.com/users/nguyenxuantuan","html_url":"https://github.com/nguyenxuantuan","followers_url":"https://api.github.com/users/nguyenxuantuan/followers","following_url":"https://api.github.com/users/nguyenxuantuan/following{/other_user}","gists_url":"https://api.github.com/users/nguyenxuantuan/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenxuantuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenxuantuan/subscriptions","organizations_url":"https://api.github.com/users/nguyenxuantuan/orgs","repos_url":"https://api.github.com/users/nguyenxuantuan/repos","events_url":"https://api.github.com/users/nguyenxuantuan/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenxuantuan/received_events","type":"User","site_admin":false},"html_url":"https://github.com/nguyenxuantuan/sample_app","description":"demo-git","fork":false,"url":"https://api.github.com/repos/nguyenxuantuan/sample_app","forks_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/forks","keys_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/teams","hooks_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/hooks","issue_events_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/issues/events{/number}","events_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/events","assignees_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/assignees{/user}","branches_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/branches{/branch}","tags_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/tags","blobs_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/statuses/{sha}","languages_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/languages","stargazers_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/stargazers","contributors_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/contributors","subscribers_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/subscribers","subscription_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/subscription","commits_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/contents/{+path}","compare_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/merges","archive_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/downloads","issues_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/issues{/number}","pulls_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/pulls{/number}","milestones_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/milestones{/number}","notifications_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/labels{/name}","releases_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/releases{/id}","deployments_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/deployments","created_at":"2018-10-24T06:04:29Z","updated_at":"2018-10-24T06:31:39Z","pushed_at":"2018-10-25T03:26:52Z","git_url":"git://github.com/nguyenxuantuan/sample_app.git","ssh_url":"git@github.com:nguyenxuantuan/sample_app.git","clone_url":"https://github.com/nguyenxuantuan/sample_app.git","svn_url":"https://github.com/nguyenxuantuan/sample_app","homepage":null,"size":31,"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":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"nguyenxuantuan:master","ref":"master","sha":"8f2ac7097a857977d5b7b0317e76d135cfd214bc","user":{"login":"nguyenxuantuan","id":39181597,"node_id":"MDQ6VXNlcjM5MTgxNTk3","avatar_url":"https://avatars2.githubusercontent.com/u/39181597?v=4","gravatar_id":"","url":"https://api.github.com/users/nguyenxuantuan","html_url":"https://github.com/nguyenxuantuan","followers_url":"https://api.github.com/users/nguyenxuantuan/followers","following_url":"https://api.github.com/users/nguyenxuantuan/following{/other_user}","gists_url":"https://api.github.com/users/nguyenxuantuan/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenxuantuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenxuantuan/subscriptions","organizations_url":"https://api.github.com/users/nguyenxuantuan/orgs","repos_url":"https://api.github.com/users/nguyenxuantuan/repos","events_url":"https://api.github.com/users/nguyenxuantuan/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenxuantuan/received_events","type":"User","site_admin":false},"repo":{"id":154447484,"node_id":"MDEwOlJlcG9zaXRvcnkxNTQ0NDc0ODQ=","name":"sample_app","full_name":"nguyenxuantuan/sample_app","private":false,"owner":{"login":"nguyenxuantuan","id":39181597,"node_id":"MDQ6VXNlcjM5MTgxNTk3","avatar_url":"https://avatars2.githubusercontent.com/u/39181597?v=4","gravatar_id":"","url":"https://api.github.com/users/nguyenxuantuan","html_url":"https://github.com/nguyenxuantuan","followers_url":"https://api.github.com/users/nguyenxuantuan/followers","following_url":"https://api.github.com/users/nguyenxuantuan/following{/other_user}","gists_url":"https://api.github.com/users/nguyenxuantuan/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenxuantuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenxuantuan/subscriptions","organizations_url":"https://api.github.com/users/nguyenxuantuan/orgs","repos_url":"https://api.github.com/users/nguyenxuantuan/repos","events_url":"https://api.github.com/users/nguyenxuantuan/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenxuantuan/received_events","type":"User","site_admin":false},"html_url":"https://github.com/nguyenxuantuan/sample_app","description":"demo-git","fork":false,"url":"https://api.github.com/repos/nguyenxuantuan/sample_app","forks_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/forks","keys_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/teams","hooks_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/hooks","issue_events_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/issues/events{/number}","events_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/events","assignees_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/assignees{/user}","branches_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/branches{/branch}","tags_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/tags","blobs_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/statuses/{sha}","languages_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/languages","stargazers_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/stargazers","contributors_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/contributors","subscribers_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/subscribers","subscription_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/subscription","commits_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/contents/{+path}","compare_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/merges","archive_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/downloads","issues_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/issues{/number}","pulls_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/pulls{/number}","milestones_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/milestones{/number}","notifications_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/labels{/name}","releases_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/releases{/id}","deployments_url":"https://api.github.com/repos/nguyenxuantuan/sample_app/deployments","created_at":"2018-10-24T06:04:29Z","updated_at":"2018-10-24T06:31:39Z","pushed_at":"2018-10-25T03:26:52Z","git_url":"git://github.com/nguyenxuantuan/sample_app.git","ssh_url":"git@github.com:nguyenxuantuan/sample_app.git","clone_url":"https://github.com/nguyenxuantuan/sample_app.git","svn_url":"https://github.com/nguyenxuantuan/sample_app","homepage":null,"size":31,"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":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nguyenxuantuan/sample_app/pulls/2"},"html":{"href":"https://github.com/nguyenxuantuan/sample_app/pull/2"},"issue":{"href":"https://api.github.com/repos/nguyenxuantuan/sample_app/issues/2"},"comments":{"href":"https://api.github.com/repos/nguyenxuantuan/sample_app/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/nguyenxuantuan/sample_app/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/nguyenxuantuan/sample_app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nguyenxuantuan/sample_app/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/nguyenxuantuan/sample_app/statuses/9db3fe908ce3a05d719465765e7c7557e1602aba"}},"author_association":"OWNER"}}
{"actor":{"display_login":"huuphuc93"}}