{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fdf_4/pulls/comments/68517706","id":68517706,"diff_hunk":"@@ -3,7 +3,11 @@ class User < ActiveRecord::Base\n   belongs_to :order\n   has_many :comments\n   has_many :suggests\n-\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}","path":"app/models/user.rb","position":9,"original_position":9,"commit_id":"3aaa3739e566aea31f4bfd3b7af24868d943becb","original_commit_id":"3aaa3739e566aea31f4bfd3b7af24868d943becb","user":{"login":"thangtx88","id":18256324,"avatar_url":"https://avatars.githubusercontent.com/u/18256324?v=3","gravatar_id":"","url":"https://api.github.com/users/thangtx88","html_url":"https://github.com/thangtx88","followers_url":"https://api.github.com/users/thangtx88/followers","following_url":"https://api.github.com/users/thangtx88/following{/other_user}","gists_url":"https://api.github.com/users/thangtx88/gists{/gist_id}","starred_url":"https://api.github.com/users/thangtx88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thangtx88/subscriptions","organizations_url":"https://api.github.com/users/thangtx88/orgs","repos_url":"https://api.github.com/users/thangtx88/repos","events_url":"https://api.github.com/users/thangtx88/events{/privacy}","received_events_url":"https://api.github.com/users/thangtx88/received_events","type":"User","site_admin":false},"body":"ident","created_at":"2016-06-27T02:51:27Z","updated_at":"2016-06-27T02:51:27Z","html_url":"https://github.com/framgia/fdf_4/pull/6#discussion_r68517706","pull_request_url":"https://api.github.com/repos/framgia/fdf_4/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/framgia/fdf_4/pulls/comments/68517706"},"html":{"href":"https://github.com/framgia/fdf_4/pull/6#discussion_r68517706"},"pull_request":{"href":"https://api.github.com/repos/framgia/fdf_4/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fdf_4/pulls/6","id":74899770,"html_url":"https://github.com/framgia/fdf_4/pull/6","diff_url":"https://github.com/framgia/fdf_4/pull/6.diff","patch_url":"https://github.com/framgia/fdf_4/pull/6.patch","issue_url":"https://api.github.com/repos/framgia/fdf_4/issues/6","number":6,"state":"open","locked":false,"title":"6647_signup","user":{"login":"lethuyb","id":19699543,"avatar_url":"https://avatars.githubusercontent.com/u/19699543?v=3","gravatar_id":"","url":"https://api.github.com/users/lethuyb","html_url":"https://github.com/lethuyb","followers_url":"https://api.github.com/users/lethuyb/followers","following_url":"https://api.github.com/users/lethuyb/following{/other_user}","gists_url":"https://api.github.com/users/lethuyb/gists{/gist_id}","starred_url":"https://api.github.com/users/lethuyb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lethuyb/subscriptions","organizations_url":"https://api.github.com/users/lethuyb/orgs","repos_url":"https://api.github.com/users/lethuyb/repos","events_url":"https://api.github.com/users/lethuyb/events{/privacy}","received_events_url":"https://api.github.com/users/lethuyb/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-23T05:57:52Z","updated_at":"2016-06-27T02:51:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ca4cd8469950115f2899862ce44b64291374248e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fdf_4/pulls/6/commits","review_comments_url":"https://api.github.com/repos/framgia/fdf_4/pulls/6/comments","review_comment_url":"https://api.github.com/repos/framgia/fdf_4/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fdf_4/issues/6/comments","statuses_url":"https://api.github.com/repos/framgia/fdf_4/statuses/3aaa3739e566aea31f4bfd3b7af24868d943becb","head":{"label":"lethuyb:user-signup","ref":"user-signup","sha":"3aaa3739e566aea31f4bfd3b7af24868d943becb","user":{"login":"lethuyb","id":19699543,"avatar_url":"https://avatars.githubusercontent.com/u/19699543?v=3","gravatar_id":"","url":"https://api.github.com/users/lethuyb","html_url":"https://github.com/lethuyb","followers_url":"https://api.github.com/users/lethuyb/followers","following_url":"https://api.github.com/users/lethuyb/following{/other_user}","gists_url":"https://api.github.com/users/lethuyb/gists{/gist_id}","starred_url":"https://api.github.com/users/lethuyb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lethuyb/subscriptions","organizations_url":"https://api.github.com/users/lethuyb/orgs","repos_url":"https://api.github.com/users/lethuyb/repos","events_url":"https://api.github.com/users/lethuyb/events{/privacy}","received_events_url":"https://api.github.com/users/lethuyb/received_events","type":"User","site_admin":false},"repo":{"id":61682667,"name":"fdf_4","full_name":"lethuyb/fdf_4","owner":{"login":"lethuyb","id":19699543,"avatar_url":"https://avatars.githubusercontent.com/u/19699543?v=3","gravatar_id":"","url":"https://api.github.com/users/lethuyb","html_url":"https://github.com/lethuyb","followers_url":"https://api.github.com/users/lethuyb/followers","following_url":"https://api.github.com/users/lethuyb/following{/other_user}","gists_url":"https://api.github.com/users/lethuyb/gists{/gist_id}","starred_url":"https://api.github.com/users/lethuyb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lethuyb/subscriptions","organizations_url":"https://api.github.com/users/lethuyb/orgs","repos_url":"https://api.github.com/users/lethuyb/repos","events_url":"https://api.github.com/users/lethuyb/events{/privacy}","received_events_url":"https://api.github.com/users/lethuyb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lethuyb/fdf_4","description":"Foods & Drinks (training)","fork":true,"url":"https://api.github.com/repos/lethuyb/fdf_4","forks_url":"https://api.github.com/repos/lethuyb/fdf_4/forks","keys_url":"https://api.github.com/repos/lethuyb/fdf_4/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lethuyb/fdf_4/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lethuyb/fdf_4/teams","hooks_url":"https://api.github.com/repos/lethuyb/fdf_4/hooks","issue_events_url":"https://api.github.com/repos/lethuyb/fdf_4/issues/events{/number}","events_url":"https://api.github.com/repos/lethuyb/fdf_4/events","assignees_url":"https://api.github.com/repos/lethuyb/fdf_4/assignees{/user}","branches_url":"https://api.github.com/repos/lethuyb/fdf_4/branches{/branch}","tags_url":"https://api.github.com/repos/lethuyb/fdf_4/tags","blobs_url":"https://api.github.com/repos/lethuyb/fdf_4/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lethuyb/fdf_4/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lethuyb/fdf_4/git/refs{/sha}","trees_url":"https://api.github.com/repos/lethuyb/fdf_4/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lethuyb/fdf_4/statuses/{sha}","languages_url":"https://api.github.com/repos/lethuyb/fdf_4/languages","stargazers_url":"https://api.github.com/repos/lethuyb/fdf_4/stargazers","contributors_url":"https://api.github.com/repos/lethuyb/fdf_4/contributors","subscribers_url":"https://api.github.com/repos/lethuyb/fdf_4/subscribers","subscription_url":"https://api.github.com/repos/lethuyb/fdf_4/subscription","commits_url":"https://api.github.com/repos/lethuyb/fdf_4/commits{/sha}","git_commits_url":"https://api.github.com/repos/lethuyb/fdf_4/git/commits{/sha}","comments_url":"https://api.github.com/repos/lethuyb/fdf_4/comments{/number}","issue_comment_url":"https://api.github.com/repos/lethuyb/fdf_4/issues/comments{/number}","contents_url":"https://api.github.com/repos/lethuyb/fdf_4/contents/{+path}","compare_url":"https://api.github.com/repos/lethuyb/fdf_4/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lethuyb/fdf_4/merges","archive_url":"https://api.github.com/repos/lethuyb/fdf_4/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lethuyb/fdf_4/downloads","issues_url":"https://api.github.com/repos/lethuyb/fdf_4/issues{/number}","pulls_url":"https://api.github.com/repos/lethuyb/fdf_4/pulls{/number}","milestones_url":"https://api.github.com/repos/lethuyb/fdf_4/milestones{/number}","notifications_url":"https://api.github.com/repos/lethuyb/fdf_4/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lethuyb/fdf_4/labels{/name}","releases_url":"https://api.github.com/repos/lethuyb/fdf_4/releases{/id}","deployments_url":"https://api.github.com/repos/lethuyb/fdf_4/deployments","created_at":"2016-06-22T02:29:59Z","updated_at":"2016-06-21T06:21:57Z","pushed_at":"2016-06-27T02:47:08Z","git_url":"git://github.com/lethuyb/fdf_4.git","ssh_url":"git@github.com:lethuyb/fdf_4.git","clone_url":"https://github.com/lethuyb/fdf_4.git","svn_url":"https://github.com/lethuyb/fdf_4","homepage":null,"size":34,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"framgia:develop","ref":"develop","sha":"9bb9b4e6fb85c226db7b9f94e86c60897f995cbd","user":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"repo":{"id":61607597,"name":"fdf_4","full_name":"framgia/fdf_4","owner":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/framgia/fdf_4","description":"Foods & Drinks (training)","fork":false,"url":"https://api.github.com/repos/framgia/fdf_4","forks_url":"https://api.github.com/repos/framgia/fdf_4/forks","keys_url":"https://api.github.com/repos/framgia/fdf_4/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fdf_4/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fdf_4/teams","hooks_url":"https://api.github.com/repos/framgia/fdf_4/hooks","issue_events_url":"https://api.github.com/repos/framgia/fdf_4/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fdf_4/events","assignees_url":"https://api.github.com/repos/framgia/fdf_4/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fdf_4/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fdf_4/tags","blobs_url":"https://api.github.com/repos/framgia/fdf_4/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fdf_4/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fdf_4/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fdf_4/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fdf_4/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fdf_4/languages","stargazers_url":"https://api.github.com/repos/framgia/fdf_4/stargazers","contributors_url":"https://api.github.com/repos/framgia/fdf_4/contributors","subscribers_url":"https://api.github.com/repos/framgia/fdf_4/subscribers","subscription_url":"https://api.github.com/repos/framgia/fdf_4/subscription","commits_url":"https://api.github.com/repos/framgia/fdf_4/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fdf_4/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fdf_4/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fdf_4/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fdf_4/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fdf_4/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fdf_4/merges","archive_url":"https://api.github.com/repos/framgia/fdf_4/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fdf_4/downloads","issues_url":"https://api.github.com/repos/framgia/fdf_4/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fdf_4/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fdf_4/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fdf_4/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fdf_4/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fdf_4/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/fdf_4/deployments","created_at":"2016-06-21T06:21:57Z","updated_at":"2016-06-21T06:21:57Z","pushed_at":"2016-06-27T02:47:08Z","git_url":"git://github.com/framgia/fdf_4.git","ssh_url":"git@github.com:framgia/fdf_4.git","clone_url":"https://github.com/framgia/fdf_4.git","svn_url":"https://github.com/framgia/fdf_4","homepage":null,"size":44,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/fdf_4/pulls/6"},"html":{"href":"https://github.com/framgia/fdf_4/pull/6"},"issue":{"href":"https://api.github.com/repos/framgia/fdf_4/issues/6"},"comments":{"href":"https://api.github.com/repos/framgia/fdf_4/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fdf_4/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fdf_4/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fdf_4/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fdf_4/statuses/3aaa3739e566aea31f4bfd3b7af24868d943becb"}}}}
{"actor":{"display_login":"thangtx88"}}