{"action":"created","comment":{"url":"https://api.github.com/repos/NguyenHuyLong/sample_app/pulls/comments/89468125","pull_request_review_id":10012972,"id":89468125,"diff_hunk":"@@ -0,0 +1,17 @@\n+class User < ActiveRecord::Base\n+  before_save :downcase\n+\n+  validates :name, presence: true, length: {maximum: 50}\n+  VALID_EMAIL_REGEX = /\\A[\\w+\\-.]+@[a-z\\d\\-]+(\\.[a-z\\d\\-]+)*\\.[a-z]+\\z/i\n+  validates :email, presence: true, length: {maximum: 255} ,\n+    format: {with: VALID_EMAIL_REGEX}, uniqueness: {case_sensitive: false}\n+  has_secure_password\n+  validates :password, presence: true, length: {minimum: 6}\n+  validates :gender, presence: true\n+\n+  enum gender: [:female, :male]\n+\n+  def downcase","path":"app/models/user.rb","position":14,"original_position":14,"commit_id":"4ab1e27c58a5e656b6ca3025ffbd621319614d75","original_commit_id":"4ab1e27c58a5e656b6ca3025ffbd621319614d75","user":{"login":"yeunuthongminh","id":20291773,"avatar_url":"https://avatars.githubusercontent.com/u/20291773?v=3","gravatar_id":"","url":"https://api.github.com/users/yeunuthongminh","html_url":"https://github.com/yeunuthongminh","followers_url":"https://api.github.com/users/yeunuthongminh/followers","following_url":"https://api.github.com/users/yeunuthongminh/following{/other_user}","gists_url":"https://api.github.com/users/yeunuthongminh/gists{/gist_id}","starred_url":"https://api.github.com/users/yeunuthongminh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yeunuthongminh/subscriptions","organizations_url":"https://api.github.com/users/yeunuthongminh/orgs","repos_url":"https://api.github.com/users/yeunuthongminh/repos","events_url":"https://api.github.com/users/yeunuthongminh/events{/privacy}","received_events_url":"https://api.github.com/users/yeunuthongminh/received_events","type":"User","site_admin":false},"body":"sao lại là public?","created_at":"2016-11-24T10:15:01Z","updated_at":"2016-11-24T10:15:12Z","html_url":"https://github.com/NguyenHuyLong/sample_app/pull/5#discussion_r89468125","pull_request_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/NguyenHuyLong/sample_app/pulls/comments/89468125"},"html":{"href":"https://github.com/NguyenHuyLong/sample_app/pull/5#discussion_r89468125"},"pull_request":{"href":"https://api.github.com/repos/NguyenHuyLong/sample_app/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/NguyenHuyLong/sample_app/pulls/5","id":95122816,"html_url":"https://github.com/NguyenHuyLong/sample_app/pull/5","diff_url":"https://github.com/NguyenHuyLong/sample_app/pull/5.diff","patch_url":"https://github.com/NguyenHuyLong/sample_app/pull/5.patch","issue_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/issues/5","number":5,"state":"open","locked":false,"title":"Modeling users","user":{"login":"NguyenHuyLong","id":23493755,"avatar_url":"https://avatars.githubusercontent.com/u/23493755?v=3","gravatar_id":"","url":"https://api.github.com/users/NguyenHuyLong","html_url":"https://github.com/NguyenHuyLong","followers_url":"https://api.github.com/users/NguyenHuyLong/followers","following_url":"https://api.github.com/users/NguyenHuyLong/following{/other_user}","gists_url":"https://api.github.com/users/NguyenHuyLong/gists{/gist_id}","starred_url":"https://api.github.com/users/NguyenHuyLong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NguyenHuyLong/subscriptions","organizations_url":"https://api.github.com/users/NguyenHuyLong/orgs","repos_url":"https://api.github.com/users/NguyenHuyLong/repos","events_url":"https://api.github.com/users/NguyenHuyLong/events{/privacy}","received_events_url":"https://api.github.com/users/NguyenHuyLong/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-24T06:19:45Z","updated_at":"2016-11-24T10:15:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"544e9c798f709d143d08a775f93434eb9727de60","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/pulls/5/commits","review_comments_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/pulls/5/comments","review_comment_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/issues/5/comments","statuses_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/statuses/4ab1e27c58a5e656b6ca3025ffbd621319614d75","head":{"label":"NguyenHuyLong:modeling-users","ref":"modeling-users","sha":"4ab1e27c58a5e656b6ca3025ffbd621319614d75","user":{"login":"NguyenHuyLong","id":23493755,"avatar_url":"https://avatars.githubusercontent.com/u/23493755?v=3","gravatar_id":"","url":"https://api.github.com/users/NguyenHuyLong","html_url":"https://github.com/NguyenHuyLong","followers_url":"https://api.github.com/users/NguyenHuyLong/followers","following_url":"https://api.github.com/users/NguyenHuyLong/following{/other_user}","gists_url":"https://api.github.com/users/NguyenHuyLong/gists{/gist_id}","starred_url":"https://api.github.com/users/NguyenHuyLong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NguyenHuyLong/subscriptions","organizations_url":"https://api.github.com/users/NguyenHuyLong/orgs","repos_url":"https://api.github.com/users/NguyenHuyLong/repos","events_url":"https://api.github.com/users/NguyenHuyLong/events{/privacy}","received_events_url":"https://api.github.com/users/NguyenHuyLong/received_events","type":"User","site_admin":false},"repo":{"id":74316456,"name":"sample_app","full_name":"NguyenHuyLong/sample_app","owner":{"login":"NguyenHuyLong","id":23493755,"avatar_url":"https://avatars.githubusercontent.com/u/23493755?v=3","gravatar_id":"","url":"https://api.github.com/users/NguyenHuyLong","html_url":"https://github.com/NguyenHuyLong","followers_url":"https://api.github.com/users/NguyenHuyLong/followers","following_url":"https://api.github.com/users/NguyenHuyLong/following{/other_user}","gists_url":"https://api.github.com/users/NguyenHuyLong/gists{/gist_id}","starred_url":"https://api.github.com/users/NguyenHuyLong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NguyenHuyLong/subscriptions","organizations_url":"https://api.github.com/users/NguyenHuyLong/orgs","repos_url":"https://api.github.com/users/NguyenHuyLong/repos","events_url":"https://api.github.com/users/NguyenHuyLong/events{/privacy}","received_events_url":"https://api.github.com/users/NguyenHuyLong/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/NguyenHuyLong/sample_app","description":null,"fork":false,"url":"https://api.github.com/repos/NguyenHuyLong/sample_app","forks_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/forks","keys_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/teams","hooks_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/hooks","issue_events_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/issues/events{/number}","events_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/events","assignees_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/assignees{/user}","branches_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/branches{/branch}","tags_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/tags","blobs_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/statuses/{sha}","languages_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/languages","stargazers_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/stargazers","contributors_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/contributors","subscribers_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/subscribers","subscription_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/subscription","commits_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/contents/{+path}","compare_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/merges","archive_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/downloads","issues_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/issues{/number}","pulls_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/pulls{/number}","milestones_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/milestones{/number}","notifications_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/labels{/name}","releases_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/releases{/id}","deployments_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/deployments","created_at":"2016-11-21T01:52:06Z","updated_at":"2016-11-21T01:52:56Z","pushed_at":"2016-11-24T09:49:23Z","git_url":"git://github.com/NguyenHuyLong/sample_app.git","ssh_url":"git@github.com:NguyenHuyLong/sample_app.git","clone_url":"https://github.com/NguyenHuyLong/sample_app.git","svn_url":"https://github.com/NguyenHuyLong/sample_app","homepage":null,"size":48,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":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":"NguyenHuyLong:master","ref":"master","sha":"a556d4a72725ee97bd6c8ffe88ce8aae836d606e","user":{"login":"NguyenHuyLong","id":23493755,"avatar_url":"https://avatars.githubusercontent.com/u/23493755?v=3","gravatar_id":"","url":"https://api.github.com/users/NguyenHuyLong","html_url":"https://github.com/NguyenHuyLong","followers_url":"https://api.github.com/users/NguyenHuyLong/followers","following_url":"https://api.github.com/users/NguyenHuyLong/following{/other_user}","gists_url":"https://api.github.com/users/NguyenHuyLong/gists{/gist_id}","starred_url":"https://api.github.com/users/NguyenHuyLong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NguyenHuyLong/subscriptions","organizations_url":"https://api.github.com/users/NguyenHuyLong/orgs","repos_url":"https://api.github.com/users/NguyenHuyLong/repos","events_url":"https://api.github.com/users/NguyenHuyLong/events{/privacy}","received_events_url":"https://api.github.com/users/NguyenHuyLong/received_events","type":"User","site_admin":false},"repo":{"id":74316456,"name":"sample_app","full_name":"NguyenHuyLong/sample_app","owner":{"login":"NguyenHuyLong","id":23493755,"avatar_url":"https://avatars.githubusercontent.com/u/23493755?v=3","gravatar_id":"","url":"https://api.github.com/users/NguyenHuyLong","html_url":"https://github.com/NguyenHuyLong","followers_url":"https://api.github.com/users/NguyenHuyLong/followers","following_url":"https://api.github.com/users/NguyenHuyLong/following{/other_user}","gists_url":"https://api.github.com/users/NguyenHuyLong/gists{/gist_id}","starred_url":"https://api.github.com/users/NguyenHuyLong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NguyenHuyLong/subscriptions","organizations_url":"https://api.github.com/users/NguyenHuyLong/orgs","repos_url":"https://api.github.com/users/NguyenHuyLong/repos","events_url":"https://api.github.com/users/NguyenHuyLong/events{/privacy}","received_events_url":"https://api.github.com/users/NguyenHuyLong/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/NguyenHuyLong/sample_app","description":null,"fork":false,"url":"https://api.github.com/repos/NguyenHuyLong/sample_app","forks_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/forks","keys_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/teams","hooks_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/hooks","issue_events_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/issues/events{/number}","events_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/events","assignees_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/assignees{/user}","branches_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/branches{/branch}","tags_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/tags","blobs_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/statuses/{sha}","languages_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/languages","stargazers_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/stargazers","contributors_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/contributors","subscribers_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/subscribers","subscription_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/subscription","commits_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/contents/{+path}","compare_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/merges","archive_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/downloads","issues_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/issues{/number}","pulls_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/pulls{/number}","milestones_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/milestones{/number}","notifications_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/labels{/name}","releases_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/releases{/id}","deployments_url":"https://api.github.com/repos/NguyenHuyLong/sample_app/deployments","created_at":"2016-11-21T01:52:06Z","updated_at":"2016-11-21T01:52:56Z","pushed_at":"2016-11-24T09:49:23Z","git_url":"git://github.com/NguyenHuyLong/sample_app.git","ssh_url":"git@github.com:NguyenHuyLong/sample_app.git","clone_url":"https://github.com/NguyenHuyLong/sample_app.git","svn_url":"https://github.com/NguyenHuyLong/sample_app","homepage":null,"size":48,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":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/NguyenHuyLong/sample_app/pulls/5"},"html":{"href":"https://github.com/NguyenHuyLong/sample_app/pull/5"},"issue":{"href":"https://api.github.com/repos/NguyenHuyLong/sample_app/issues/5"},"comments":{"href":"https://api.github.com/repos/NguyenHuyLong/sample_app/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/NguyenHuyLong/sample_app/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/NguyenHuyLong/sample_app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NguyenHuyLong/sample_app/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/NguyenHuyLong/sample_app/statuses/4ab1e27c58a5e656b6ca3025ffbd621319614d75"}}}}
{"actor":{"display_login":"yeunuthongminh"}}