{"action":"created","comment":{"url":"https://api.github.com/repos/trungtrung11096/rails-tut/pulls/comments/200255057","pull_request_review_id":134532759,"id":200255057,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMDI1NTA1Nw==","diff_hunk":"@@ -0,0 +1,10 @@\n+class User < ApplicationRecord\n+  before_save { self.email = email.downcase }\n+  validates :name, presence: true, length: { maximum: 50 }\n+  VALID_EMAIL_REGEX = /\\A[\\w+\\-.]+@[a-z\\d\\-.]+\\.[a-z]+\\z/i\n+  validates :email, presence: true, length: { maximum: 255 },\n+                    format: { with: VALID_EMAIL_REGEX },\n+                    uniqueness: { case_sensitive: false }\n+  has_secure_password","path":"app/models/user.rb","position":8,"original_position":8,"commit_id":"ed4a402a7305b9c6044819220e4e06aadb2c4536","original_commit_id":"ed4a402a7305b9c6044819220e4e06aadb2c4536","user":{"login":"thanhhungchu95","id":8967163,"node_id":"MDQ6VXNlcjg5NjcxNjM=","avatar_url":"https://avatars2.githubusercontent.com/u/8967163?v=4","gravatar_id":"","url":"https://api.github.com/users/thanhhungchu95","html_url":"https://github.com/thanhhungchu95","followers_url":"https://api.github.com/users/thanhhungchu95/followers","following_url":"https://api.github.com/users/thanhhungchu95/following{/other_user}","gists_url":"https://api.github.com/users/thanhhungchu95/gists{/gist_id}","starred_url":"https://api.github.com/users/thanhhungchu95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thanhhungchu95/subscriptions","organizations_url":"https://api.github.com/users/thanhhungchu95/orgs","repos_url":"https://api.github.com/users/thanhhungchu95/repos","events_url":"https://api.github.com/users/thanhhungchu95/events{/privacy}","received_events_url":"https://api.github.com/users/thanhhungchu95/received_events","type":"User","site_admin":false},"body":"has_secure_password là gì nhỉ (?) tác dụng (?)","created_at":"2018-07-05T07:30:12Z","updated_at":"2018-07-05T07:30:23Z","html_url":"https://github.com/trungtrung11096/rails-tut/pull/5#discussion_r200255057","pull_request_url":"https://api.github.com/repos/trungtrung11096/rails-tut/pulls/5","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/trungtrung11096/rails-tut/pulls/comments/200255057"},"html":{"href":"https://github.com/trungtrung11096/rails-tut/pull/5#discussion_r200255057"},"pull_request":{"href":"https://api.github.com/repos/trungtrung11096/rails-tut/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/trungtrung11096/rails-tut/pulls/5","id":199374947,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk5Mzc0OTQ3","html_url":"https://github.com/trungtrung11096/rails-tut/pull/5","diff_url":"https://github.com/trungtrung11096/rails-tut/pull/5.diff","patch_url":"https://github.com/trungtrung11096/rails-tut/pull/5.patch","issue_url":"https://api.github.com/repos/trungtrung11096/rails-tut/issues/5","number":5,"state":"open","locked":false,"title":"Init models","user":{"login":"trungtrung11096","id":37701770,"node_id":"MDQ6VXNlcjM3NzAxNzcw","avatar_url":"https://avatars2.githubusercontent.com/u/37701770?v=4","gravatar_id":"","url":"https://api.github.com/users/trungtrung11096","html_url":"https://github.com/trungtrung11096","followers_url":"https://api.github.com/users/trungtrung11096/followers","following_url":"https://api.github.com/users/trungtrung11096/following{/other_user}","gists_url":"https://api.github.com/users/trungtrung11096/gists{/gist_id}","starred_url":"https://api.github.com/users/trungtrung11096/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trungtrung11096/subscriptions","organizations_url":"https://api.github.com/users/trungtrung11096/orgs","repos_url":"https://api.github.com/users/trungtrung11096/repos","events_url":"https://api.github.com/users/trungtrung11096/events{/privacy}","received_events_url":"https://api.github.com/users/trungtrung11096/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-07-05T07:00:00Z","updated_at":"2018-07-05T07:30:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ccd94e8f7faf0957049a57f1327e3b5dcbb3b83d","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/trungtrung11096/rails-tut/pulls/5/commits","review_comments_url":"https://api.github.com/repos/trungtrung11096/rails-tut/pulls/5/comments","review_comment_url":"https://api.github.com/repos/trungtrung11096/rails-tut/pulls/comments{/number}","comments_url":"https://api.github.com/repos/trungtrung11096/rails-tut/issues/5/comments","statuses_url":"https://api.github.com/repos/trungtrung11096/rails-tut/statuses/ed4a402a7305b9c6044819220e4e06aadb2c4536","head":{"label":"trungtrung11096:init-models","ref":"init-models","sha":"ed4a402a7305b9c6044819220e4e06aadb2c4536","user":{"login":"trungtrung11096","id":37701770,"node_id":"MDQ6VXNlcjM3NzAxNzcw","avatar_url":"https://avatars2.githubusercontent.com/u/37701770?v=4","gravatar_id":"","url":"https://api.github.com/users/trungtrung11096","html_url":"https://github.com/trungtrung11096","followers_url":"https://api.github.com/users/trungtrung11096/followers","following_url":"https://api.github.com/users/trungtrung11096/following{/other_user}","gists_url":"https://api.github.com/users/trungtrung11096/gists{/gist_id}","starred_url":"https://api.github.com/users/trungtrung11096/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trungtrung11096/subscriptions","organizations_url":"https://api.github.com/users/trungtrung11096/orgs","repos_url":"https://api.github.com/users/trungtrung11096/repos","events_url":"https://api.github.com/users/trungtrung11096/events{/privacy}","received_events_url":"https://api.github.com/users/trungtrung11096/received_events","type":"User","site_admin":false},"repo":{"id":138963527,"node_id":"MDEwOlJlcG9zaXRvcnkxMzg5NjM1Mjc=","name":"rails-tut","full_name":"trungtrung11096/rails-tut","owner":{"login":"trungtrung11096","id":37701770,"node_id":"MDQ6VXNlcjM3NzAxNzcw","avatar_url":"https://avatars2.githubusercontent.com/u/37701770?v=4","gravatar_id":"","url":"https://api.github.com/users/trungtrung11096","html_url":"https://github.com/trungtrung11096","followers_url":"https://api.github.com/users/trungtrung11096/followers","following_url":"https://api.github.com/users/trungtrung11096/following{/other_user}","gists_url":"https://api.github.com/users/trungtrung11096/gists{/gist_id}","starred_url":"https://api.github.com/users/trungtrung11096/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trungtrung11096/subscriptions","organizations_url":"https://api.github.com/users/trungtrung11096/orgs","repos_url":"https://api.github.com/users/trungtrung11096/repos","events_url":"https://api.github.com/users/trungtrung11096/events{/privacy}","received_events_url":"https://api.github.com/users/trungtrung11096/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/trungtrung11096/rails-tut","description":null,"fork":false,"url":"https://api.github.com/repos/trungtrung11096/rails-tut","forks_url":"https://api.github.com/repos/trungtrung11096/rails-tut/forks","keys_url":"https://api.github.com/repos/trungtrung11096/rails-tut/keys{/key_id}","collaborators_url":"https://api.github.com/repos/trungtrung11096/rails-tut/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/trungtrung11096/rails-tut/teams","hooks_url":"https://api.github.com/repos/trungtrung11096/rails-tut/hooks","issue_events_url":"https://api.github.com/repos/trungtrung11096/rails-tut/issues/events{/number}","events_url":"https://api.github.com/repos/trungtrung11096/rails-tut/events","assignees_url":"https://api.github.com/repos/trungtrung11096/rails-tut/assignees{/user}","branches_url":"https://api.github.com/repos/trungtrung11096/rails-tut/branches{/branch}","tags_url":"https://api.github.com/repos/trungtrung11096/rails-tut/tags","blobs_url":"https://api.github.com/repos/trungtrung11096/rails-tut/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/trungtrung11096/rails-tut/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/trungtrung11096/rails-tut/git/refs{/sha}","trees_url":"https://api.github.com/repos/trungtrung11096/rails-tut/git/trees{/sha}","statuses_url":"https://api.github.com/repos/trungtrung11096/rails-tut/statuses/{sha}","languages_url":"https://api.github.com/repos/trungtrung11096/rails-tut/languages","stargazers_url":"https://api.github.com/repos/trungtrung11096/rails-tut/stargazers","contributors_url":"https://api.github.com/repos/trungtrung11096/rails-tut/contributors","subscribers_url":"https://api.github.com/repos/trungtrung11096/rails-tut/subscribers","subscription_url":"https://api.github.com/repos/trungtrung11096/rails-tut/subscription","commits_url":"https://api.github.com/repos/trungtrung11096/rails-tut/commits{/sha}","git_commits_url":"https://api.github.com/repos/trungtrung11096/rails-tut/git/commits{/sha}","comments_url":"https://api.github.com/repos/trungtrung11096/rails-tut/comments{/number}","issue_comment_url":"https://api.github.com/repos/trungtrung11096/rails-tut/issues/comments{/number}","contents_url":"https://api.github.com/repos/trungtrung11096/rails-tut/contents/{+path}","compare_url":"https://api.github.com/repos/trungtrung11096/rails-tut/compare/{base}...{head}","merges_url":"https://api.github.com/repos/trungtrung11096/rails-tut/merges","archive_url":"https://api.github.com/repos/trungtrung11096/rails-tut/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/trungtrung11096/rails-tut/downloads","issues_url":"https://api.github.com/repos/trungtrung11096/rails-tut/issues{/number}","pulls_url":"https://api.github.com/repos/trungtrung11096/rails-tut/pulls{/number}","milestones_url":"https://api.github.com/repos/trungtrung11096/rails-tut/milestones{/number}","notifications_url":"https://api.github.com/repos/trungtrung11096/rails-tut/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/trungtrung11096/rails-tut/labels{/name}","releases_url":"https://api.github.com/repos/trungtrung11096/rails-tut/releases{/id}","deployments_url":"https://api.github.com/repos/trungtrung11096/rails-tut/deployments","created_at":"2018-06-28T03:50:12Z","updated_at":"2018-06-28T03:56:28Z","pushed_at":"2018-07-05T07:09:53Z","git_url":"git://github.com/trungtrung11096/rails-tut.git","ssh_url":"git@github.com:trungtrung11096/rails-tut.git","clone_url":"https://github.com/trungtrung11096/rails-tut.git","svn_url":"https://github.com/trungtrung11096/rails-tut","homepage":null,"size":191,"stargazers_count":0,"watchers_count":0,"language":null,"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":"trungtrung11096:develop","ref":"develop","sha":"9b8a87092b98ce9768dfaf9fdc6782c7698b25b3","user":{"login":"trungtrung11096","id":37701770,"node_id":"MDQ6VXNlcjM3NzAxNzcw","avatar_url":"https://avatars2.githubusercontent.com/u/37701770?v=4","gravatar_id":"","url":"https://api.github.com/users/trungtrung11096","html_url":"https://github.com/trungtrung11096","followers_url":"https://api.github.com/users/trungtrung11096/followers","following_url":"https://api.github.com/users/trungtrung11096/following{/other_user}","gists_url":"https://api.github.com/users/trungtrung11096/gists{/gist_id}","starred_url":"https://api.github.com/users/trungtrung11096/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trungtrung11096/subscriptions","organizations_url":"https://api.github.com/users/trungtrung11096/orgs","repos_url":"https://api.github.com/users/trungtrung11096/repos","events_url":"https://api.github.com/users/trungtrung11096/events{/privacy}","received_events_url":"https://api.github.com/users/trungtrung11096/received_events","type":"User","site_admin":false},"repo":{"id":138963527,"node_id":"MDEwOlJlcG9zaXRvcnkxMzg5NjM1Mjc=","name":"rails-tut","full_name":"trungtrung11096/rails-tut","owner":{"login":"trungtrung11096","id":37701770,"node_id":"MDQ6VXNlcjM3NzAxNzcw","avatar_url":"https://avatars2.githubusercontent.com/u/37701770?v=4","gravatar_id":"","url":"https://api.github.com/users/trungtrung11096","html_url":"https://github.com/trungtrung11096","followers_url":"https://api.github.com/users/trungtrung11096/followers","following_url":"https://api.github.com/users/trungtrung11096/following{/other_user}","gists_url":"https://api.github.com/users/trungtrung11096/gists{/gist_id}","starred_url":"https://api.github.com/users/trungtrung11096/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trungtrung11096/subscriptions","organizations_url":"https://api.github.com/users/trungtrung11096/orgs","repos_url":"https://api.github.com/users/trungtrung11096/repos","events_url":"https://api.github.com/users/trungtrung11096/events{/privacy}","received_events_url":"https://api.github.com/users/trungtrung11096/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/trungtrung11096/rails-tut","description":null,"fork":false,"url":"https://api.github.com/repos/trungtrung11096/rails-tut","forks_url":"https://api.github.com/repos/trungtrung11096/rails-tut/forks","keys_url":"https://api.github.com/repos/trungtrung11096/rails-tut/keys{/key_id}","collaborators_url":"https://api.github.com/repos/trungtrung11096/rails-tut/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/trungtrung11096/rails-tut/teams","hooks_url":"https://api.github.com/repos/trungtrung11096/rails-tut/hooks","issue_events_url":"https://api.github.com/repos/trungtrung11096/rails-tut/issues/events{/number}","events_url":"https://api.github.com/repos/trungtrung11096/rails-tut/events","assignees_url":"https://api.github.com/repos/trungtrung11096/rails-tut/assignees{/user}","branches_url":"https://api.github.com/repos/trungtrung11096/rails-tut/branches{/branch}","tags_url":"https://api.github.com/repos/trungtrung11096/rails-tut/tags","blobs_url":"https://api.github.com/repos/trungtrung11096/rails-tut/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/trungtrung11096/rails-tut/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/trungtrung11096/rails-tut/git/refs{/sha}","trees_url":"https://api.github.com/repos/trungtrung11096/rails-tut/git/trees{/sha}","statuses_url":"https://api.github.com/repos/trungtrung11096/rails-tut/statuses/{sha}","languages_url":"https://api.github.com/repos/trungtrung11096/rails-tut/languages","stargazers_url":"https://api.github.com/repos/trungtrung11096/rails-tut/stargazers","contributors_url":"https://api.github.com/repos/trungtrung11096/rails-tut/contributors","subscribers_url":"https://api.github.com/repos/trungtrung11096/rails-tut/subscribers","subscription_url":"https://api.github.com/repos/trungtrung11096/rails-tut/subscription","commits_url":"https://api.github.com/repos/trungtrung11096/rails-tut/commits{/sha}","git_commits_url":"https://api.github.com/repos/trungtrung11096/rails-tut/git/commits{/sha}","comments_url":"https://api.github.com/repos/trungtrung11096/rails-tut/comments{/number}","issue_comment_url":"https://api.github.com/repos/trungtrung11096/rails-tut/issues/comments{/number}","contents_url":"https://api.github.com/repos/trungtrung11096/rails-tut/contents/{+path}","compare_url":"https://api.github.com/repos/trungtrung11096/rails-tut/compare/{base}...{head}","merges_url":"https://api.github.com/repos/trungtrung11096/rails-tut/merges","archive_url":"https://api.github.com/repos/trungtrung11096/rails-tut/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/trungtrung11096/rails-tut/downloads","issues_url":"https://api.github.com/repos/trungtrung11096/rails-tut/issues{/number}","pulls_url":"https://api.github.com/repos/trungtrung11096/rails-tut/pulls{/number}","milestones_url":"https://api.github.com/repos/trungtrung11096/rails-tut/milestones{/number}","notifications_url":"https://api.github.com/repos/trungtrung11096/rails-tut/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/trungtrung11096/rails-tut/labels{/name}","releases_url":"https://api.github.com/repos/trungtrung11096/rails-tut/releases{/id}","deployments_url":"https://api.github.com/repos/trungtrung11096/rails-tut/deployments","created_at":"2018-06-28T03:50:12Z","updated_at":"2018-06-28T03:56:28Z","pushed_at":"2018-07-05T07:09:53Z","git_url":"git://github.com/trungtrung11096/rails-tut.git","ssh_url":"git@github.com:trungtrung11096/rails-tut.git","clone_url":"https://github.com/trungtrung11096/rails-tut.git","svn_url":"https://github.com/trungtrung11096/rails-tut","homepage":null,"size":191,"stargazers_count":0,"watchers_count":0,"language":null,"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/trungtrung11096/rails-tut/pulls/5"},"html":{"href":"https://github.com/trungtrung11096/rails-tut/pull/5"},"issue":{"href":"https://api.github.com/repos/trungtrung11096/rails-tut/issues/5"},"comments":{"href":"https://api.github.com/repos/trungtrung11096/rails-tut/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/trungtrung11096/rails-tut/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/trungtrung11096/rails-tut/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/trungtrung11096/rails-tut/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/trungtrung11096/rails-tut/statuses/ed4a402a7305b9c6044819220e4e06aadb2c4536"}},"author_association":"OWNER"}}
{"actor":{"display_login":"thanhhungchu95"}}