{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/brs_32/pulls/comments/76387154","id":76387154,"diff_hunk":"@@ -0,0 +1,15 @@\n+class Book < ActiveRecord::Base\n+  belongs_to :author\n+  belongs_to :category\n+  belongs_to :publisher\n+  belongs_to :language\n+  has_many :user_books, dependent: :destroy\n+  has_many :requests, dependent: :destroy\n+  validates :author, presence: true\n+  validates :category, presence: true\n+  validates :publisher, presence: true\n+  validates :language, presence: true\n+  validates :title, presence: true, length: {minimum: 10, maximum: 100}","path":"app/models/book.rb","position":12,"original_position":12,"commit_id":"7e2ce3e05e7e525668b4cb58f262c3769cb1e7e6","original_commit_id":"7e2ce3e05e7e525668b4cb58f262c3769cb1e7e6","user":{"login":"duc11t3bk","id":13411341,"avatar_url":"https://avatars.githubusercontent.com/u/13411341?v=3","gravatar_id":"","url":"https://api.github.com/users/duc11t3bk","html_url":"https://github.com/duc11t3bk","followers_url":"https://api.github.com/users/duc11t3bk/followers","following_url":"https://api.github.com/users/duc11t3bk/following{/other_user}","gists_url":"https://api.github.com/users/duc11t3bk/gists{/gist_id}","starred_url":"https://api.github.com/users/duc11t3bk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duc11t3bk/subscriptions","organizations_url":"https://api.github.com/users/duc11t3bk/orgs","repos_url":"https://api.github.com/users/duc11t3bk/repos","events_url":"https://api.github.com/users/duc11t3bk/events{/privacy}","received_events_url":"https://api.github.com/users/duc11t3bk/received_events","type":"User","site_admin":false},"body":"title làm chi cho dài 80 kí tự là thấy dài lắm rồi :3","created_at":"2016-08-26T09:03:38Z","updated_at":"2016-08-26T09:03:38Z","html_url":"https://github.com/framgia/brs_32/pull/2#discussion_r76387154","pull_request_url":"https://api.github.com/repos/framgia/brs_32/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/framgia/brs_32/pulls/comments/76387154"},"html":{"href":"https://github.com/framgia/brs_32/pull/2#discussion_r76387154"},"pull_request":{"href":"https://api.github.com/repos/framgia/brs_32/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/brs_32/pulls/2","id":82848652,"html_url":"https://github.com/framgia/brs_32/pull/2","diff_url":"https://github.com/framgia/brs_32/pull/2.diff","patch_url":"https://github.com/framgia/brs_32/pull/2.patch","issue_url":"https://api.github.com/repos/framgia/brs_32/issues/2","number":2,"state":"open","locked":false,"title":"74544_Init_model","user":{"login":"duc11t3bk","id":13411341,"avatar_url":"https://avatars.githubusercontent.com/u/13411341?v=3","gravatar_id":"","url":"https://api.github.com/users/duc11t3bk","html_url":"https://github.com/duc11t3bk","followers_url":"https://api.github.com/users/duc11t3bk/followers","following_url":"https://api.github.com/users/duc11t3bk/following{/other_user}","gists_url":"https://api.github.com/users/duc11t3bk/gists{/gist_id}","starred_url":"https://api.github.com/users/duc11t3bk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duc11t3bk/subscriptions","organizations_url":"https://api.github.com/users/duc11t3bk/orgs","repos_url":"https://api.github.com/users/duc11t3bk/repos","events_url":"https://api.github.com/users/duc11t3bk/events{/privacy}","received_events_url":"https://api.github.com/users/duc11t3bk/received_events","type":"User","site_admin":false},"body":"74544_Init_model","created_at":"2016-08-26T08:17:27Z","updated_at":"2016-08-26T09:03:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4adc866966d7ac29a00b816eded550395ee42244","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/brs_32/pulls/2/commits","review_comments_url":"https://api.github.com/repos/framgia/brs_32/pulls/2/comments","review_comment_url":"https://api.github.com/repos/framgia/brs_32/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/brs_32/issues/2/comments","statuses_url":"https://api.github.com/repos/framgia/brs_32/statuses/7e2ce3e05e7e525668b4cb58f262c3769cb1e7e6","head":{"label":"duc11t3bk:74544_Init_model","ref":"74544_Init_model","sha":"7e2ce3e05e7e525668b4cb58f262c3769cb1e7e6","user":{"login":"duc11t3bk","id":13411341,"avatar_url":"https://avatars.githubusercontent.com/u/13411341?v=3","gravatar_id":"","url":"https://api.github.com/users/duc11t3bk","html_url":"https://github.com/duc11t3bk","followers_url":"https://api.github.com/users/duc11t3bk/followers","following_url":"https://api.github.com/users/duc11t3bk/following{/other_user}","gists_url":"https://api.github.com/users/duc11t3bk/gists{/gist_id}","starred_url":"https://api.github.com/users/duc11t3bk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duc11t3bk/subscriptions","organizations_url":"https://api.github.com/users/duc11t3bk/orgs","repos_url":"https://api.github.com/users/duc11t3bk/repos","events_url":"https://api.github.com/users/duc11t3bk/events{/privacy}","received_events_url":"https://api.github.com/users/duc11t3bk/received_events","type":"User","site_admin":false},"repo":{"id":66620703,"name":"brs_32","full_name":"duc11t3bk/brs_32","owner":{"login":"duc11t3bk","id":13411341,"avatar_url":"https://avatars.githubusercontent.com/u/13411341?v=3","gravatar_id":"","url":"https://api.github.com/users/duc11t3bk","html_url":"https://github.com/duc11t3bk","followers_url":"https://api.github.com/users/duc11t3bk/followers","following_url":"https://api.github.com/users/duc11t3bk/following{/other_user}","gists_url":"https://api.github.com/users/duc11t3bk/gists{/gist_id}","starred_url":"https://api.github.com/users/duc11t3bk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duc11t3bk/subscriptions","organizations_url":"https://api.github.com/users/duc11t3bk/orgs","repos_url":"https://api.github.com/users/duc11t3bk/repos","events_url":"https://api.github.com/users/duc11t3bk/events{/privacy}","received_events_url":"https://api.github.com/users/duc11t3bk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/duc11t3bk/brs_32","description":"Framgia Book Reviewing System (training)","fork":true,"url":"https://api.github.com/repos/duc11t3bk/brs_32","forks_url":"https://api.github.com/repos/duc11t3bk/brs_32/forks","keys_url":"https://api.github.com/repos/duc11t3bk/brs_32/keys{/key_id}","collaborators_url":"https://api.github.com/repos/duc11t3bk/brs_32/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/duc11t3bk/brs_32/teams","hooks_url":"https://api.github.com/repos/duc11t3bk/brs_32/hooks","issue_events_url":"https://api.github.com/repos/duc11t3bk/brs_32/issues/events{/number}","events_url":"https://api.github.com/repos/duc11t3bk/brs_32/events","assignees_url":"https://api.github.com/repos/duc11t3bk/brs_32/assignees{/user}","branches_url":"https://api.github.com/repos/duc11t3bk/brs_32/branches{/branch}","tags_url":"https://api.github.com/repos/duc11t3bk/brs_32/tags","blobs_url":"https://api.github.com/repos/duc11t3bk/brs_32/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/duc11t3bk/brs_32/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/duc11t3bk/brs_32/git/refs{/sha}","trees_url":"https://api.github.com/repos/duc11t3bk/brs_32/git/trees{/sha}","statuses_url":"https://api.github.com/repos/duc11t3bk/brs_32/statuses/{sha}","languages_url":"https://api.github.com/repos/duc11t3bk/brs_32/languages","stargazers_url":"https://api.github.com/repos/duc11t3bk/brs_32/stargazers","contributors_url":"https://api.github.com/repos/duc11t3bk/brs_32/contributors","subscribers_url":"https://api.github.com/repos/duc11t3bk/brs_32/subscribers","subscription_url":"https://api.github.com/repos/duc11t3bk/brs_32/subscription","commits_url":"https://api.github.com/repos/duc11t3bk/brs_32/commits{/sha}","git_commits_url":"https://api.github.com/repos/duc11t3bk/brs_32/git/commits{/sha}","comments_url":"https://api.github.com/repos/duc11t3bk/brs_32/comments{/number}","issue_comment_url":"https://api.github.com/repos/duc11t3bk/brs_32/issues/comments{/number}","contents_url":"https://api.github.com/repos/duc11t3bk/brs_32/contents/{+path}","compare_url":"https://api.github.com/repos/duc11t3bk/brs_32/compare/{base}...{head}","merges_url":"https://api.github.com/repos/duc11t3bk/brs_32/merges","archive_url":"https://api.github.com/repos/duc11t3bk/brs_32/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/duc11t3bk/brs_32/downloads","issues_url":"https://api.github.com/repos/duc11t3bk/brs_32/issues{/number}","pulls_url":"https://api.github.com/repos/duc11t3bk/brs_32/pulls{/number}","milestones_url":"https://api.github.com/repos/duc11t3bk/brs_32/milestones{/number}","notifications_url":"https://api.github.com/repos/duc11t3bk/brs_32/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/duc11t3bk/brs_32/labels{/name}","releases_url":"https://api.github.com/repos/duc11t3bk/brs_32/releases{/id}","deployments_url":"https://api.github.com/repos/duc11t3bk/brs_32/deployments","created_at":"2016-08-26T05:57:34Z","updated_at":"2016-08-26T02:18:11Z","pushed_at":"2016-08-26T08:39:06Z","git_url":"git://github.com/duc11t3bk/brs_32.git","ssh_url":"git@github.com:duc11t3bk/brs_32.git","clone_url":"https://github.com/duc11t3bk/brs_32.git","svn_url":"https://github.com/duc11t3bk/brs_32","homepage":null,"size":16,"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":"08029717e562d622e66aabea6d429770fc8a92d5","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":66609157,"name":"brs_32","full_name":"framgia/brs_32","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/brs_32","description":"Framgia Book Reviewing System (training)","fork":false,"url":"https://api.github.com/repos/framgia/brs_32","forks_url":"https://api.github.com/repos/framgia/brs_32/forks","keys_url":"https://api.github.com/repos/framgia/brs_32/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/brs_32/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/brs_32/teams","hooks_url":"https://api.github.com/repos/framgia/brs_32/hooks","issue_events_url":"https://api.github.com/repos/framgia/brs_32/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/brs_32/events","assignees_url":"https://api.github.com/repos/framgia/brs_32/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/brs_32/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/brs_32/tags","blobs_url":"https://api.github.com/repos/framgia/brs_32/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/brs_32/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/brs_32/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/brs_32/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/brs_32/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/brs_32/languages","stargazers_url":"https://api.github.com/repos/framgia/brs_32/stargazers","contributors_url":"https://api.github.com/repos/framgia/brs_32/contributors","subscribers_url":"https://api.github.com/repos/framgia/brs_32/subscribers","subscription_url":"https://api.github.com/repos/framgia/brs_32/subscription","commits_url":"https://api.github.com/repos/framgia/brs_32/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/brs_32/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/brs_32/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/brs_32/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/brs_32/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/brs_32/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/brs_32/merges","archive_url":"https://api.github.com/repos/framgia/brs_32/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/brs_32/downloads","issues_url":"https://api.github.com/repos/framgia/brs_32/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/brs_32/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/brs_32/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/brs_32/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/brs_32/labels{/name}","releases_url":"https://api.github.com/repos/framgia/brs_32/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/brs_32/deployments","created_at":"2016-08-26T02:18:11Z","updated_at":"2016-08-26T02:18:11Z","pushed_at":"2016-08-26T08:39:07Z","git_url":"git://github.com/framgia/brs_32.git","ssh_url":"git@github.com:framgia/brs_32.git","clone_url":"https://github.com/framgia/brs_32.git","svn_url":"https://github.com/framgia/brs_32","homepage":null,"size":16,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/brs_32/pulls/2"},"html":{"href":"https://github.com/framgia/brs_32/pull/2"},"issue":{"href":"https://api.github.com/repos/framgia/brs_32/issues/2"},"comments":{"href":"https://api.github.com/repos/framgia/brs_32/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/brs_32/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/brs_32/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/brs_32/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/brs_32/statuses/7e2ce3e05e7e525668b4cb58f262c3769cb1e7e6"}}}}
{"actor":{"display_login":"duc11t3bk"}}