{"action":"created","comment":{"url":"https://api.github.com/repos/havanhung0402/project1/pulls/comments/165303031","pull_request_review_id":93217461,"id":165303031,"diff_hunk":"@@ -1,16 +1,17 @@\n class User < ApplicationRecord\n   has_many :posts, dependent: :destroy\n+  has_many :courses\n   paginates_per 10\n   before_save { self.email = email.downcase }\n-  validates :name,  presence: true, length: { maximum: 50 }\n+  validates :name,  presence: true, length: { maximum: Settings.user_name_max_length }","path":"app/models/user.rb","position":7,"original_position":7,"commit_id":"0587d2e74f71674f1382fecab682fb8279c1298e","original_commit_id":"0587d2e74f71674f1382fecab682fb8279c1298e","user":{"login":"huongnguyenmta","id":18224922,"avatar_url":"https://avatars3.githubusercontent.com/u/18224922?v=4","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":"trước `}` và sau `{` không có khoảng trắng nhé","created_at":"2018-02-01T09:49:16Z","updated_at":"2018-02-01T09:49:20Z","html_url":"https://github.com/havanhung0402/project1/pull/2#discussion_r165303031","pull_request_url":"https://api.github.com/repos/havanhung0402/project1/pulls/2","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/havanhung0402/project1/pulls/comments/165303031"},"html":{"href":"https://github.com/havanhung0402/project1/pull/2#discussion_r165303031"},"pull_request":{"href":"https://api.github.com/repos/havanhung0402/project1/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/havanhung0402/project1/pulls/2","id":166222475,"html_url":"https://github.com/havanhung0402/project1/pull/2","diff_url":"https://github.com/havanhung0402/project1/pull/2.diff","patch_url":"https://github.com/havanhung0402/project1/pull/2.patch","issue_url":"https://api.github.com/repos/havanhung0402/project1/issues/2","number":2,"state":"open","locked":false,"title":"add course page","user":{"login":"havanhung0402","id":25035892,"avatar_url":"https://avatars3.githubusercontent.com/u/25035892?v=4","gravatar_id":"","url":"https://api.github.com/users/havanhung0402","html_url":"https://github.com/havanhung0402","followers_url":"https://api.github.com/users/havanhung0402/followers","following_url":"https://api.github.com/users/havanhung0402/following{/other_user}","gists_url":"https://api.github.com/users/havanhung0402/gists{/gist_id}","starred_url":"https://api.github.com/users/havanhung0402/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/havanhung0402/subscriptions","organizations_url":"https://api.github.com/users/havanhung0402/orgs","repos_url":"https://api.github.com/users/havanhung0402/repos","events_url":"https://api.github.com/users/havanhung0402/events{/privacy}","received_events_url":"https://api.github.com/users/havanhung0402/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-01-31T10:39:18Z","updated_at":"2018-02-01T09:49:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7c2600facb50cc442efc26d78e500fcdfedac6ce","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/havanhung0402/project1/pulls/2/commits","review_comments_url":"https://api.github.com/repos/havanhung0402/project1/pulls/2/comments","review_comment_url":"https://api.github.com/repos/havanhung0402/project1/pulls/comments{/number}","comments_url":"https://api.github.com/repos/havanhung0402/project1/issues/2/comments","statuses_url":"https://api.github.com/repos/havanhung0402/project1/statuses/0587d2e74f71674f1382fecab682fb8279c1298e","head":{"label":"havanhung0402:course_page","ref":"course_page","sha":"0587d2e74f71674f1382fecab682fb8279c1298e","user":{"login":"havanhung0402","id":25035892,"avatar_url":"https://avatars3.githubusercontent.com/u/25035892?v=4","gravatar_id":"","url":"https://api.github.com/users/havanhung0402","html_url":"https://github.com/havanhung0402","followers_url":"https://api.github.com/users/havanhung0402/followers","following_url":"https://api.github.com/users/havanhung0402/following{/other_user}","gists_url":"https://api.github.com/users/havanhung0402/gists{/gist_id}","starred_url":"https://api.github.com/users/havanhung0402/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/havanhung0402/subscriptions","organizations_url":"https://api.github.com/users/havanhung0402/orgs","repos_url":"https://api.github.com/users/havanhung0402/repos","events_url":"https://api.github.com/users/havanhung0402/events{/privacy}","received_events_url":"https://api.github.com/users/havanhung0402/received_events","type":"User","site_admin":false},"repo":{"id":118726411,"name":"project1","full_name":"havanhung0402/project1","owner":{"login":"havanhung0402","id":25035892,"avatar_url":"https://avatars3.githubusercontent.com/u/25035892?v=4","gravatar_id":"","url":"https://api.github.com/users/havanhung0402","html_url":"https://github.com/havanhung0402","followers_url":"https://api.github.com/users/havanhung0402/followers","following_url":"https://api.github.com/users/havanhung0402/following{/other_user}","gists_url":"https://api.github.com/users/havanhung0402/gists{/gist_id}","starred_url":"https://api.github.com/users/havanhung0402/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/havanhung0402/subscriptions","organizations_url":"https://api.github.com/users/havanhung0402/orgs","repos_url":"https://api.github.com/users/havanhung0402/repos","events_url":"https://api.github.com/users/havanhung0402/events{/privacy}","received_events_url":"https://api.github.com/users/havanhung0402/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/havanhung0402/project1","description":null,"fork":false,"url":"https://api.github.com/repos/havanhung0402/project1","forks_url":"https://api.github.com/repos/havanhung0402/project1/forks","keys_url":"https://api.github.com/repos/havanhung0402/project1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/havanhung0402/project1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/havanhung0402/project1/teams","hooks_url":"https://api.github.com/repos/havanhung0402/project1/hooks","issue_events_url":"https://api.github.com/repos/havanhung0402/project1/issues/events{/number}","events_url":"https://api.github.com/repos/havanhung0402/project1/events","assignees_url":"https://api.github.com/repos/havanhung0402/project1/assignees{/user}","branches_url":"https://api.github.com/repos/havanhung0402/project1/branches{/branch}","tags_url":"https://api.github.com/repos/havanhung0402/project1/tags","blobs_url":"https://api.github.com/repos/havanhung0402/project1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/havanhung0402/project1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/havanhung0402/project1/git/refs{/sha}","trees_url":"https://api.github.com/repos/havanhung0402/project1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/havanhung0402/project1/statuses/{sha}","languages_url":"https://api.github.com/repos/havanhung0402/project1/languages","stargazers_url":"https://api.github.com/repos/havanhung0402/project1/stargazers","contributors_url":"https://api.github.com/repos/havanhung0402/project1/contributors","subscribers_url":"https://api.github.com/repos/havanhung0402/project1/subscribers","subscription_url":"https://api.github.com/repos/havanhung0402/project1/subscription","commits_url":"https://api.github.com/repos/havanhung0402/project1/commits{/sha}","git_commits_url":"https://api.github.com/repos/havanhung0402/project1/git/commits{/sha}","comments_url":"https://api.github.com/repos/havanhung0402/project1/comments{/number}","issue_comment_url":"https://api.github.com/repos/havanhung0402/project1/issues/comments{/number}","contents_url":"https://api.github.com/repos/havanhung0402/project1/contents/{+path}","compare_url":"https://api.github.com/repos/havanhung0402/project1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/havanhung0402/project1/merges","archive_url":"https://api.github.com/repos/havanhung0402/project1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/havanhung0402/project1/downloads","issues_url":"https://api.github.com/repos/havanhung0402/project1/issues{/number}","pulls_url":"https://api.github.com/repos/havanhung0402/project1/pulls{/number}","milestones_url":"https://api.github.com/repos/havanhung0402/project1/milestones{/number}","notifications_url":"https://api.github.com/repos/havanhung0402/project1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/havanhung0402/project1/labels{/name}","releases_url":"https://api.github.com/repos/havanhung0402/project1/releases{/id}","deployments_url":"https://api.github.com/repos/havanhung0402/project1/deployments","created_at":"2018-01-24T07:03:14Z","updated_at":"2018-01-24T07:08:43Z","pushed_at":"2018-02-01T09:43:15Z","git_url":"git://github.com/havanhung0402/project1.git","ssh_url":"git@github.com:havanhung0402/project1.git","clone_url":"https://github.com/havanhung0402/project1.git","svn_url":"https://github.com/havanhung0402/project1","homepage":null,"size":45139,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"hungdev"}},"base":{"label":"havanhung0402:hungdev","ref":"hungdev","sha":"c5500b1f3212ee1052519aa23e686b0d8b0879f1","user":{"login":"havanhung0402","id":25035892,"avatar_url":"https://avatars3.githubusercontent.com/u/25035892?v=4","gravatar_id":"","url":"https://api.github.com/users/havanhung0402","html_url":"https://github.com/havanhung0402","followers_url":"https://api.github.com/users/havanhung0402/followers","following_url":"https://api.github.com/users/havanhung0402/following{/other_user}","gists_url":"https://api.github.com/users/havanhung0402/gists{/gist_id}","starred_url":"https://api.github.com/users/havanhung0402/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/havanhung0402/subscriptions","organizations_url":"https://api.github.com/users/havanhung0402/orgs","repos_url":"https://api.github.com/users/havanhung0402/repos","events_url":"https://api.github.com/users/havanhung0402/events{/privacy}","received_events_url":"https://api.github.com/users/havanhung0402/received_events","type":"User","site_admin":false},"repo":{"id":118726411,"name":"project1","full_name":"havanhung0402/project1","owner":{"login":"havanhung0402","id":25035892,"avatar_url":"https://avatars3.githubusercontent.com/u/25035892?v=4","gravatar_id":"","url":"https://api.github.com/users/havanhung0402","html_url":"https://github.com/havanhung0402","followers_url":"https://api.github.com/users/havanhung0402/followers","following_url":"https://api.github.com/users/havanhung0402/following{/other_user}","gists_url":"https://api.github.com/users/havanhung0402/gists{/gist_id}","starred_url":"https://api.github.com/users/havanhung0402/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/havanhung0402/subscriptions","organizations_url":"https://api.github.com/users/havanhung0402/orgs","repos_url":"https://api.github.com/users/havanhung0402/repos","events_url":"https://api.github.com/users/havanhung0402/events{/privacy}","received_events_url":"https://api.github.com/users/havanhung0402/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/havanhung0402/project1","description":null,"fork":false,"url":"https://api.github.com/repos/havanhung0402/project1","forks_url":"https://api.github.com/repos/havanhung0402/project1/forks","keys_url":"https://api.github.com/repos/havanhung0402/project1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/havanhung0402/project1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/havanhung0402/project1/teams","hooks_url":"https://api.github.com/repos/havanhung0402/project1/hooks","issue_events_url":"https://api.github.com/repos/havanhung0402/project1/issues/events{/number}","events_url":"https://api.github.com/repos/havanhung0402/project1/events","assignees_url":"https://api.github.com/repos/havanhung0402/project1/assignees{/user}","branches_url":"https://api.github.com/repos/havanhung0402/project1/branches{/branch}","tags_url":"https://api.github.com/repos/havanhung0402/project1/tags","blobs_url":"https://api.github.com/repos/havanhung0402/project1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/havanhung0402/project1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/havanhung0402/project1/git/refs{/sha}","trees_url":"https://api.github.com/repos/havanhung0402/project1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/havanhung0402/project1/statuses/{sha}","languages_url":"https://api.github.com/repos/havanhung0402/project1/languages","stargazers_url":"https://api.github.com/repos/havanhung0402/project1/stargazers","contributors_url":"https://api.github.com/repos/havanhung0402/project1/contributors","subscribers_url":"https://api.github.com/repos/havanhung0402/project1/subscribers","subscription_url":"https://api.github.com/repos/havanhung0402/project1/subscription","commits_url":"https://api.github.com/repos/havanhung0402/project1/commits{/sha}","git_commits_url":"https://api.github.com/repos/havanhung0402/project1/git/commits{/sha}","comments_url":"https://api.github.com/repos/havanhung0402/project1/comments{/number}","issue_comment_url":"https://api.github.com/repos/havanhung0402/project1/issues/comments{/number}","contents_url":"https://api.github.com/repos/havanhung0402/project1/contents/{+path}","compare_url":"https://api.github.com/repos/havanhung0402/project1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/havanhung0402/project1/merges","archive_url":"https://api.github.com/repos/havanhung0402/project1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/havanhung0402/project1/downloads","issues_url":"https://api.github.com/repos/havanhung0402/project1/issues{/number}","pulls_url":"https://api.github.com/repos/havanhung0402/project1/pulls{/number}","milestones_url":"https://api.github.com/repos/havanhung0402/project1/milestones{/number}","notifications_url":"https://api.github.com/repos/havanhung0402/project1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/havanhung0402/project1/labels{/name}","releases_url":"https://api.github.com/repos/havanhung0402/project1/releases{/id}","deployments_url":"https://api.github.com/repos/havanhung0402/project1/deployments","created_at":"2018-01-24T07:03:14Z","updated_at":"2018-01-24T07:08:43Z","pushed_at":"2018-02-01T09:43:15Z","git_url":"git://github.com/havanhung0402/project1.git","ssh_url":"git@github.com:havanhung0402/project1.git","clone_url":"https://github.com/havanhung0402/project1.git","svn_url":"https://github.com/havanhung0402/project1","homepage":null,"size":45139,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"hungdev"}},"_links":{"self":{"href":"https://api.github.com/repos/havanhung0402/project1/pulls/2"},"html":{"href":"https://github.com/havanhung0402/project1/pull/2"},"issue":{"href":"https://api.github.com/repos/havanhung0402/project1/issues/2"},"comments":{"href":"https://api.github.com/repos/havanhung0402/project1/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/havanhung0402/project1/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/havanhung0402/project1/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/havanhung0402/project1/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/havanhung0402/project1/statuses/0587d2e74f71674f1382fecab682fb8279c1298e"}},"author_association":"OWNER"}}
{"actor":{"display_login":"huongnguyenmta"}}