{"action":"created","comment":{"url":"https://api.github.com/repos/nate01776/mirror/pulls/comments/85460852","pull_request_review_id":6176665,"id":85460852,"diff_hunk":"@@ -0,0 +1,25 @@\n+class Clientservice < ApplicationRecord\n+  belongs_to :salon\n+  belongs_to :service\n+  belongs_to :user\n+\n+  validates :service_id, presence: true\n+  validates :stylist_id, presence: true\n+  validates :user_id, presence: true\n+\n+  def stylist\n+    User.find(self.stylist_id)\n+  end\n+\n+  def service\n+    Service.find(self.service_id)\n+  end\n+\n+  def salon\n+    Salon.find(self.service.salon_id)\n+  end\n+\n+  def client\n+    User.find(self.user_id)","path":"app/models/clientservice.rb","position":23,"original_position":23,"commit_id":"9c628780ffcd96303655fe3402ba594d1a002f72","original_commit_id":"9c628780ffcd96303655fe3402ba594d1a002f72","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Redundant self detected.","created_at":"2016-10-28T01:53:42Z","updated_at":"2016-10-28T01:53:42Z","html_url":"https://github.com/nate01776/mirror/pull/16#discussion_r85460852","pull_request_url":"https://api.github.com/repos/nate01776/mirror/pulls/16","_links":{"self":{"href":"https://api.github.com/repos/nate01776/mirror/pulls/comments/85460852"},"html":{"href":"https://github.com/nate01776/mirror/pull/16#discussion_r85460852"},"pull_request":{"href":"https://api.github.com/repos/nate01776/mirror/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/nate01776/mirror/pulls/16","id":91093426,"html_url":"https://github.com/nate01776/mirror/pull/16","diff_url":"https://github.com/nate01776/mirror/pull/16.diff","patch_url":"https://github.com/nate01776/mirror/pull/16.patch","issue_url":"https://api.github.com/repos/nate01776/mirror/issues/16","number":16,"state":"open","locked":false,"title":"getting ready for mock career day screencast","user":{"login":"nate01776","id":18563085,"avatar_url":"https://avatars.githubusercontent.com/u/18563085?v=3","gravatar_id":"","url":"https://api.github.com/users/nate01776","html_url":"https://github.com/nate01776","followers_url":"https://api.github.com/users/nate01776/followers","following_url":"https://api.github.com/users/nate01776/following{/other_user}","gists_url":"https://api.github.com/users/nate01776/gists{/gist_id}","starred_url":"https://api.github.com/users/nate01776/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nate01776/subscriptions","organizations_url":"https://api.github.com/users/nate01776/orgs","repos_url":"https://api.github.com/users/nate01776/repos","events_url":"https://api.github.com/users/nate01776/events{/privacy}","received_events_url":"https://api.github.com/users/nate01776/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-26T21:36:05Z","updated_at":"2016-10-28T01:53:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bfe08be23c1fea5b4a93d9e6b6b8d1c075374fda","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/nate01776/mirror/pulls/16/commits","review_comments_url":"https://api.github.com/repos/nate01776/mirror/pulls/16/comments","review_comment_url":"https://api.github.com/repos/nate01776/mirror/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nate01776/mirror/issues/16/comments","statuses_url":"https://api.github.com/repos/nate01776/mirror/statuses/9c628780ffcd96303655fe3402ba594d1a002f72","head":{"label":"nate01776:add-clientservices","ref":"add-clientservices","sha":"9c628780ffcd96303655fe3402ba594d1a002f72","user":{"login":"nate01776","id":18563085,"avatar_url":"https://avatars.githubusercontent.com/u/18563085?v=3","gravatar_id":"","url":"https://api.github.com/users/nate01776","html_url":"https://github.com/nate01776","followers_url":"https://api.github.com/users/nate01776/followers","following_url":"https://api.github.com/users/nate01776/following{/other_user}","gists_url":"https://api.github.com/users/nate01776/gists{/gist_id}","starred_url":"https://api.github.com/users/nate01776/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nate01776/subscriptions","organizations_url":"https://api.github.com/users/nate01776/orgs","repos_url":"https://api.github.com/users/nate01776/repos","events_url":"https://api.github.com/users/nate01776/events{/privacy}","received_events_url":"https://api.github.com/users/nate01776/received_events","type":"User","site_admin":false},"repo":{"id":71166645,"name":"mirror","full_name":"nate01776/mirror","owner":{"login":"nate01776","id":18563085,"avatar_url":"https://avatars.githubusercontent.com/u/18563085?v=3","gravatar_id":"","url":"https://api.github.com/users/nate01776","html_url":"https://github.com/nate01776","followers_url":"https://api.github.com/users/nate01776/followers","following_url":"https://api.github.com/users/nate01776/following{/other_user}","gists_url":"https://api.github.com/users/nate01776/gists{/gist_id}","starred_url":"https://api.github.com/users/nate01776/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nate01776/subscriptions","organizations_url":"https://api.github.com/users/nate01776/orgs","repos_url":"https://api.github.com/users/nate01776/repos","events_url":"https://api.github.com/users/nate01776/events{/privacy}","received_events_url":"https://api.github.com/users/nate01776/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nate01776/mirror","description":"Web app to manage salon, stylist, product and client information","fork":false,"url":"https://api.github.com/repos/nate01776/mirror","forks_url":"https://api.github.com/repos/nate01776/mirror/forks","keys_url":"https://api.github.com/repos/nate01776/mirror/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nate01776/mirror/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nate01776/mirror/teams","hooks_url":"https://api.github.com/repos/nate01776/mirror/hooks","issue_events_url":"https://api.github.com/repos/nate01776/mirror/issues/events{/number}","events_url":"https://api.github.com/repos/nate01776/mirror/events","assignees_url":"https://api.github.com/repos/nate01776/mirror/assignees{/user}","branches_url":"https://api.github.com/repos/nate01776/mirror/branches{/branch}","tags_url":"https://api.github.com/repos/nate01776/mirror/tags","blobs_url":"https://api.github.com/repos/nate01776/mirror/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nate01776/mirror/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nate01776/mirror/git/refs{/sha}","trees_url":"https://api.github.com/repos/nate01776/mirror/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nate01776/mirror/statuses/{sha}","languages_url":"https://api.github.com/repos/nate01776/mirror/languages","stargazers_url":"https://api.github.com/repos/nate01776/mirror/stargazers","contributors_url":"https://api.github.com/repos/nate01776/mirror/contributors","subscribers_url":"https://api.github.com/repos/nate01776/mirror/subscribers","subscription_url":"https://api.github.com/repos/nate01776/mirror/subscription","commits_url":"https://api.github.com/repos/nate01776/mirror/commits{/sha}","git_commits_url":"https://api.github.com/repos/nate01776/mirror/git/commits{/sha}","comments_url":"https://api.github.com/repos/nate01776/mirror/comments{/number}","issue_comment_url":"https://api.github.com/repos/nate01776/mirror/issues/comments{/number}","contents_url":"https://api.github.com/repos/nate01776/mirror/contents/{+path}","compare_url":"https://api.github.com/repos/nate01776/mirror/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nate01776/mirror/merges","archive_url":"https://api.github.com/repos/nate01776/mirror/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nate01776/mirror/downloads","issues_url":"https://api.github.com/repos/nate01776/mirror/issues{/number}","pulls_url":"https://api.github.com/repos/nate01776/mirror/pulls{/number}","milestones_url":"https://api.github.com/repos/nate01776/mirror/milestones{/number}","notifications_url":"https://api.github.com/repos/nate01776/mirror/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nate01776/mirror/labels{/name}","releases_url":"https://api.github.com/repos/nate01776/mirror/releases{/id}","deployments_url":"https://api.github.com/repos/nate01776/mirror/deployments","created_at":"2016-10-17T18:04:13Z","updated_at":"2016-10-24T01:02:54Z","pushed_at":"2016-10-28T01:53:31Z","git_url":"git://github.com/nate01776/mirror.git","ssh_url":"git@github.com:nate01776/mirror.git","clone_url":"https://github.com/nate01776/mirror.git","svn_url":"https://github.com/nate01776/mirror","homepage":"","size":1294,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"nate01776:master","ref":"master","sha":"eb23c43cff28d84e926f9b54cb77fd406d6e2b04","user":{"login":"nate01776","id":18563085,"avatar_url":"https://avatars.githubusercontent.com/u/18563085?v=3","gravatar_id":"","url":"https://api.github.com/users/nate01776","html_url":"https://github.com/nate01776","followers_url":"https://api.github.com/users/nate01776/followers","following_url":"https://api.github.com/users/nate01776/following{/other_user}","gists_url":"https://api.github.com/users/nate01776/gists{/gist_id}","starred_url":"https://api.github.com/users/nate01776/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nate01776/subscriptions","organizations_url":"https://api.github.com/users/nate01776/orgs","repos_url":"https://api.github.com/users/nate01776/repos","events_url":"https://api.github.com/users/nate01776/events{/privacy}","received_events_url":"https://api.github.com/users/nate01776/received_events","type":"User","site_admin":false},"repo":{"id":71166645,"name":"mirror","full_name":"nate01776/mirror","owner":{"login":"nate01776","id":18563085,"avatar_url":"https://avatars.githubusercontent.com/u/18563085?v=3","gravatar_id":"","url":"https://api.github.com/users/nate01776","html_url":"https://github.com/nate01776","followers_url":"https://api.github.com/users/nate01776/followers","following_url":"https://api.github.com/users/nate01776/following{/other_user}","gists_url":"https://api.github.com/users/nate01776/gists{/gist_id}","starred_url":"https://api.github.com/users/nate01776/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nate01776/subscriptions","organizations_url":"https://api.github.com/users/nate01776/orgs","repos_url":"https://api.github.com/users/nate01776/repos","events_url":"https://api.github.com/users/nate01776/events{/privacy}","received_events_url":"https://api.github.com/users/nate01776/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nate01776/mirror","description":"Web app to manage salon, stylist, product and client information","fork":false,"url":"https://api.github.com/repos/nate01776/mirror","forks_url":"https://api.github.com/repos/nate01776/mirror/forks","keys_url":"https://api.github.com/repos/nate01776/mirror/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nate01776/mirror/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nate01776/mirror/teams","hooks_url":"https://api.github.com/repos/nate01776/mirror/hooks","issue_events_url":"https://api.github.com/repos/nate01776/mirror/issues/events{/number}","events_url":"https://api.github.com/repos/nate01776/mirror/events","assignees_url":"https://api.github.com/repos/nate01776/mirror/assignees{/user}","branches_url":"https://api.github.com/repos/nate01776/mirror/branches{/branch}","tags_url":"https://api.github.com/repos/nate01776/mirror/tags","blobs_url":"https://api.github.com/repos/nate01776/mirror/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nate01776/mirror/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nate01776/mirror/git/refs{/sha}","trees_url":"https://api.github.com/repos/nate01776/mirror/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nate01776/mirror/statuses/{sha}","languages_url":"https://api.github.com/repos/nate01776/mirror/languages","stargazers_url":"https://api.github.com/repos/nate01776/mirror/stargazers","contributors_url":"https://api.github.com/repos/nate01776/mirror/contributors","subscribers_url":"https://api.github.com/repos/nate01776/mirror/subscribers","subscription_url":"https://api.github.com/repos/nate01776/mirror/subscription","commits_url":"https://api.github.com/repos/nate01776/mirror/commits{/sha}","git_commits_url":"https://api.github.com/repos/nate01776/mirror/git/commits{/sha}","comments_url":"https://api.github.com/repos/nate01776/mirror/comments{/number}","issue_comment_url":"https://api.github.com/repos/nate01776/mirror/issues/comments{/number}","contents_url":"https://api.github.com/repos/nate01776/mirror/contents/{+path}","compare_url":"https://api.github.com/repos/nate01776/mirror/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nate01776/mirror/merges","archive_url":"https://api.github.com/repos/nate01776/mirror/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nate01776/mirror/downloads","issues_url":"https://api.github.com/repos/nate01776/mirror/issues{/number}","pulls_url":"https://api.github.com/repos/nate01776/mirror/pulls{/number}","milestones_url":"https://api.github.com/repos/nate01776/mirror/milestones{/number}","notifications_url":"https://api.github.com/repos/nate01776/mirror/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nate01776/mirror/labels{/name}","releases_url":"https://api.github.com/repos/nate01776/mirror/releases{/id}","deployments_url":"https://api.github.com/repos/nate01776/mirror/deployments","created_at":"2016-10-17T18:04:13Z","updated_at":"2016-10-24T01:02:54Z","pushed_at":"2016-10-28T01:53:31Z","git_url":"git://github.com/nate01776/mirror.git","ssh_url":"git@github.com:nate01776/mirror.git","clone_url":"https://github.com/nate01776/mirror.git","svn_url":"https://github.com/nate01776/mirror","homepage":"","size":1294,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nate01776/mirror/pulls/16"},"html":{"href":"https://github.com/nate01776/mirror/pull/16"},"issue":{"href":"https://api.github.com/repos/nate01776/mirror/issues/16"},"comments":{"href":"https://api.github.com/repos/nate01776/mirror/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/nate01776/mirror/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/nate01776/mirror/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nate01776/mirror/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/nate01776/mirror/statuses/9c628780ffcd96303655fe3402ba594d1a002f72"}}}}
{"actor":{"display_login":"houndci-bot"}}