GitHub PullRequestReviewCommentEvent at 2014-07-23 21:20:59
Repository: craigstr
Actor: aslawter
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/liantics/craigstr/pulls/comments/15316731","id":15316731,"diff_hunk":"@@ -1,6 +1,8 @@\n class Category < ActiveRecord::Base\n   validates :name, presence: true, uniqueness: true\n-  \n+\n   has_many :post_categories\n   has_many :posts, through: :post_categories\n+\n+  belongs_to :categories ","path":"app/models/category.rb","position":8,"original_position":8,"commit_id":"7e58d09545bf1273ef38efaa72605220f6785de3","original_commit_id":"7e58d09545bf1273ef38efaa72605220f6785de3","user":{"login":"aslawter","id":7561560,"avatar_url":"https://avatars.githubusercontent.com/u/7561560?","gravatar_id":"316a5e34cd1ef61d1f68b739997ae0ac","url":"https://api.github.com/users/aslawter","html_url":"https://github.com/aslawter","followers_url":"https://api.github.com/users/aslawter/followers","following_url":"https://api.github.com/users/aslawter/following{/other_user}","gists_url":"https://api.github.com/users/aslawter/gists{/gist_id}","starred_url":"https://api.github.com/users/aslawter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aslawter/subscriptions","organizations_url":"https://api.github.com/users/aslawter/orgs","repos_url":"https://api.github.com/users/aslawter/repos","events_url":"https://api.github.com/users/aslawter/events{/privacy}","received_events_url":"https://api.github.com/users/aslawter/received_events","type":"User","site_admin":false},"body":"am I reading this correctly that Category belongs to :categories?","created_at":"2014-07-23T21:20:59Z","updated_at":"2014-07-23T21:20:59Z","html_url":"https://github.com/liantics/craigstr/pull/19#discussion_r15316731","pull_request_url":"https://api.github.com/repos/liantics/craigstr/pulls/19","_links":{"self":{"href":"https://api.github.com/repos/liantics/craigstr/pulls/comments/15316731"},"html":{"href":"https://github.com/liantics/craigstr/pull/19#discussion_r15316731"},"pull_request":{"href":"https://api.github.com/repos/liantics/craigstr/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/liantics/craigstr/pulls/19","id":18798901,"html_url":"https://github.com/liantics/craigstr/pull/19","diff_url":"https://github.com/liantics/craigstr/pull/19.diff","patch_url":"https://github.com/liantics/craigstr/pull/19.patch","issue_url":"https://api.github.com/repos/liantics/craigstr/issues/19","number":19,"state":"open","title":"Nest categories in locations and let admins create","user":{"login":"ChristopherThorsen","id":7708039,"avatar_url":"https://avatars.githubusercontent.com/u/7708039?","gravatar_id":"2b34ce5e8d66f82b0b85837be44b4cc2","url":"https://api.github.com/users/ChristopherThorsen","html_url":"https://github.com/ChristopherThorsen","followers_url":"https://api.github.com/users/ChristopherThorsen/followers","following_url":"https://api.github.com/users/ChristopherThorsen/following{/other_user}","gists_url":"https://api.github.com/users/ChristopherThorsen/gists{/gist_id}","starred_url":"https://api.github.com/users/ChristopherThorsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChristopherThorsen/subscriptions","organizations_url":"https://api.github.com/users/ChristopherThorsen/orgs","repos_url":"https://api.github.com/users/ChristopherThorsen/repos","events_url":"https://api.github.com/users/ChristopherThorsen/events{/privacy}","received_events_url":"https://api.github.com/users/ChristopherThorsen/received_events","type":"User","site_admin":false},"body":"@liantics \r\n@aslawter ","created_at":"2014-07-23T19:58:27Z","updated_at":"2014-07-23T21:21:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f0a898cd99493a52c88fc4a7a5d5513ee29e2bbc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/liantics/craigstr/pulls/19/commits","review_comments_url":"https://api.github.com/repos/liantics/craigstr/pulls/19/comments","review_comment_url":"https://api.github.com/repos/liantics/craigstr/pulls/comments/{number}","comments_url":"https://api.github.com/repos/liantics/craigstr/issues/19/comments","statuses_url":"https://api.github.com/repos/liantics/craigstr/statuses/7e58d09545bf1273ef38efaa72605220f6785de3","head":{"label":"liantics:admin-categories","ref":"admin-categories","sha":"7e58d09545bf1273ef38efaa72605220f6785de3","user":{"login":"liantics","id":3310162,"avatar_url":"https://avatars.githubusercontent.com/u/3310162?","gravatar_id":"768ff9057a85f808fdf685136baf890a","url":"https://api.github.com/users/liantics","html_url":"https://github.com/liantics","followers_url":"https://api.github.com/users/liantics/followers","following_url":"https://api.github.com/users/liantics/following{/other_user}","gists_url":"https://api.github.com/users/liantics/gists{/gist_id}","starred_url":"https://api.github.com/users/liantics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liantics/subscriptions","organizations_url":"https://api.github.com/users/liantics/orgs","repos_url":"https://api.github.com/users/liantics/repos","events_url":"https://api.github.com/users/liantics/events{/privacy}","received_events_url":"https://api.github.com/users/liantics/received_events","type":"User","site_admin":false},"repo":{"id":22066770,"name":"craigstr","full_name":"liantics/craigstr","owner":{"login":"liantics","id":3310162,"avatar_url":"https://avatars.githubusercontent.com/u/3310162?","gravatar_id":"768ff9057a85f808fdf685136baf890a","url":"https://api.github.com/users/liantics","html_url":"https://github.com/liantics","followers_url":"https://api.github.com/users/liantics/followers","following_url":"https://api.github.com/users/liantics/following{/other_user}","gists_url":"https://api.github.com/users/liantics/gists{/gist_id}","starred_url":"https://api.github.com/users/liantics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liantics/subscriptions","organizations_url":"https://api.github.com/users/liantics/orgs","repos_url":"https://api.github.com/users/liantics/repos","events_url":"https://api.github.com/users/liantics/events{/privacy}","received_events_url":"https://api.github.com/users/liantics/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/liantics/craigstr","description":"Craigslist clone - Metis team project","fork":false,"url":"https://api.github.com/repos/liantics/craigstr","forks_url":"https://api.github.com/repos/liantics/craigstr/forks","keys_url":"https://api.github.com/repos/liantics/craigstr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/liantics/craigstr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/liantics/craigstr/teams","hooks_url":"https://api.github.com/repos/liantics/craigstr/hooks","issue_events_url":"https://api.github.com/repos/liantics/craigstr/issues/events{/number}","events_url":"https://api.github.com/repos/liantics/craigstr/events","assignees_url":"https://api.github.com/repos/liantics/craigstr/assignees{/user}","branches_url":"https://api.github.com/repos/liantics/craigstr/branches{/branch}","tags_url":"https://api.github.com/repos/liantics/craigstr/tags","blobs_url":"https://api.github.com/repos/liantics/craigstr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/liantics/craigstr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/liantics/craigstr/git/refs{/sha}","trees_url":"https://api.github.com/repos/liantics/craigstr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/liantics/craigstr/statuses/{sha}","languages_url":"https://api.github.com/repos/liantics/craigstr/languages","stargazers_url":"https://api.github.com/repos/liantics/craigstr/stargazers","contributors_url":"https://api.github.com/repos/liantics/craigstr/contributors","subscribers_url":"https://api.github.com/repos/liantics/craigstr/subscribers","subscription_url":"https://api.github.com/repos/liantics/craigstr/subscription","commits_url":"https://api.github.com/repos/liantics/craigstr/commits{/sha}","git_commits_url":"https://api.github.com/repos/liantics/craigstr/git/commits{/sha}","comments_url":"https://api.github.com/repos/liantics/craigstr/comments{/number}","issue_comment_url":"https://api.github.com/repos/liantics/craigstr/issues/comments/{number}","contents_url":"https://api.github.com/repos/liantics/craigstr/contents/{+path}","compare_url":"https://api.github.com/repos/liantics/craigstr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/liantics/craigstr/merges","archive_url":"https://api.github.com/repos/liantics/craigstr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/liantics/craigstr/downloads","issues_url":"https://api.github.com/repos/liantics/craigstr/issues{/number}","pulls_url":"https://api.github.com/repos/liantics/craigstr/pulls{/number}","milestones_url":"https://api.github.com/repos/liantics/craigstr/milestones{/number}","notifications_url":"https://api.github.com/repos/liantics/craigstr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/liantics/craigstr/labels{/name}","releases_url":"https://api.github.com/repos/liantics/craigstr/releases{/id}","created_at":"2014-07-21T14:08:17Z","updated_at":"2014-07-21T14:08:31Z","pushed_at":"2014-07-23T21:06:25Z","git_url":"git://github.com/liantics/craigstr.git","ssh_url":"git@github.com:liantics/craigstr.git","clone_url":"https://github.com/liantics/craigstr.git","svn_url":"https://github.com/liantics/craigstr","homepage":null,"size":956,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"liantics:master","ref":"master","sha":"5cf191f8d449d47751a82aa8f8284fe660421536","user":{"login":"liantics","id":3310162,"avatar_url":"https://avatars.githubusercontent.com/u/3310162?","gravatar_id":"768ff9057a85f808fdf685136baf890a","url":"https://api.github.com/users/liantics","html_url":"https://github.com/liantics","followers_url":"https://api.github.com/users/liantics/followers","following_url":"https://api.github.com/users/liantics/following{/other_user}","gists_url":"https://api.github.com/users/liantics/gists{/gist_id}","starred_url":"https://api.github.com/users/liantics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liantics/subscriptions","organizations_url":"https://api.github.com/users/liantics/orgs","repos_url":"https://api.github.com/users/liantics/repos","events_url":"https://api.github.com/users/liantics/events{/privacy}","received_events_url":"https://api.github.com/users/liantics/received_events","type":"User","site_admin":false},"repo":{"id":22066770,"name":"craigstr","full_name":"liantics/craigstr","owner":{"login":"liantics","id":3310162,"avatar_url":"https://avatars.githubusercontent.com/u/3310162?","gravatar_id":"768ff9057a85f808fdf685136baf890a","url":"https://api.github.com/users/liantics","html_url":"https://github.com/liantics","followers_url":"https://api.github.com/users/liantics/followers","following_url":"https://api.github.com/users/liantics/following{/other_user}","gists_url":"https://api.github.com/users/liantics/gists{/gist_id}","starred_url":"https://api.github.com/users/liantics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liantics/subscriptions","organizations_url":"https://api.github.com/users/liantics/orgs","repos_url":"https://api.github.com/users/liantics/repos","events_url":"https://api.github.com/users/liantics/events{/privacy}","received_events_url":"https://api.github.com/users/liantics/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/liantics/craigstr","description":"Craigslist clone - Metis team project","fork":false,"url":"https://api.github.com/repos/liantics/craigstr","forks_url":"https://api.github.com/repos/liantics/craigstr/forks","keys_url":"https://api.github.com/repos/liantics/craigstr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/liantics/craigstr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/liantics/craigstr/teams","hooks_url":"https://api.github.com/repos/liantics/craigstr/hooks","issue_events_url":"https://api.github.com/repos/liantics/craigstr/issues/events{/number}","events_url":"https://api.github.com/repos/liantics/craigstr/events","assignees_url":"https://api.github.com/repos/liantics/craigstr/assignees{/user}","branches_url":"https://api.github.com/repos/liantics/craigstr/branches{/branch}","tags_url":"https://api.github.com/repos/liantics/craigstr/tags","blobs_url":"https://api.github.com/repos/liantics/craigstr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/liantics/craigstr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/liantics/craigstr/git/refs{/sha}","trees_url":"https://api.github.com/repos/liantics/craigstr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/liantics/craigstr/statuses/{sha}","languages_url":"https://api.github.com/repos/liantics/craigstr/languages","stargazers_url":"https://api.github.com/repos/liantics/craigstr/stargazers","contributors_url":"https://api.github.com/repos/liantics/craigstr/contributors","subscribers_url":"https://api.github.com/repos/liantics/craigstr/subscribers","subscription_url":"https://api.github.com/repos/liantics/craigstr/subscription","commits_url":"https://api.github.com/repos/liantics/craigstr/commits{/sha}","git_commits_url":"https://api.github.com/repos/liantics/craigstr/git/commits{/sha}","comments_url":"https://api.github.com/repos/liantics/craigstr/comments{/number}","issue_comment_url":"https://api.github.com/repos/liantics/craigstr/issues/comments/{number}","contents_url":"https://api.github.com/repos/liantics/craigstr/contents/{+path}","compare_url":"https://api.github.com/repos/liantics/craigstr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/liantics/craigstr/merges","archive_url":"https://api.github.com/repos/liantics/craigstr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/liantics/craigstr/downloads","issues_url":"https://api.github.com/repos/liantics/craigstr/issues{/number}","pulls_url":"https://api.github.com/repos/liantics/craigstr/pulls{/number}","milestones_url":"https://api.github.com/repos/liantics/craigstr/milestones{/number}","notifications_url":"https://api.github.com/repos/liantics/craigstr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/liantics/craigstr/labels{/name}","releases_url":"https://api.github.com/repos/liantics/craigstr/releases{/id}","created_at":"2014-07-21T14:08:17Z","updated_at":"2014-07-21T14:08:31Z","pushed_at":"2014-07-23T21:06:25Z","git_url":"git://github.com/liantics/craigstr.git","ssh_url":"git@github.com:liantics/craigstr.git","clone_url":"https://github.com/liantics/craigstr.git","svn_url":"https://github.com/liantics/craigstr","homepage":null,"size":956,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/liantics/craigstr/pulls/19"},"html":{"href":"https://github.com/liantics/craigstr/pull/19"},"issue":{"href":"https://api.github.com/repos/liantics/craigstr/issues/19"},"comments":{"href":"https://api.github.com/repos/liantics/craigstr/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/liantics/craigstr/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/liantics/craigstr/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/liantics/craigstr/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/liantics/craigstr/statuses/7e58d09545bf1273ef38efaa72605220f6785de3"}}}}