{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fels_134/pulls/comments/63635350","id":63635350,"diff_hunk":"@@ -0,0 +1,9 @@\n+class User < ActiveRecord::Base\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+\tformat: {with: VALID_EMAIL_REGEX}, uniqueness: {case_sensitive: false}","path":"app/models/user.rb","position":6,"original_position":6,"commit_id":"14ef362aba3fe7f6fddc1f01cc269ec235de8f2a","original_commit_id":"14ef362aba3fe7f6fddc1f01cc269ec235de8f2a","user":{"login":"hellovietnam93","id":8023606,"avatar_url":"https://avatars.githubusercontent.com/u/8023606?v=3","gravatar_id":"","url":"https://api.github.com/users/hellovietnam93","html_url":"https://github.com/hellovietnam93","followers_url":"https://api.github.com/users/hellovietnam93/followers","following_url":"https://api.github.com/users/hellovietnam93/following{/other_user}","gists_url":"https://api.github.com/users/hellovietnam93/gists{/gist_id}","starred_url":"https://api.github.com/users/hellovietnam93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hellovietnam93/subscriptions","organizations_url":"https://api.github.com/users/hellovietnam93/orgs","repos_url":"https://api.github.com/users/hellovietnam93/repos","events_url":"https://api.github.com/users/hellovietnam93/events{/privacy}","received_events_url":"https://api.github.com/users/hellovietnam93/received_events","type":"User","site_admin":false},"body":"ident","created_at":"2016-05-18T02:00:07Z","updated_at":"2016-05-18T02:00:07Z","html_url":"https://github.com/framgia/fels_134/pull/5#discussion_r63635350","pull_request_url":"https://api.github.com/repos/framgia/fels_134/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_134/pulls/comments/63635350"},"html":{"href":"https://github.com/framgia/fels_134/pull/5#discussion_r63635350"},"pull_request":{"href":"https://api.github.com/repos/framgia/fels_134/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fels_134/pulls/5","id":70352768,"html_url":"https://github.com/framgia/fels_134/pull/5","diff_url":"https://github.com/framgia/fels_134/pull/5.diff","patch_url":"https://github.com/framgia/fels_134/pull/5.patch","issue_url":"https://api.github.com/repos/framgia/fels_134/issues/5","number":5,"state":"open","locked":false,"title":"Signup","user":{"login":"huongnguyenmta","id":18224922,"avatar_url":"https://avatars.githubusercontent.com/u/18224922?v=3","gravatar_id":"","url":"https://api.github.com/users/huongnguyenmta","html_url":"https://github.com/huongnguyenmta","followers_url":"https://api.github.com/users/huongnguyenmta/followers","following_url":"https://api.github.com/users/huongnguyenmta/following{/other_user}","gists_url":"https://api.github.com/users/huongnguyenmta/gists{/gist_id}","starred_url":"https://api.github.com/users/huongnguyenmta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huongnguyenmta/subscriptions","organizations_url":"https://api.github.com/users/huongnguyenmta/orgs","repos_url":"https://api.github.com/users/huongnguyenmta/repos","events_url":"https://api.github.com/users/huongnguyenmta/events{/privacy}","received_events_url":"https://api.github.com/users/huongnguyenmta/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-05-17T13:03:39Z","updated_at":"2016-05-18T02:00:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a9f0221dc62fe5c9e0106f6792a9841b9ac54acc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fels_134/pulls/5/commits","review_comments_url":"https://api.github.com/repos/framgia/fels_134/pulls/5/comments","review_comment_url":"https://api.github.com/repos/framgia/fels_134/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fels_134/issues/5/comments","statuses_url":"https://api.github.com/repos/framgia/fels_134/statuses/14ef362aba3fe7f6fddc1f01cc269ec235de8f2a","head":{"label":"huongnguyenmta:signup","ref":"signup","sha":"14ef362aba3fe7f6fddc1f01cc269ec235de8f2a","user":{"login":"huongnguyenmta","id":18224922,"avatar_url":"https://avatars.githubusercontent.com/u/18224922?v=3","gravatar_id":"","url":"https://api.github.com/users/huongnguyenmta","html_url":"https://github.com/huongnguyenmta","followers_url":"https://api.github.com/users/huongnguyenmta/followers","following_url":"https://api.github.com/users/huongnguyenmta/following{/other_user}","gists_url":"https://api.github.com/users/huongnguyenmta/gists{/gist_id}","starred_url":"https://api.github.com/users/huongnguyenmta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huongnguyenmta/subscriptions","organizations_url":"https://api.github.com/users/huongnguyenmta/orgs","repos_url":"https://api.github.com/users/huongnguyenmta/repos","events_url":"https://api.github.com/users/huongnguyenmta/events{/privacy}","received_events_url":"https://api.github.com/users/huongnguyenmta/received_events","type":"User","site_admin":false},"repo":{"id":58595300,"name":"fels_134","full_name":"huongnguyenmta/fels_134","owner":{"login":"huongnguyenmta","id":18224922,"avatar_url":"https://avatars.githubusercontent.com/u/18224922?v=3","gravatar_id":"","url":"https://api.github.com/users/huongnguyenmta","html_url":"https://github.com/huongnguyenmta","followers_url":"https://api.github.com/users/huongnguyenmta/followers","following_url":"https://api.github.com/users/huongnguyenmta/following{/other_user}","gists_url":"https://api.github.com/users/huongnguyenmta/gists{/gist_id}","starred_url":"https://api.github.com/users/huongnguyenmta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huongnguyenmta/subscriptions","organizations_url":"https://api.github.com/users/huongnguyenmta/orgs","repos_url":"https://api.github.com/users/huongnguyenmta/repos","events_url":"https://api.github.com/users/huongnguyenmta/events{/privacy}","received_events_url":"https://api.github.com/users/huongnguyenmta/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/huongnguyenmta/fels_134","description":"Framgia E-Learning System (training)","fork":true,"url":"https://api.github.com/repos/huongnguyenmta/fels_134","forks_url":"https://api.github.com/repos/huongnguyenmta/fels_134/forks","keys_url":"https://api.github.com/repos/huongnguyenmta/fels_134/keys{/key_id}","collaborators_url":"https://api.github.com/repos/huongnguyenmta/fels_134/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/huongnguyenmta/fels_134/teams","hooks_url":"https://api.github.com/repos/huongnguyenmta/fels_134/hooks","issue_events_url":"https://api.github.com/repos/huongnguyenmta/fels_134/issues/events{/number}","events_url":"https://api.github.com/repos/huongnguyenmta/fels_134/events","assignees_url":"https://api.github.com/repos/huongnguyenmta/fels_134/assignees{/user}","branches_url":"https://api.github.com/repos/huongnguyenmta/fels_134/branches{/branch}","tags_url":"https://api.github.com/repos/huongnguyenmta/fels_134/tags","blobs_url":"https://api.github.com/repos/huongnguyenmta/fels_134/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/huongnguyenmta/fels_134/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/huongnguyenmta/fels_134/git/refs{/sha}","trees_url":"https://api.github.com/repos/huongnguyenmta/fels_134/git/trees{/sha}","statuses_url":"https://api.github.com/repos/huongnguyenmta/fels_134/statuses/{sha}","languages_url":"https://api.github.com/repos/huongnguyenmta/fels_134/languages","stargazers_url":"https://api.github.com/repos/huongnguyenmta/fels_134/stargazers","contributors_url":"https://api.github.com/repos/huongnguyenmta/fels_134/contributors","subscribers_url":"https://api.github.com/repos/huongnguyenmta/fels_134/subscribers","subscription_url":"https://api.github.com/repos/huongnguyenmta/fels_134/subscription","commits_url":"https://api.github.com/repos/huongnguyenmta/fels_134/commits{/sha}","git_commits_url":"https://api.github.com/repos/huongnguyenmta/fels_134/git/commits{/sha}","comments_url":"https://api.github.com/repos/huongnguyenmta/fels_134/comments{/number}","issue_comment_url":"https://api.github.com/repos/huongnguyenmta/fels_134/issues/comments{/number}","contents_url":"https://api.github.com/repos/huongnguyenmta/fels_134/contents/{+path}","compare_url":"https://api.github.com/repos/huongnguyenmta/fels_134/compare/{base}...{head}","merges_url":"https://api.github.com/repos/huongnguyenmta/fels_134/merges","archive_url":"https://api.github.com/repos/huongnguyenmta/fels_134/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/huongnguyenmta/fels_134/downloads","issues_url":"https://api.github.com/repos/huongnguyenmta/fels_134/issues{/number}","pulls_url":"https://api.github.com/repos/huongnguyenmta/fels_134/pulls{/number}","milestones_url":"https://api.github.com/repos/huongnguyenmta/fels_134/milestones{/number}","notifications_url":"https://api.github.com/repos/huongnguyenmta/fels_134/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/huongnguyenmta/fels_134/labels{/name}","releases_url":"https://api.github.com/repos/huongnguyenmta/fels_134/releases{/id}","deployments_url":"https://api.github.com/repos/huongnguyenmta/fels_134/deployments","created_at":"2016-05-12T01:05:11Z","updated_at":"2016-05-10T07:29:21Z","pushed_at":"2016-05-18T01:40:52Z","git_url":"git://github.com/huongnguyenmta/fels_134.git","ssh_url":"git@github.com:huongnguyenmta/fels_134.git","clone_url":"https://github.com/huongnguyenmta/fels_134.git","svn_url":"https://github.com/huongnguyenmta/fels_134","homepage":null,"size":37,"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":"04d60e7ab14a93bd4c0e536d37c43737213f8b99","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":58439322,"name":"fels_134","full_name":"framgia/fels_134","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/fels_134","description":"Framgia E-Learning System (training)","fork":false,"url":"https://api.github.com/repos/framgia/fels_134","forks_url":"https://api.github.com/repos/framgia/fels_134/forks","keys_url":"https://api.github.com/repos/framgia/fels_134/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fels_134/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fels_134/teams","hooks_url":"https://api.github.com/repos/framgia/fels_134/hooks","issue_events_url":"https://api.github.com/repos/framgia/fels_134/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fels_134/events","assignees_url":"https://api.github.com/repos/framgia/fels_134/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fels_134/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fels_134/tags","blobs_url":"https://api.github.com/repos/framgia/fels_134/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fels_134/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fels_134/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fels_134/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fels_134/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fels_134/languages","stargazers_url":"https://api.github.com/repos/framgia/fels_134/stargazers","contributors_url":"https://api.github.com/repos/framgia/fels_134/contributors","subscribers_url":"https://api.github.com/repos/framgia/fels_134/subscribers","subscription_url":"https://api.github.com/repos/framgia/fels_134/subscription","commits_url":"https://api.github.com/repos/framgia/fels_134/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fels_134/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fels_134/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fels_134/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fels_134/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fels_134/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fels_134/merges","archive_url":"https://api.github.com/repos/framgia/fels_134/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fels_134/downloads","issues_url":"https://api.github.com/repos/framgia/fels_134/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fels_134/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fels_134/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fels_134/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fels_134/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fels_134/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/fels_134/deployments","created_at":"2016-05-10T07:29:21Z","updated_at":"2016-05-10T07:29:21Z","pushed_at":"2016-05-18T01:51:11Z","git_url":"git://github.com/framgia/fels_134.git","ssh_url":"git@github.com:framgia/fels_134.git","clone_url":"https://github.com/framgia/fels_134.git","svn_url":"https://github.com/framgia/fels_134","homepage":null,"size":41,"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":4,"forks":2,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_134/pulls/5"},"html":{"href":"https://github.com/framgia/fels_134/pull/5"},"issue":{"href":"https://api.github.com/repos/framgia/fels_134/issues/5"},"comments":{"href":"https://api.github.com/repos/framgia/fels_134/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fels_134/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fels_134/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fels_134/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fels_134/statuses/14ef362aba3fe7f6fddc1f01cc269ec235de8f2a"}}}}