{"action":"created","comment":{"url":"https://api.github.com/repos/hieulebkdn/sample_app/pulls/comments/194609510","pull_request_review_id":127812832,"id":194609510,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NDYwOTUxMA==","diff_hunk":"@@ -0,0 +1,12 @@\n+class Micropost < ApplicationRecord\n+  belongs_to :user\n+\n+  validates :user_id, presence: true\n+  validates :content, length: {maximum: Settings.micropost_content_maxlen},\n+   presence: true\n+\n+  default_scope ->{order created_at: :desc}\n+  scope :user_microposts, ->(user_id){where \"user_id = ?\", user_id}","path":"app/models/micropost.rb","position":9,"original_position":9,"commit_id":"6d86e8e7e44ff6aede0687361c59e7c49c9dab31","original_commit_id":"6d86e8e7e44ff6aede0687361c59e7c49c9dab31","user":{"login":"hieulebkdn","id":36104886,"node_id":"MDQ6VXNlcjM2MTA0ODg2","avatar_url":"https://avatars1.githubusercontent.com/u/36104886?v=4","gravatar_id":"","url":"https://api.github.com/users/hieulebkdn","html_url":"https://github.com/hieulebkdn","followers_url":"https://api.github.com/users/hieulebkdn/followers","following_url":"https://api.github.com/users/hieulebkdn/following{/other_user}","gists_url":"https://api.github.com/users/hieulebkdn/gists{/gist_id}","starred_url":"https://api.github.com/users/hieulebkdn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hieulebkdn/subscriptions","organizations_url":"https://api.github.com/users/hieulebkdn/orgs","repos_url":"https://api.github.com/users/hieulebkdn/repos","events_url":"https://api.github.com/users/hieulebkdn/events{/privacy}","received_events_url":"https://api.github.com/users/hieulebkdn/received_events","type":"User","site_admin":false},"body":"chị ơi rubocop nó hông có cho bỏ","created_at":"2018-06-12T04:03:35Z","updated_at":"2018-06-12T04:03:36Z","html_url":"https://github.com/hieulebkdn/sample_app/pull/12#discussion_r194609510","pull_request_url":"https://api.github.com/repos/hieulebkdn/sample_app/pulls/12","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/hieulebkdn/sample_app/pulls/comments/194609510"},"html":{"href":"https://github.com/hieulebkdn/sample_app/pull/12#discussion_r194609510"},"pull_request":{"href":"https://api.github.com/repos/hieulebkdn/sample_app/pulls/12"}},"in_reply_to_id":194608950},"pull_request":{"url":"https://api.github.com/repos/hieulebkdn/sample_app/pulls/12","id":193883779,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkzODgzNzc5","html_url":"https://github.com/hieulebkdn/sample_app/pull/12","diff_url":"https://github.com/hieulebkdn/sample_app/pull/12.diff","patch_url":"https://github.com/hieulebkdn/sample_app/pull/12.patch","issue_url":"https://api.github.com/repos/hieulebkdn/sample_app/issues/12","number":12,"state":"open","locked":false,"title":"Review chapter_13","user":{"login":"hieulebkdn","id":36104886,"node_id":"MDQ6VXNlcjM2MTA0ODg2","avatar_url":"https://avatars1.githubusercontent.com/u/36104886?v=4","gravatar_id":"","url":"https://api.github.com/users/hieulebkdn","html_url":"https://github.com/hieulebkdn","followers_url":"https://api.github.com/users/hieulebkdn/followers","following_url":"https://api.github.com/users/hieulebkdn/following{/other_user}","gists_url":"https://api.github.com/users/hieulebkdn/gists{/gist_id}","starred_url":"https://api.github.com/users/hieulebkdn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hieulebkdn/subscriptions","organizations_url":"https://api.github.com/users/hieulebkdn/orgs","repos_url":"https://api.github.com/users/hieulebkdn/repos","events_url":"https://api.github.com/users/hieulebkdn/events{/privacy}","received_events_url":"https://api.github.com/users/hieulebkdn/received_events","type":"User","site_admin":false},"body":"![image](https://user-images.githubusercontent.com/36104886/41215414-60969a10-6d7a-11e8-9e2f-9b6ec39996b1.png)\r\n","created_at":"2018-06-11T06:21:56Z","updated_at":"2018-06-12T04:03:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e1343f1a03fa411434f49b125af819cd69392c98","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/hieulebkdn/sample_app/pulls/12/commits","review_comments_url":"https://api.github.com/repos/hieulebkdn/sample_app/pulls/12/comments","review_comment_url":"https://api.github.com/repos/hieulebkdn/sample_app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hieulebkdn/sample_app/issues/12/comments","statuses_url":"https://api.github.com/repos/hieulebkdn/sample_app/statuses/6d86e8e7e44ff6aede0687361c59e7c49c9dab31","head":{"label":"hieulebkdn:chapter_13","ref":"chapter_13","sha":"6d86e8e7e44ff6aede0687361c59e7c49c9dab31","user":{"login":"hieulebkdn","id":36104886,"node_id":"MDQ6VXNlcjM2MTA0ODg2","avatar_url":"https://avatars1.githubusercontent.com/u/36104886?v=4","gravatar_id":"","url":"https://api.github.com/users/hieulebkdn","html_url":"https://github.com/hieulebkdn","followers_url":"https://api.github.com/users/hieulebkdn/followers","following_url":"https://api.github.com/users/hieulebkdn/following{/other_user}","gists_url":"https://api.github.com/users/hieulebkdn/gists{/gist_id}","starred_url":"https://api.github.com/users/hieulebkdn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hieulebkdn/subscriptions","organizations_url":"https://api.github.com/users/hieulebkdn/orgs","repos_url":"https://api.github.com/users/hieulebkdn/repos","events_url":"https://api.github.com/users/hieulebkdn/events{/privacy}","received_events_url":"https://api.github.com/users/hieulebkdn/received_events","type":"User","site_admin":false},"repo":{"id":135981688,"node_id":"MDEwOlJlcG9zaXRvcnkxMzU5ODE2ODg=","name":"sample_app","full_name":"hieulebkdn/sample_app","owner":{"login":"hieulebkdn","id":36104886,"node_id":"MDQ6VXNlcjM2MTA0ODg2","avatar_url":"https://avatars1.githubusercontent.com/u/36104886?v=4","gravatar_id":"","url":"https://api.github.com/users/hieulebkdn","html_url":"https://github.com/hieulebkdn","followers_url":"https://api.github.com/users/hieulebkdn/followers","following_url":"https://api.github.com/users/hieulebkdn/following{/other_user}","gists_url":"https://api.github.com/users/hieulebkdn/gists{/gist_id}","starred_url":"https://api.github.com/users/hieulebkdn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hieulebkdn/subscriptions","organizations_url":"https://api.github.com/users/hieulebkdn/orgs","repos_url":"https://api.github.com/users/hieulebkdn/repos","events_url":"https://api.github.com/users/hieulebkdn/events{/privacy}","received_events_url":"https://api.github.com/users/hieulebkdn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hieulebkdn/sample_app","description":"Framgia 2018 Training - Le Trong Hieu","fork":false,"url":"https://api.github.com/repos/hieulebkdn/sample_app","forks_url":"https://api.github.com/repos/hieulebkdn/sample_app/forks","keys_url":"https://api.github.com/repos/hieulebkdn/sample_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hieulebkdn/sample_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hieulebkdn/sample_app/teams","hooks_url":"https://api.github.com/repos/hieulebkdn/sample_app/hooks","issue_events_url":"https://api.github.com/repos/hieulebkdn/sample_app/issues/events{/number}","events_url":"https://api.github.com/repos/hieulebkdn/sample_app/events","assignees_url":"https://api.github.com/repos/hieulebkdn/sample_app/assignees{/user}","branches_url":"https://api.github.com/repos/hieulebkdn/sample_app/branches{/branch}","tags_url":"https://api.github.com/repos/hieulebkdn/sample_app/tags","blobs_url":"https://api.github.com/repos/hieulebkdn/sample_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hieulebkdn/sample_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hieulebkdn/sample_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/hieulebkdn/sample_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hieulebkdn/sample_app/statuses/{sha}","languages_url":"https://api.github.com/repos/hieulebkdn/sample_app/languages","stargazers_url":"https://api.github.com/repos/hieulebkdn/sample_app/stargazers","contributors_url":"https://api.github.com/repos/hieulebkdn/sample_app/contributors","subscribers_url":"https://api.github.com/repos/hieulebkdn/sample_app/subscribers","subscription_url":"https://api.github.com/repos/hieulebkdn/sample_app/subscription","commits_url":"https://api.github.com/repos/hieulebkdn/sample_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/hieulebkdn/sample_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/hieulebkdn/sample_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/hieulebkdn/sample_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/hieulebkdn/sample_app/contents/{+path}","compare_url":"https://api.github.com/repos/hieulebkdn/sample_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hieulebkdn/sample_app/merges","archive_url":"https://api.github.com/repos/hieulebkdn/sample_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hieulebkdn/sample_app/downloads","issues_url":"https://api.github.com/repos/hieulebkdn/sample_app/issues{/number}","pulls_url":"https://api.github.com/repos/hieulebkdn/sample_app/pulls{/number}","milestones_url":"https://api.github.com/repos/hieulebkdn/sample_app/milestones{/number}","notifications_url":"https://api.github.com/repos/hieulebkdn/sample_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hieulebkdn/sample_app/labels{/name}","releases_url":"https://api.github.com/repos/hieulebkdn/sample_app/releases{/id}","deployments_url":"https://api.github.com/repos/hieulebkdn/sample_app/deployments","created_at":"2018-06-04T06:40:05Z","updated_at":"2018-06-11T02:06:23Z","pushed_at":"2018-06-12T01:52:54Z","git_url":"git://github.com/hieulebkdn/sample_app.git","ssh_url":"git@github.com:hieulebkdn/sample_app.git","clone_url":"https://github.com/hieulebkdn/sample_app.git","svn_url":"https://github.com/hieulebkdn/sample_app","homepage":null,"size":354,"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":"master"}},"base":{"label":"hieulebkdn:master","ref":"master","sha":"d062a3f6fe039ef0ed9036571283fa8cf6d406c8","user":{"login":"hieulebkdn","id":36104886,"node_id":"MDQ6VXNlcjM2MTA0ODg2","avatar_url":"https://avatars1.githubusercontent.com/u/36104886?v=4","gravatar_id":"","url":"https://api.github.com/users/hieulebkdn","html_url":"https://github.com/hieulebkdn","followers_url":"https://api.github.com/users/hieulebkdn/followers","following_url":"https://api.github.com/users/hieulebkdn/following{/other_user}","gists_url":"https://api.github.com/users/hieulebkdn/gists{/gist_id}","starred_url":"https://api.github.com/users/hieulebkdn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hieulebkdn/subscriptions","organizations_url":"https://api.github.com/users/hieulebkdn/orgs","repos_url":"https://api.github.com/users/hieulebkdn/repos","events_url":"https://api.github.com/users/hieulebkdn/events{/privacy}","received_events_url":"https://api.github.com/users/hieulebkdn/received_events","type":"User","site_admin":false},"repo":{"id":135981688,"node_id":"MDEwOlJlcG9zaXRvcnkxMzU5ODE2ODg=","name":"sample_app","full_name":"hieulebkdn/sample_app","owner":{"login":"hieulebkdn","id":36104886,"node_id":"MDQ6VXNlcjM2MTA0ODg2","avatar_url":"https://avatars1.githubusercontent.com/u/36104886?v=4","gravatar_id":"","url":"https://api.github.com/users/hieulebkdn","html_url":"https://github.com/hieulebkdn","followers_url":"https://api.github.com/users/hieulebkdn/followers","following_url":"https://api.github.com/users/hieulebkdn/following{/other_user}","gists_url":"https://api.github.com/users/hieulebkdn/gists{/gist_id}","starred_url":"https://api.github.com/users/hieulebkdn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hieulebkdn/subscriptions","organizations_url":"https://api.github.com/users/hieulebkdn/orgs","repos_url":"https://api.github.com/users/hieulebkdn/repos","events_url":"https://api.github.com/users/hieulebkdn/events{/privacy}","received_events_url":"https://api.github.com/users/hieulebkdn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hieulebkdn/sample_app","description":"Framgia 2018 Training - Le Trong Hieu","fork":false,"url":"https://api.github.com/repos/hieulebkdn/sample_app","forks_url":"https://api.github.com/repos/hieulebkdn/sample_app/forks","keys_url":"https://api.github.com/repos/hieulebkdn/sample_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hieulebkdn/sample_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hieulebkdn/sample_app/teams","hooks_url":"https://api.github.com/repos/hieulebkdn/sample_app/hooks","issue_events_url":"https://api.github.com/repos/hieulebkdn/sample_app/issues/events{/number}","events_url":"https://api.github.com/repos/hieulebkdn/sample_app/events","assignees_url":"https://api.github.com/repos/hieulebkdn/sample_app/assignees{/user}","branches_url":"https://api.github.com/repos/hieulebkdn/sample_app/branches{/branch}","tags_url":"https://api.github.com/repos/hieulebkdn/sample_app/tags","blobs_url":"https://api.github.com/repos/hieulebkdn/sample_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hieulebkdn/sample_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hieulebkdn/sample_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/hieulebkdn/sample_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hieulebkdn/sample_app/statuses/{sha}","languages_url":"https://api.github.com/repos/hieulebkdn/sample_app/languages","stargazers_url":"https://api.github.com/repos/hieulebkdn/sample_app/stargazers","contributors_url":"https://api.github.com/repos/hieulebkdn/sample_app/contributors","subscribers_url":"https://api.github.com/repos/hieulebkdn/sample_app/subscribers","subscription_url":"https://api.github.com/repos/hieulebkdn/sample_app/subscription","commits_url":"https://api.github.com/repos/hieulebkdn/sample_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/hieulebkdn/sample_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/hieulebkdn/sample_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/hieulebkdn/sample_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/hieulebkdn/sample_app/contents/{+path}","compare_url":"https://api.github.com/repos/hieulebkdn/sample_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hieulebkdn/sample_app/merges","archive_url":"https://api.github.com/repos/hieulebkdn/sample_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hieulebkdn/sample_app/downloads","issues_url":"https://api.github.com/repos/hieulebkdn/sample_app/issues{/number}","pulls_url":"https://api.github.com/repos/hieulebkdn/sample_app/pulls{/number}","milestones_url":"https://api.github.com/repos/hieulebkdn/sample_app/milestones{/number}","notifications_url":"https://api.github.com/repos/hieulebkdn/sample_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hieulebkdn/sample_app/labels{/name}","releases_url":"https://api.github.com/repos/hieulebkdn/sample_app/releases{/id}","deployments_url":"https://api.github.com/repos/hieulebkdn/sample_app/deployments","created_at":"2018-06-04T06:40:05Z","updated_at":"2018-06-11T02:06:23Z","pushed_at":"2018-06-12T01:52:54Z","git_url":"git://github.com/hieulebkdn/sample_app.git","ssh_url":"git@github.com:hieulebkdn/sample_app.git","clone_url":"https://github.com/hieulebkdn/sample_app.git","svn_url":"https://github.com/hieulebkdn/sample_app","homepage":null,"size":354,"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":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hieulebkdn/sample_app/pulls/12"},"html":{"href":"https://github.com/hieulebkdn/sample_app/pull/12"},"issue":{"href":"https://api.github.com/repos/hieulebkdn/sample_app/issues/12"},"comments":{"href":"https://api.github.com/repos/hieulebkdn/sample_app/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/hieulebkdn/sample_app/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/hieulebkdn/sample_app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hieulebkdn/sample_app/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/hieulebkdn/sample_app/statuses/6d86e8e7e44ff6aede0687361c59e7c49c9dab31"}},"author_association":"OWNER"}}
{"actor":{"display_login":"hieulebkdn"}}