{"action":"created","comment":{"url":"https://api.github.com/repos/wildfiler/book-o-book/pulls/comments/50039696","id":50039696,"diff_hunk":"@@ -0,0 +1,5 @@\n+class Genre < ActiveRecord::Base\n+  has_many :book_genres\n+  has_many :books, through: :book_genres\n+  validates :name, presence: true","path":"app/models/genre.rb","position":4,"original_position":4,"commit_id":"22c5bbf04c9aa752155c3bbdde2e6a3ab2ca0e47","original_commit_id":"22c5bbf04c9aa752155c3bbdde2e6a3ab2ca0e47","user":{"login":"wildfiler","id":2605257,"avatar_url":"https://avatars.githubusercontent.com/u/2605257?v=3","gravatar_id":"","url":"https://api.github.com/users/wildfiler","html_url":"https://github.com/wildfiler","followers_url":"https://api.github.com/users/wildfiler/followers","following_url":"https://api.github.com/users/wildfiler/following{/other_user}","gists_url":"https://api.github.com/users/wildfiler/gists{/gist_id}","starred_url":"https://api.github.com/users/wildfiler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wildfiler/subscriptions","organizations_url":"https://api.github.com/users/wildfiler/orgs","repos_url":"https://api.github.com/users/wildfiler/repos","events_url":"https://api.github.com/users/wildfiler/events{/privacy}","received_events_url":"https://api.github.com/users/wildfiler/received_events","type":"User","site_admin":false},"body":"@Fatpaher Add blank line before this.","created_at":"2016-01-18T20:13:08Z","updated_at":"2016-01-18T20:13:08Z","html_url":"https://github.com/wildfiler/book-o-book/pull/12#discussion_r50039696","pull_request_url":"https://api.github.com/repos/wildfiler/book-o-book/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/wildfiler/book-o-book/pulls/comments/50039696"},"html":{"href":"https://github.com/wildfiler/book-o-book/pull/12#discussion_r50039696"},"pull_request":{"href":"https://api.github.com/repos/wildfiler/book-o-book/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/wildfiler/book-o-book/pulls/12","id":56321217,"html_url":"https://github.com/wildfiler/book-o-book/pull/12","diff_url":"https://github.com/wildfiler/book-o-book/pull/12.diff","patch_url":"https://github.com/wildfiler/book-o-book/pull/12.patch","issue_url":"https://api.github.com/repos/wildfiler/book-o-book/issues/12","number":12,"state":"open","locked":false,"title":"Add genre to books","user":{"login":"Fatpaher","id":15785863,"avatar_url":"https://avatars.githubusercontent.com/u/15785863?v=3","gravatar_id":"","url":"https://api.github.com/users/Fatpaher","html_url":"https://github.com/Fatpaher","followers_url":"https://api.github.com/users/Fatpaher/followers","following_url":"https://api.github.com/users/Fatpaher/following{/other_user}","gists_url":"https://api.github.com/users/Fatpaher/gists{/gist_id}","starred_url":"https://api.github.com/users/Fatpaher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fatpaher/subscriptions","organizations_url":"https://api.github.com/users/Fatpaher/orgs","repos_url":"https://api.github.com/users/Fatpaher/repos","events_url":"https://api.github.com/users/Fatpaher/events{/privacy}","received_events_url":"https://api.github.com/users/Fatpaher/received_events","type":"User","site_admin":false},"body":"-Add Genre model\r\n-Add BookGenre model to support many-to-many associatioton between Books and Genres\r\n-Add genre show page\r\n-Add genre generation to db/seed\r\n-Add genres to books index page\r\n-Add genres to book show page","created_at":"2016-01-18T09:57:41Z","updated_at":"2016-01-18T20:13:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"db226078011654ecf8990d5ed41344b8c69d2bc8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/wildfiler/book-o-book/pulls/12/commits","review_comments_url":"https://api.github.com/repos/wildfiler/book-o-book/pulls/12/comments","review_comment_url":"https://api.github.com/repos/wildfiler/book-o-book/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wildfiler/book-o-book/issues/12/comments","statuses_url":"https://api.github.com/repos/wildfiler/book-o-book/statuses/22c5bbf04c9aa752155c3bbdde2e6a3ab2ca0e47","head":{"label":"wildfiler:pp-gener-of-books","ref":"pp-gener-of-books","sha":"22c5bbf04c9aa752155c3bbdde2e6a3ab2ca0e47","user":{"login":"wildfiler","id":2605257,"avatar_url":"https://avatars.githubusercontent.com/u/2605257?v=3","gravatar_id":"","url":"https://api.github.com/users/wildfiler","html_url":"https://github.com/wildfiler","followers_url":"https://api.github.com/users/wildfiler/followers","following_url":"https://api.github.com/users/wildfiler/following{/other_user}","gists_url":"https://api.github.com/users/wildfiler/gists{/gist_id}","starred_url":"https://api.github.com/users/wildfiler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wildfiler/subscriptions","organizations_url":"https://api.github.com/users/wildfiler/orgs","repos_url":"https://api.github.com/users/wildfiler/repos","events_url":"https://api.github.com/users/wildfiler/events{/privacy}","received_events_url":"https://api.github.com/users/wildfiler/received_events","type":"User","site_admin":false},"repo":{"id":48337149,"name":"book-o-book","full_name":"wildfiler/book-o-book","owner":{"login":"wildfiler","id":2605257,"avatar_url":"https://avatars.githubusercontent.com/u/2605257?v=3","gravatar_id":"","url":"https://api.github.com/users/wildfiler","html_url":"https://github.com/wildfiler","followers_url":"https://api.github.com/users/wildfiler/followers","following_url":"https://api.github.com/users/wildfiler/following{/other_user}","gists_url":"https://api.github.com/users/wildfiler/gists{/gist_id}","starred_url":"https://api.github.com/users/wildfiler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wildfiler/subscriptions","organizations_url":"https://api.github.com/users/wildfiler/orgs","repos_url":"https://api.github.com/users/wildfiler/repos","events_url":"https://api.github.com/users/wildfiler/events{/privacy}","received_events_url":"https://api.github.com/users/wildfiler/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wildfiler/book-o-book","description":"","fork":false,"url":"https://api.github.com/repos/wildfiler/book-o-book","forks_url":"https://api.github.com/repos/wildfiler/book-o-book/forks","keys_url":"https://api.github.com/repos/wildfiler/book-o-book/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wildfiler/book-o-book/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wildfiler/book-o-book/teams","hooks_url":"https://api.github.com/repos/wildfiler/book-o-book/hooks","issue_events_url":"https://api.github.com/repos/wildfiler/book-o-book/issues/events{/number}","events_url":"https://api.github.com/repos/wildfiler/book-o-book/events","assignees_url":"https://api.github.com/repos/wildfiler/book-o-book/assignees{/user}","branches_url":"https://api.github.com/repos/wildfiler/book-o-book/branches{/branch}","tags_url":"https://api.github.com/repos/wildfiler/book-o-book/tags","blobs_url":"https://api.github.com/repos/wildfiler/book-o-book/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wildfiler/book-o-book/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wildfiler/book-o-book/git/refs{/sha}","trees_url":"https://api.github.com/repos/wildfiler/book-o-book/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wildfiler/book-o-book/statuses/{sha}","languages_url":"https://api.github.com/repos/wildfiler/book-o-book/languages","stargazers_url":"https://api.github.com/repos/wildfiler/book-o-book/stargazers","contributors_url":"https://api.github.com/repos/wildfiler/book-o-book/contributors","subscribers_url":"https://api.github.com/repos/wildfiler/book-o-book/subscribers","subscription_url":"https://api.github.com/repos/wildfiler/book-o-book/subscription","commits_url":"https://api.github.com/repos/wildfiler/book-o-book/commits{/sha}","git_commits_url":"https://api.github.com/repos/wildfiler/book-o-book/git/commits{/sha}","comments_url":"https://api.github.com/repos/wildfiler/book-o-book/comments{/number}","issue_comment_url":"https://api.github.com/repos/wildfiler/book-o-book/issues/comments{/number}","contents_url":"https://api.github.com/repos/wildfiler/book-o-book/contents/{+path}","compare_url":"https://api.github.com/repos/wildfiler/book-o-book/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wildfiler/book-o-book/merges","archive_url":"https://api.github.com/repos/wildfiler/book-o-book/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wildfiler/book-o-book/downloads","issues_url":"https://api.github.com/repos/wildfiler/book-o-book/issues{/number}","pulls_url":"https://api.github.com/repos/wildfiler/book-o-book/pulls{/number}","milestones_url":"https://api.github.com/repos/wildfiler/book-o-book/milestones{/number}","notifications_url":"https://api.github.com/repos/wildfiler/book-o-book/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wildfiler/book-o-book/labels{/name}","releases_url":"https://api.github.com/repos/wildfiler/book-o-book/releases{/id}","created_at":"2015-12-20T21:03:58Z","updated_at":"2016-01-12T14:54:53Z","pushed_at":"2016-01-18T16:56:32Z","git_url":"git://github.com/wildfiler/book-o-book.git","ssh_url":"git@github.com:wildfiler/book-o-book.git","clone_url":"https://github.com/wildfiler/book-o-book.git","svn_url":"https://github.com/wildfiler/book-o-book","homepage":null,"size":66,"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":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"wildfiler:master","ref":"master","sha":"dd56d560cd763f32e620df1d70578e9f6f014e31","user":{"login":"wildfiler","id":2605257,"avatar_url":"https://avatars.githubusercontent.com/u/2605257?v=3","gravatar_id":"","url":"https://api.github.com/users/wildfiler","html_url":"https://github.com/wildfiler","followers_url":"https://api.github.com/users/wildfiler/followers","following_url":"https://api.github.com/users/wildfiler/following{/other_user}","gists_url":"https://api.github.com/users/wildfiler/gists{/gist_id}","starred_url":"https://api.github.com/users/wildfiler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wildfiler/subscriptions","organizations_url":"https://api.github.com/users/wildfiler/orgs","repos_url":"https://api.github.com/users/wildfiler/repos","events_url":"https://api.github.com/users/wildfiler/events{/privacy}","received_events_url":"https://api.github.com/users/wildfiler/received_events","type":"User","site_admin":false},"repo":{"id":48337149,"name":"book-o-book","full_name":"wildfiler/book-o-book","owner":{"login":"wildfiler","id":2605257,"avatar_url":"https://avatars.githubusercontent.com/u/2605257?v=3","gravatar_id":"","url":"https://api.github.com/users/wildfiler","html_url":"https://github.com/wildfiler","followers_url":"https://api.github.com/users/wildfiler/followers","following_url":"https://api.github.com/users/wildfiler/following{/other_user}","gists_url":"https://api.github.com/users/wildfiler/gists{/gist_id}","starred_url":"https://api.github.com/users/wildfiler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wildfiler/subscriptions","organizations_url":"https://api.github.com/users/wildfiler/orgs","repos_url":"https://api.github.com/users/wildfiler/repos","events_url":"https://api.github.com/users/wildfiler/events{/privacy}","received_events_url":"https://api.github.com/users/wildfiler/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wildfiler/book-o-book","description":"","fork":false,"url":"https://api.github.com/repos/wildfiler/book-o-book","forks_url":"https://api.github.com/repos/wildfiler/book-o-book/forks","keys_url":"https://api.github.com/repos/wildfiler/book-o-book/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wildfiler/book-o-book/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wildfiler/book-o-book/teams","hooks_url":"https://api.github.com/repos/wildfiler/book-o-book/hooks","issue_events_url":"https://api.github.com/repos/wildfiler/book-o-book/issues/events{/number}","events_url":"https://api.github.com/repos/wildfiler/book-o-book/events","assignees_url":"https://api.github.com/repos/wildfiler/book-o-book/assignees{/user}","branches_url":"https://api.github.com/repos/wildfiler/book-o-book/branches{/branch}","tags_url":"https://api.github.com/repos/wildfiler/book-o-book/tags","blobs_url":"https://api.github.com/repos/wildfiler/book-o-book/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wildfiler/book-o-book/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wildfiler/book-o-book/git/refs{/sha}","trees_url":"https://api.github.com/repos/wildfiler/book-o-book/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wildfiler/book-o-book/statuses/{sha}","languages_url":"https://api.github.com/repos/wildfiler/book-o-book/languages","stargazers_url":"https://api.github.com/repos/wildfiler/book-o-book/stargazers","contributors_url":"https://api.github.com/repos/wildfiler/book-o-book/contributors","subscribers_url":"https://api.github.com/repos/wildfiler/book-o-book/subscribers","subscription_url":"https://api.github.com/repos/wildfiler/book-o-book/subscription","commits_url":"https://api.github.com/repos/wildfiler/book-o-book/commits{/sha}","git_commits_url":"https://api.github.com/repos/wildfiler/book-o-book/git/commits{/sha}","comments_url":"https://api.github.com/repos/wildfiler/book-o-book/comments{/number}","issue_comment_url":"https://api.github.com/repos/wildfiler/book-o-book/issues/comments{/number}","contents_url":"https://api.github.com/repos/wildfiler/book-o-book/contents/{+path}","compare_url":"https://api.github.com/repos/wildfiler/book-o-book/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wildfiler/book-o-book/merges","archive_url":"https://api.github.com/repos/wildfiler/book-o-book/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wildfiler/book-o-book/downloads","issues_url":"https://api.github.com/repos/wildfiler/book-o-book/issues{/number}","pulls_url":"https://api.github.com/repos/wildfiler/book-o-book/pulls{/number}","milestones_url":"https://api.github.com/repos/wildfiler/book-o-book/milestones{/number}","notifications_url":"https://api.github.com/repos/wildfiler/book-o-book/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wildfiler/book-o-book/labels{/name}","releases_url":"https://api.github.com/repos/wildfiler/book-o-book/releases{/id}","created_at":"2015-12-20T21:03:58Z","updated_at":"2016-01-12T14:54:53Z","pushed_at":"2016-01-18T16:56:32Z","git_url":"git://github.com/wildfiler/book-o-book.git","ssh_url":"git@github.com:wildfiler/book-o-book.git","clone_url":"https://github.com/wildfiler/book-o-book.git","svn_url":"https://github.com/wildfiler/book-o-book","homepage":null,"size":66,"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":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wildfiler/book-o-book/pulls/12"},"html":{"href":"https://github.com/wildfiler/book-o-book/pull/12"},"issue":{"href":"https://api.github.com/repos/wildfiler/book-o-book/issues/12"},"comments":{"href":"https://api.github.com/repos/wildfiler/book-o-book/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/wildfiler/book-o-book/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/wildfiler/book-o-book/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wildfiler/book-o-book/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/wildfiler/book-o-book/statuses/22c5bbf04c9aa752155c3bbdde2e6a3ab2ca0e47"}}}}