{"action":"created","comment":{"url":"https://api.github.com/repos/vtson/rails_tutorials/pulls/comments/165870218","pull_request_review_id":93870882,"id":165870218,"diff_hunk":"@@ -0,0 +1,18 @@\n+class Micropost < ApplicationRecord\n+  belongs_to :user\n+  mount_uploader :picture, PictureUploader\n+\n+  validates :user_id, presence: true\n+  validates :content, presence: true,\n+    length: {maximum: Settings.microposts.max_content}\n+  validate  :picture_size","path":"app/models/micropost.rb","position":8,"original_position":8,"commit_id":"ff836d908298ffd3130e3f4ddc0516d0c7d09110","original_commit_id":"ff836d908298ffd3130e3f4ddc0516d0c7d09110","user":{"login":"DuongNT1512","id":20291773,"avatar_url":"https://avatars1.githubusercontent.com/u/20291773?v=4","gravatar_id":"","url":"https://api.github.com/users/DuongNT1512","html_url":"https://github.com/DuongNT1512","followers_url":"https://api.github.com/users/DuongNT1512/followers","following_url":"https://api.github.com/users/DuongNT1512/following{/other_user}","gists_url":"https://api.github.com/users/DuongNT1512/gists{/gist_id}","starred_url":"https://api.github.com/users/DuongNT1512/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DuongNT1512/subscriptions","organizations_url":"https://api.github.com/users/DuongNT1512/orgs","repos_url":"https://api.github.com/users/DuongNT1512/repos","events_url":"https://api.github.com/users/DuongNT1512/events{/privacy}","received_events_url":"https://api.github.com/users/DuongNT1512/received_events","type":"User","site_admin":false},"body":"convention","created_at":"2018-02-05T02:17:45Z","updated_at":"2018-02-05T02:17:45Z","html_url":"https://github.com/vtson/rails_tutorials/pull/16#discussion_r165870218","pull_request_url":"https://api.github.com/repos/vtson/rails_tutorials/pulls/16","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/vtson/rails_tutorials/pulls/comments/165870218"},"html":{"href":"https://github.com/vtson/rails_tutorials/pull/16#discussion_r165870218"},"pull_request":{"href":"https://api.github.com/repos/vtson/rails_tutorials/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/vtson/rails_tutorials/pulls/16","id":166714634,"html_url":"https://github.com/vtson/rails_tutorials/pull/16","diff_url":"https://github.com/vtson/rails_tutorials/pull/16.diff","patch_url":"https://github.com/vtson/rails_tutorials/pull/16.patch","issue_url":"https://api.github.com/repos/vtson/rails_tutorials/issues/16","number":16,"state":"open","locked":false,"title":"Chap13","user":{"login":"vtson","id":19527303,"avatar_url":"https://avatars0.githubusercontent.com/u/19527303?v=4","gravatar_id":"","url":"https://api.github.com/users/vtson","html_url":"https://github.com/vtson","followers_url":"https://api.github.com/users/vtson/followers","following_url":"https://api.github.com/users/vtson/following{/other_user}","gists_url":"https://api.github.com/users/vtson/gists{/gist_id}","starred_url":"https://api.github.com/users/vtson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vtson/subscriptions","organizations_url":"https://api.github.com/users/vtson/orgs","repos_url":"https://api.github.com/users/vtson/repos","events_url":"https://api.github.com/users/vtson/events{/privacy}","received_events_url":"https://api.github.com/users/vtson/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-02-02T04:16:29Z","updated_at":"2018-02-05T02:17:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"81dae31fc6ebbdbc42dd45b53752c99f4d799f74","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/vtson/rails_tutorials/pulls/16/commits","review_comments_url":"https://api.github.com/repos/vtson/rails_tutorials/pulls/16/comments","review_comment_url":"https://api.github.com/repos/vtson/rails_tutorials/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vtson/rails_tutorials/issues/16/comments","statuses_url":"https://api.github.com/repos/vtson/rails_tutorials/statuses/ff836d908298ffd3130e3f4ddc0516d0c7d09110","head":{"label":"vtson:Chap13","ref":"Chap13","sha":"ff836d908298ffd3130e3f4ddc0516d0c7d09110","user":{"login":"vtson","id":19527303,"avatar_url":"https://avatars0.githubusercontent.com/u/19527303?v=4","gravatar_id":"","url":"https://api.github.com/users/vtson","html_url":"https://github.com/vtson","followers_url":"https://api.github.com/users/vtson/followers","following_url":"https://api.github.com/users/vtson/following{/other_user}","gists_url":"https://api.github.com/users/vtson/gists{/gist_id}","starred_url":"https://api.github.com/users/vtson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vtson/subscriptions","organizations_url":"https://api.github.com/users/vtson/orgs","repos_url":"https://api.github.com/users/vtson/repos","events_url":"https://api.github.com/users/vtson/events{/privacy}","received_events_url":"https://api.github.com/users/vtson/received_events","type":"User","site_admin":false},"repo":{"id":115523468,"name":"rails_tutorials","full_name":"vtson/rails_tutorials","owner":{"login":"vtson","id":19527303,"avatar_url":"https://avatars0.githubusercontent.com/u/19527303?v=4","gravatar_id":"","url":"https://api.github.com/users/vtson","html_url":"https://github.com/vtson","followers_url":"https://api.github.com/users/vtson/followers","following_url":"https://api.github.com/users/vtson/following{/other_user}","gists_url":"https://api.github.com/users/vtson/gists{/gist_id}","starred_url":"https://api.github.com/users/vtson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vtson/subscriptions","organizations_url":"https://api.github.com/users/vtson/orgs","repos_url":"https://api.github.com/users/vtson/repos","events_url":"https://api.github.com/users/vtson/events{/privacy}","received_events_url":"https://api.github.com/users/vtson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vtson/rails_tutorials","description":null,"fork":false,"url":"https://api.github.com/repos/vtson/rails_tutorials","forks_url":"https://api.github.com/repos/vtson/rails_tutorials/forks","keys_url":"https://api.github.com/repos/vtson/rails_tutorials/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vtson/rails_tutorials/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vtson/rails_tutorials/teams","hooks_url":"https://api.github.com/repos/vtson/rails_tutorials/hooks","issue_events_url":"https://api.github.com/repos/vtson/rails_tutorials/issues/events{/number}","events_url":"https://api.github.com/repos/vtson/rails_tutorials/events","assignees_url":"https://api.github.com/repos/vtson/rails_tutorials/assignees{/user}","branches_url":"https://api.github.com/repos/vtson/rails_tutorials/branches{/branch}","tags_url":"https://api.github.com/repos/vtson/rails_tutorials/tags","blobs_url":"https://api.github.com/repos/vtson/rails_tutorials/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vtson/rails_tutorials/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vtson/rails_tutorials/git/refs{/sha}","trees_url":"https://api.github.com/repos/vtson/rails_tutorials/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vtson/rails_tutorials/statuses/{sha}","languages_url":"https://api.github.com/repos/vtson/rails_tutorials/languages","stargazers_url":"https://api.github.com/repos/vtson/rails_tutorials/stargazers","contributors_url":"https://api.github.com/repos/vtson/rails_tutorials/contributors","subscribers_url":"https://api.github.com/repos/vtson/rails_tutorials/subscribers","subscription_url":"https://api.github.com/repos/vtson/rails_tutorials/subscription","commits_url":"https://api.github.com/repos/vtson/rails_tutorials/commits{/sha}","git_commits_url":"https://api.github.com/repos/vtson/rails_tutorials/git/commits{/sha}","comments_url":"https://api.github.com/repos/vtson/rails_tutorials/comments{/number}","issue_comment_url":"https://api.github.com/repos/vtson/rails_tutorials/issues/comments{/number}","contents_url":"https://api.github.com/repos/vtson/rails_tutorials/contents/{+path}","compare_url":"https://api.github.com/repos/vtson/rails_tutorials/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vtson/rails_tutorials/merges","archive_url":"https://api.github.com/repos/vtson/rails_tutorials/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vtson/rails_tutorials/downloads","issues_url":"https://api.github.com/repos/vtson/rails_tutorials/issues{/number}","pulls_url":"https://api.github.com/repos/vtson/rails_tutorials/pulls{/number}","milestones_url":"https://api.github.com/repos/vtson/rails_tutorials/milestones{/number}","notifications_url":"https://api.github.com/repos/vtson/rails_tutorials/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vtson/rails_tutorials/labels{/name}","releases_url":"https://api.github.com/repos/vtson/rails_tutorials/releases{/id}","deployments_url":"https://api.github.com/repos/vtson/rails_tutorials/deployments","created_at":"2017-12-27T13:24:02Z","updated_at":"2017-12-28T10:53:59Z","pushed_at":"2018-02-04T15:47:55Z","git_url":"git://github.com/vtson/rails_tutorials.git","ssh_url":"git@github.com:vtson/rails_tutorials.git","clone_url":"https://github.com/vtson/rails_tutorials.git","svn_url":"https://github.com/vtson/rails_tutorials","homepage":null,"size":260,"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":"vtson:master","ref":"master","sha":"740752cffaff106192afbbbcab2f11c6ee7999ae","user":{"login":"vtson","id":19527303,"avatar_url":"https://avatars0.githubusercontent.com/u/19527303?v=4","gravatar_id":"","url":"https://api.github.com/users/vtson","html_url":"https://github.com/vtson","followers_url":"https://api.github.com/users/vtson/followers","following_url":"https://api.github.com/users/vtson/following{/other_user}","gists_url":"https://api.github.com/users/vtson/gists{/gist_id}","starred_url":"https://api.github.com/users/vtson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vtson/subscriptions","organizations_url":"https://api.github.com/users/vtson/orgs","repos_url":"https://api.github.com/users/vtson/repos","events_url":"https://api.github.com/users/vtson/events{/privacy}","received_events_url":"https://api.github.com/users/vtson/received_events","type":"User","site_admin":false},"repo":{"id":115523468,"name":"rails_tutorials","full_name":"vtson/rails_tutorials","owner":{"login":"vtson","id":19527303,"avatar_url":"https://avatars0.githubusercontent.com/u/19527303?v=4","gravatar_id":"","url":"https://api.github.com/users/vtson","html_url":"https://github.com/vtson","followers_url":"https://api.github.com/users/vtson/followers","following_url":"https://api.github.com/users/vtson/following{/other_user}","gists_url":"https://api.github.com/users/vtson/gists{/gist_id}","starred_url":"https://api.github.com/users/vtson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vtson/subscriptions","organizations_url":"https://api.github.com/users/vtson/orgs","repos_url":"https://api.github.com/users/vtson/repos","events_url":"https://api.github.com/users/vtson/events{/privacy}","received_events_url":"https://api.github.com/users/vtson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vtson/rails_tutorials","description":null,"fork":false,"url":"https://api.github.com/repos/vtson/rails_tutorials","forks_url":"https://api.github.com/repos/vtson/rails_tutorials/forks","keys_url":"https://api.github.com/repos/vtson/rails_tutorials/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vtson/rails_tutorials/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vtson/rails_tutorials/teams","hooks_url":"https://api.github.com/repos/vtson/rails_tutorials/hooks","issue_events_url":"https://api.github.com/repos/vtson/rails_tutorials/issues/events{/number}","events_url":"https://api.github.com/repos/vtson/rails_tutorials/events","assignees_url":"https://api.github.com/repos/vtson/rails_tutorials/assignees{/user}","branches_url":"https://api.github.com/repos/vtson/rails_tutorials/branches{/branch}","tags_url":"https://api.github.com/repos/vtson/rails_tutorials/tags","blobs_url":"https://api.github.com/repos/vtson/rails_tutorials/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vtson/rails_tutorials/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vtson/rails_tutorials/git/refs{/sha}","trees_url":"https://api.github.com/repos/vtson/rails_tutorials/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vtson/rails_tutorials/statuses/{sha}","languages_url":"https://api.github.com/repos/vtson/rails_tutorials/languages","stargazers_url":"https://api.github.com/repos/vtson/rails_tutorials/stargazers","contributors_url":"https://api.github.com/repos/vtson/rails_tutorials/contributors","subscribers_url":"https://api.github.com/repos/vtson/rails_tutorials/subscribers","subscription_url":"https://api.github.com/repos/vtson/rails_tutorials/subscription","commits_url":"https://api.github.com/repos/vtson/rails_tutorials/commits{/sha}","git_commits_url":"https://api.github.com/repos/vtson/rails_tutorials/git/commits{/sha}","comments_url":"https://api.github.com/repos/vtson/rails_tutorials/comments{/number}","issue_comment_url":"https://api.github.com/repos/vtson/rails_tutorials/issues/comments{/number}","contents_url":"https://api.github.com/repos/vtson/rails_tutorials/contents/{+path}","compare_url":"https://api.github.com/repos/vtson/rails_tutorials/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vtson/rails_tutorials/merges","archive_url":"https://api.github.com/repos/vtson/rails_tutorials/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vtson/rails_tutorials/downloads","issues_url":"https://api.github.com/repos/vtson/rails_tutorials/issues{/number}","pulls_url":"https://api.github.com/repos/vtson/rails_tutorials/pulls{/number}","milestones_url":"https://api.github.com/repos/vtson/rails_tutorials/milestones{/number}","notifications_url":"https://api.github.com/repos/vtson/rails_tutorials/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vtson/rails_tutorials/labels{/name}","releases_url":"https://api.github.com/repos/vtson/rails_tutorials/releases{/id}","deployments_url":"https://api.github.com/repos/vtson/rails_tutorials/deployments","created_at":"2017-12-27T13:24:02Z","updated_at":"2017-12-28T10:53:59Z","pushed_at":"2018-02-04T15:47:55Z","git_url":"git://github.com/vtson/rails_tutorials.git","ssh_url":"git@github.com:vtson/rails_tutorials.git","clone_url":"https://github.com/vtson/rails_tutorials.git","svn_url":"https://github.com/vtson/rails_tutorials","homepage":null,"size":260,"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/vtson/rails_tutorials/pulls/16"},"html":{"href":"https://github.com/vtson/rails_tutorials/pull/16"},"issue":{"href":"https://api.github.com/repos/vtson/rails_tutorials/issues/16"},"comments":{"href":"https://api.github.com/repos/vtson/rails_tutorials/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/vtson/rails_tutorials/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/vtson/rails_tutorials/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vtson/rails_tutorials/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/vtson/rails_tutorials/statuses/ff836d908298ffd3130e3f4ddc0516d0c7d09110"}},"author_association":"OWNER"}}
{"actor":{"display_login":"DuongNT1512"}}