{"action":"created","comment":{"url":"https://api.github.com/repos/minkmk94/Ruby/pulls/comments/111664654","pull_request_review_id":32926568,"id":111664654,"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 },","path":"app/models/user.rb","position":5,"original_position":5,"commit_id":"5aa968e39878e6e9b717872c1f5fa5fecfcf34fc","original_commit_id":"5aa968e39878e6e9b717872c1f5fa5fecfcf34fc","user":{"login":"sangnuce","id":12852873,"avatar_url":"https://avatars0.githubusercontent.com/u/12852873?v=3","gravatar_id":"","url":"https://api.github.com/users/sangnuce","html_url":"https://github.com/sangnuce","followers_url":"https://api.github.com/users/sangnuce/followers","following_url":"https://api.github.com/users/sangnuce/following{/other_user}","gists_url":"https://api.github.com/users/sangnuce/gists{/gist_id}","starred_url":"https://api.github.com/users/sangnuce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sangnuce/subscriptions","organizations_url":"https://api.github.com/users/sangnuce/orgs","repos_url":"https://api.github.com/users/sangnuce/repos","events_url":"https://api.github.com/users/sangnuce/events{/privacy}","received_events_url":"https://api.github.com/users/sangnuce/received_events","type":"User","site_admin":false},"body":"đưa validates xuống dưới cùng chỗ với validate kia.\r\ngom nhóm các block có chức năng giống nhau và cách các nhóm bởi 1 dòng trống","created_at":"2017-04-15T12:57:47Z","updated_at":"2017-04-15T12:57:47Z","html_url":"https://github.com/minkmk94/Ruby/pull/5#discussion_r111664654","pull_request_url":"https://api.github.com/repos/minkmk94/Ruby/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/minkmk94/Ruby/pulls/comments/111664654"},"html":{"href":"https://github.com/minkmk94/Ruby/pull/5#discussion_r111664654"},"pull_request":{"href":"https://api.github.com/repos/minkmk94/Ruby/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/minkmk94/Ruby/pulls/5","id":115893137,"html_url":"https://github.com/minkmk94/Ruby/pull/5","diff_url":"https://github.com/minkmk94/Ruby/pull/5.diff","patch_url":"https://github.com/minkmk94/Ruby/pull/5.patch","issue_url":"https://api.github.com/repos/minkmk94/Ruby/issues/5","number":5,"state":"open","locked":false,"title":"Make a basic User model (including secure passwords)","user":{"login":"minkmk94","id":25580615,"avatar_url":"https://avatars1.githubusercontent.com/u/25580615?v=3","gravatar_id":"","url":"https://api.github.com/users/minkmk94","html_url":"https://github.com/minkmk94","followers_url":"https://api.github.com/users/minkmk94/followers","following_url":"https://api.github.com/users/minkmk94/following{/other_user}","gists_url":"https://api.github.com/users/minkmk94/gists{/gist_id}","starred_url":"https://api.github.com/users/minkmk94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minkmk94/subscriptions","organizations_url":"https://api.github.com/users/minkmk94/orgs","repos_url":"https://api.github.com/users/minkmk94/repos","events_url":"https://api.github.com/users/minkmk94/events{/privacy}","received_events_url":"https://api.github.com/users/minkmk94/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-04-14T07:07:12Z","updated_at":"2017-04-15T12:57:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0fbbd329e8562700ca09058f52545f7146e44c5e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/minkmk94/Ruby/pulls/5/commits","review_comments_url":"https://api.github.com/repos/minkmk94/Ruby/pulls/5/comments","review_comment_url":"https://api.github.com/repos/minkmk94/Ruby/pulls/comments{/number}","comments_url":"https://api.github.com/repos/minkmk94/Ruby/issues/5/comments","statuses_url":"https://api.github.com/repos/minkmk94/Ruby/statuses/5aa968e39878e6e9b717872c1f5fa5fecfcf34fc","head":{"label":"minkmk94:modeling-users","ref":"modeling-users","sha":"5aa968e39878e6e9b717872c1f5fa5fecfcf34fc","user":{"login":"minkmk94","id":25580615,"avatar_url":"https://avatars1.githubusercontent.com/u/25580615?v=3","gravatar_id":"","url":"https://api.github.com/users/minkmk94","html_url":"https://github.com/minkmk94","followers_url":"https://api.github.com/users/minkmk94/followers","following_url":"https://api.github.com/users/minkmk94/following{/other_user}","gists_url":"https://api.github.com/users/minkmk94/gists{/gist_id}","starred_url":"https://api.github.com/users/minkmk94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minkmk94/subscriptions","organizations_url":"https://api.github.com/users/minkmk94/orgs","repos_url":"https://api.github.com/users/minkmk94/repos","events_url":"https://api.github.com/users/minkmk94/events{/privacy}","received_events_url":"https://api.github.com/users/minkmk94/received_events","type":"User","site_admin":false},"repo":{"id":87911684,"name":"Ruby","full_name":"minkmk94/Ruby","owner":{"login":"minkmk94","id":25580615,"avatar_url":"https://avatars1.githubusercontent.com/u/25580615?v=3","gravatar_id":"","url":"https://api.github.com/users/minkmk94","html_url":"https://github.com/minkmk94","followers_url":"https://api.github.com/users/minkmk94/followers","following_url":"https://api.github.com/users/minkmk94/following{/other_user}","gists_url":"https://api.github.com/users/minkmk94/gists{/gist_id}","starred_url":"https://api.github.com/users/minkmk94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minkmk94/subscriptions","organizations_url":"https://api.github.com/users/minkmk94/orgs","repos_url":"https://api.github.com/users/minkmk94/repos","events_url":"https://api.github.com/users/minkmk94/events{/privacy}","received_events_url":"https://api.github.com/users/minkmk94/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/minkmk94/Ruby","description":null,"fork":false,"url":"https://api.github.com/repos/minkmk94/Ruby","forks_url":"https://api.github.com/repos/minkmk94/Ruby/forks","keys_url":"https://api.github.com/repos/minkmk94/Ruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/minkmk94/Ruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/minkmk94/Ruby/teams","hooks_url":"https://api.github.com/repos/minkmk94/Ruby/hooks","issue_events_url":"https://api.github.com/repos/minkmk94/Ruby/issues/events{/number}","events_url":"https://api.github.com/repos/minkmk94/Ruby/events","assignees_url":"https://api.github.com/repos/minkmk94/Ruby/assignees{/user}","branches_url":"https://api.github.com/repos/minkmk94/Ruby/branches{/branch}","tags_url":"https://api.github.com/repos/minkmk94/Ruby/tags","blobs_url":"https://api.github.com/repos/minkmk94/Ruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/minkmk94/Ruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/minkmk94/Ruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/minkmk94/Ruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/minkmk94/Ruby/statuses/{sha}","languages_url":"https://api.github.com/repos/minkmk94/Ruby/languages","stargazers_url":"https://api.github.com/repos/minkmk94/Ruby/stargazers","contributors_url":"https://api.github.com/repos/minkmk94/Ruby/contributors","subscribers_url":"https://api.github.com/repos/minkmk94/Ruby/subscribers","subscription_url":"https://api.github.com/repos/minkmk94/Ruby/subscription","commits_url":"https://api.github.com/repos/minkmk94/Ruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/minkmk94/Ruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/minkmk94/Ruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/minkmk94/Ruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/minkmk94/Ruby/contents/{+path}","compare_url":"https://api.github.com/repos/minkmk94/Ruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/minkmk94/Ruby/merges","archive_url":"https://api.github.com/repos/minkmk94/Ruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/minkmk94/Ruby/downloads","issues_url":"https://api.github.com/repos/minkmk94/Ruby/issues{/number}","pulls_url":"https://api.github.com/repos/minkmk94/Ruby/pulls{/number}","milestones_url":"https://api.github.com/repos/minkmk94/Ruby/milestones{/number}","notifications_url":"https://api.github.com/repos/minkmk94/Ruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/minkmk94/Ruby/labels{/name}","releases_url":"https://api.github.com/repos/minkmk94/Ruby/releases{/id}","deployments_url":"https://api.github.com/repos/minkmk94/Ruby/deployments","created_at":"2017-04-11T08:50:49Z","updated_at":"2017-04-11T08:50:49Z","pushed_at":"2017-04-15T11:35:18Z","git_url":"git://github.com/minkmk94/Ruby.git","ssh_url":"git@github.com:minkmk94/Ruby.git","clone_url":"https://github.com/minkmk94/Ruby.git","svn_url":"https://github.com/minkmk94/Ruby","homepage":null,"size":43,"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,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"minkmk94:develop","ref":"develop","sha":"b8e965e763a0c0b943de4509eac22400797a1061","user":{"login":"minkmk94","id":25580615,"avatar_url":"https://avatars1.githubusercontent.com/u/25580615?v=3","gravatar_id":"","url":"https://api.github.com/users/minkmk94","html_url":"https://github.com/minkmk94","followers_url":"https://api.github.com/users/minkmk94/followers","following_url":"https://api.github.com/users/minkmk94/following{/other_user}","gists_url":"https://api.github.com/users/minkmk94/gists{/gist_id}","starred_url":"https://api.github.com/users/minkmk94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minkmk94/subscriptions","organizations_url":"https://api.github.com/users/minkmk94/orgs","repos_url":"https://api.github.com/users/minkmk94/repos","events_url":"https://api.github.com/users/minkmk94/events{/privacy}","received_events_url":"https://api.github.com/users/minkmk94/received_events","type":"User","site_admin":false},"repo":{"id":87911684,"name":"Ruby","full_name":"minkmk94/Ruby","owner":{"login":"minkmk94","id":25580615,"avatar_url":"https://avatars1.githubusercontent.com/u/25580615?v=3","gravatar_id":"","url":"https://api.github.com/users/minkmk94","html_url":"https://github.com/minkmk94","followers_url":"https://api.github.com/users/minkmk94/followers","following_url":"https://api.github.com/users/minkmk94/following{/other_user}","gists_url":"https://api.github.com/users/minkmk94/gists{/gist_id}","starred_url":"https://api.github.com/users/minkmk94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minkmk94/subscriptions","organizations_url":"https://api.github.com/users/minkmk94/orgs","repos_url":"https://api.github.com/users/minkmk94/repos","events_url":"https://api.github.com/users/minkmk94/events{/privacy}","received_events_url":"https://api.github.com/users/minkmk94/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/minkmk94/Ruby","description":null,"fork":false,"url":"https://api.github.com/repos/minkmk94/Ruby","forks_url":"https://api.github.com/repos/minkmk94/Ruby/forks","keys_url":"https://api.github.com/repos/minkmk94/Ruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/minkmk94/Ruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/minkmk94/Ruby/teams","hooks_url":"https://api.github.com/repos/minkmk94/Ruby/hooks","issue_events_url":"https://api.github.com/repos/minkmk94/Ruby/issues/events{/number}","events_url":"https://api.github.com/repos/minkmk94/Ruby/events","assignees_url":"https://api.github.com/repos/minkmk94/Ruby/assignees{/user}","branches_url":"https://api.github.com/repos/minkmk94/Ruby/branches{/branch}","tags_url":"https://api.github.com/repos/minkmk94/Ruby/tags","blobs_url":"https://api.github.com/repos/minkmk94/Ruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/minkmk94/Ruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/minkmk94/Ruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/minkmk94/Ruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/minkmk94/Ruby/statuses/{sha}","languages_url":"https://api.github.com/repos/minkmk94/Ruby/languages","stargazers_url":"https://api.github.com/repos/minkmk94/Ruby/stargazers","contributors_url":"https://api.github.com/repos/minkmk94/Ruby/contributors","subscribers_url":"https://api.github.com/repos/minkmk94/Ruby/subscribers","subscription_url":"https://api.github.com/repos/minkmk94/Ruby/subscription","commits_url":"https://api.github.com/repos/minkmk94/Ruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/minkmk94/Ruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/minkmk94/Ruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/minkmk94/Ruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/minkmk94/Ruby/contents/{+path}","compare_url":"https://api.github.com/repos/minkmk94/Ruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/minkmk94/Ruby/merges","archive_url":"https://api.github.com/repos/minkmk94/Ruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/minkmk94/Ruby/downloads","issues_url":"https://api.github.com/repos/minkmk94/Ruby/issues{/number}","pulls_url":"https://api.github.com/repos/minkmk94/Ruby/pulls{/number}","milestones_url":"https://api.github.com/repos/minkmk94/Ruby/milestones{/number}","notifications_url":"https://api.github.com/repos/minkmk94/Ruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/minkmk94/Ruby/labels{/name}","releases_url":"https://api.github.com/repos/minkmk94/Ruby/releases{/id}","deployments_url":"https://api.github.com/repos/minkmk94/Ruby/deployments","created_at":"2017-04-11T08:50:49Z","updated_at":"2017-04-11T08:50:49Z","pushed_at":"2017-04-15T11:35:18Z","git_url":"git://github.com/minkmk94/Ruby.git","ssh_url":"git@github.com:minkmk94/Ruby.git","clone_url":"https://github.com/minkmk94/Ruby.git","svn_url":"https://github.com/minkmk94/Ruby","homepage":null,"size":43,"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,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/minkmk94/Ruby/pulls/5"},"html":{"href":"https://github.com/minkmk94/Ruby/pull/5"},"issue":{"href":"https://api.github.com/repos/minkmk94/Ruby/issues/5"},"comments":{"href":"https://api.github.com/repos/minkmk94/Ruby/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/minkmk94/Ruby/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/minkmk94/Ruby/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/minkmk94/Ruby/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/minkmk94/Ruby/statuses/5aa968e39878e6e9b717872c1f5fa5fecfcf34fc"}}}}
{"actor":{"display_login":"sangnuce"}}