{"action":"created","comment":{"url":"https://api.github.com/repos/mlg-/thirsty/pulls/comments/33964899","id":33964899,"diff_hunk":"@@ -0,0 +1,8 @@\n+class Vote < ActiveRecord::Base\n+  belongs_to :review\n+  belongs_to :user\n+\n+  validates :value, presence: true, numericality: true, inclusion: { in: [-1, 1] }\n+  validates :review, presence: true\n+  validates :user, presence: true\n+end","path":"app/models/vote.rb","position":8,"original_position":8,"commit_id":"d5a86c80e63b2ceb6b003cde9553c15a9619ba94","original_commit_id":"d5a86c80e63b2ceb6b003cde9553c15a9619ba94","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Final newline missing.","created_at":"2015-07-06T18:17:01Z","updated_at":"2015-07-06T18:17:01Z","html_url":"https://github.com/mlg-/thirsty/pull/6#discussion_r33964899","pull_request_url":"https://api.github.com/repos/mlg-/thirsty/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/mlg-/thirsty/pulls/comments/33964899"},"html":{"href":"https://github.com/mlg-/thirsty/pull/6#discussion_r33964899"},"pull_request":{"href":"https://api.github.com/repos/mlg-/thirsty/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/mlg-/thirsty/pulls/6","id":39295260,"html_url":"https://github.com/mlg-/thirsty/pull/6","diff_url":"https://github.com/mlg-/thirsty/pull/6.diff","patch_url":"https://github.com/mlg-/thirsty/pull/6.patch","issue_url":"https://api.github.com/repos/mlg-/thirsty/issues/6","number":6,"state":"open","locked":false,"title":"[WIP] Mm mlg review votes","user":{"login":"Mayo19","id":10101696,"avatar_url":"https://avatars.githubusercontent.com/u/10101696?v=3","gravatar_id":"","url":"https://api.github.com/users/Mayo19","html_url":"https://github.com/Mayo19","followers_url":"https://api.github.com/users/Mayo19/followers","following_url":"https://api.github.com/users/Mayo19/following{/other_user}","gists_url":"https://api.github.com/users/Mayo19/gists{/gist_id}","starred_url":"https://api.github.com/users/Mayo19/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mayo19/subscriptions","organizations_url":"https://api.github.com/users/Mayo19/orgs","repos_url":"https://api.github.com/users/Mayo19/repos","events_url":"https://api.github.com/users/Mayo19/events{/privacy}","received_events_url":"https://api.github.com/users/Mayo19/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-06T18:16:57Z","updated_at":"2015-07-06T18:17:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d7aeecdb4b681c3c2a24e060c5a6d90204c234c1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mlg-/thirsty/pulls/6/commits","review_comments_url":"https://api.github.com/repos/mlg-/thirsty/pulls/6/comments","review_comment_url":"https://api.github.com/repos/mlg-/thirsty/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mlg-/thirsty/issues/6/comments","statuses_url":"https://api.github.com/repos/mlg-/thirsty/statuses/d5a86c80e63b2ceb6b003cde9553c15a9619ba94","head":{"label":"mlg-:mm-mlg-review-votes","ref":"mm-mlg-review-votes","sha":"d5a86c80e63b2ceb6b003cde9553c15a9619ba94","user":{"login":"mlg-","id":6767094,"avatar_url":"https://avatars.githubusercontent.com/u/6767094?v=3","gravatar_id":"","url":"https://api.github.com/users/mlg-","html_url":"https://github.com/mlg-","followers_url":"https://api.github.com/users/mlg-/followers","following_url":"https://api.github.com/users/mlg-/following{/other_user}","gists_url":"https://api.github.com/users/mlg-/gists{/gist_id}","starred_url":"https://api.github.com/users/mlg-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlg-/subscriptions","organizations_url":"https://api.github.com/users/mlg-/orgs","repos_url":"https://api.github.com/users/mlg-/repos","events_url":"https://api.github.com/users/mlg-/events{/privacy}","received_events_url":"https://api.github.com/users/mlg-/received_events","type":"User","site_admin":false},"repo":{"id":38257379,"name":"thirsty","full_name":"mlg-/thirsty","owner":{"login":"mlg-","id":6767094,"avatar_url":"https://avatars.githubusercontent.com/u/6767094?v=3","gravatar_id":"","url":"https://api.github.com/users/mlg-","html_url":"https://github.com/mlg-","followers_url":"https://api.github.com/users/mlg-/followers","following_url":"https://api.github.com/users/mlg-/following{/other_user}","gists_url":"https://api.github.com/users/mlg-/gists{/gist_id}","starred_url":"https://api.github.com/users/mlg-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlg-/subscriptions","organizations_url":"https://api.github.com/users/mlg-/orgs","repos_url":"https://api.github.com/users/mlg-/repos","events_url":"https://api.github.com/users/mlg-/events{/privacy}","received_events_url":"https://api.github.com/users/mlg-/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mlg-/thirsty","description":null,"fork":false,"url":"https://api.github.com/repos/mlg-/thirsty","forks_url":"https://api.github.com/repos/mlg-/thirsty/forks","keys_url":"https://api.github.com/repos/mlg-/thirsty/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mlg-/thirsty/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mlg-/thirsty/teams","hooks_url":"https://api.github.com/repos/mlg-/thirsty/hooks","issue_events_url":"https://api.github.com/repos/mlg-/thirsty/issues/events{/number}","events_url":"https://api.github.com/repos/mlg-/thirsty/events","assignees_url":"https://api.github.com/repos/mlg-/thirsty/assignees{/user}","branches_url":"https://api.github.com/repos/mlg-/thirsty/branches{/branch}","tags_url":"https://api.github.com/repos/mlg-/thirsty/tags","blobs_url":"https://api.github.com/repos/mlg-/thirsty/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mlg-/thirsty/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mlg-/thirsty/git/refs{/sha}","trees_url":"https://api.github.com/repos/mlg-/thirsty/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mlg-/thirsty/statuses/{sha}","languages_url":"https://api.github.com/repos/mlg-/thirsty/languages","stargazers_url":"https://api.github.com/repos/mlg-/thirsty/stargazers","contributors_url":"https://api.github.com/repos/mlg-/thirsty/contributors","subscribers_url":"https://api.github.com/repos/mlg-/thirsty/subscribers","subscription_url":"https://api.github.com/repos/mlg-/thirsty/subscription","commits_url":"https://api.github.com/repos/mlg-/thirsty/commits{/sha}","git_commits_url":"https://api.github.com/repos/mlg-/thirsty/git/commits{/sha}","comments_url":"https://api.github.com/repos/mlg-/thirsty/comments{/number}","issue_comment_url":"https://api.github.com/repos/mlg-/thirsty/issues/comments{/number}","contents_url":"https://api.github.com/repos/mlg-/thirsty/contents/{+path}","compare_url":"https://api.github.com/repos/mlg-/thirsty/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mlg-/thirsty/merges","archive_url":"https://api.github.com/repos/mlg-/thirsty/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mlg-/thirsty/downloads","issues_url":"https://api.github.com/repos/mlg-/thirsty/issues{/number}","pulls_url":"https://api.github.com/repos/mlg-/thirsty/pulls{/number}","milestones_url":"https://api.github.com/repos/mlg-/thirsty/milestones{/number}","notifications_url":"https://api.github.com/repos/mlg-/thirsty/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mlg-/thirsty/labels{/name}","releases_url":"https://api.github.com/repos/mlg-/thirsty/releases{/id}","created_at":"2015-06-29T16:13:54Z","updated_at":"2015-07-01T13:59:24Z","pushed_at":"2015-07-06T18:16:57Z","git_url":"git://github.com/mlg-/thirsty.git","ssh_url":"git@github.com:mlg-/thirsty.git","clone_url":"https://github.com/mlg-/thirsty.git","svn_url":"https://github.com/mlg-/thirsty","homepage":null,"size":348,"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":"mlg-:master","ref":"master","sha":"5f98a906e111fbf4f910556a254098595c165261","user":{"login":"mlg-","id":6767094,"avatar_url":"https://avatars.githubusercontent.com/u/6767094?v=3","gravatar_id":"","url":"https://api.github.com/users/mlg-","html_url":"https://github.com/mlg-","followers_url":"https://api.github.com/users/mlg-/followers","following_url":"https://api.github.com/users/mlg-/following{/other_user}","gists_url":"https://api.github.com/users/mlg-/gists{/gist_id}","starred_url":"https://api.github.com/users/mlg-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlg-/subscriptions","organizations_url":"https://api.github.com/users/mlg-/orgs","repos_url":"https://api.github.com/users/mlg-/repos","events_url":"https://api.github.com/users/mlg-/events{/privacy}","received_events_url":"https://api.github.com/users/mlg-/received_events","type":"User","site_admin":false},"repo":{"id":38257379,"name":"thirsty","full_name":"mlg-/thirsty","owner":{"login":"mlg-","id":6767094,"avatar_url":"https://avatars.githubusercontent.com/u/6767094?v=3","gravatar_id":"","url":"https://api.github.com/users/mlg-","html_url":"https://github.com/mlg-","followers_url":"https://api.github.com/users/mlg-/followers","following_url":"https://api.github.com/users/mlg-/following{/other_user}","gists_url":"https://api.github.com/users/mlg-/gists{/gist_id}","starred_url":"https://api.github.com/users/mlg-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlg-/subscriptions","organizations_url":"https://api.github.com/users/mlg-/orgs","repos_url":"https://api.github.com/users/mlg-/repos","events_url":"https://api.github.com/users/mlg-/events{/privacy}","received_events_url":"https://api.github.com/users/mlg-/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mlg-/thirsty","description":null,"fork":false,"url":"https://api.github.com/repos/mlg-/thirsty","forks_url":"https://api.github.com/repos/mlg-/thirsty/forks","keys_url":"https://api.github.com/repos/mlg-/thirsty/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mlg-/thirsty/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mlg-/thirsty/teams","hooks_url":"https://api.github.com/repos/mlg-/thirsty/hooks","issue_events_url":"https://api.github.com/repos/mlg-/thirsty/issues/events{/number}","events_url":"https://api.github.com/repos/mlg-/thirsty/events","assignees_url":"https://api.github.com/repos/mlg-/thirsty/assignees{/user}","branches_url":"https://api.github.com/repos/mlg-/thirsty/branches{/branch}","tags_url":"https://api.github.com/repos/mlg-/thirsty/tags","blobs_url":"https://api.github.com/repos/mlg-/thirsty/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mlg-/thirsty/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mlg-/thirsty/git/refs{/sha}","trees_url":"https://api.github.com/repos/mlg-/thirsty/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mlg-/thirsty/statuses/{sha}","languages_url":"https://api.github.com/repos/mlg-/thirsty/languages","stargazers_url":"https://api.github.com/repos/mlg-/thirsty/stargazers","contributors_url":"https://api.github.com/repos/mlg-/thirsty/contributors","subscribers_url":"https://api.github.com/repos/mlg-/thirsty/subscribers","subscription_url":"https://api.github.com/repos/mlg-/thirsty/subscription","commits_url":"https://api.github.com/repos/mlg-/thirsty/commits{/sha}","git_commits_url":"https://api.github.com/repos/mlg-/thirsty/git/commits{/sha}","comments_url":"https://api.github.com/repos/mlg-/thirsty/comments{/number}","issue_comment_url":"https://api.github.com/repos/mlg-/thirsty/issues/comments{/number}","contents_url":"https://api.github.com/repos/mlg-/thirsty/contents/{+path}","compare_url":"https://api.github.com/repos/mlg-/thirsty/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mlg-/thirsty/merges","archive_url":"https://api.github.com/repos/mlg-/thirsty/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mlg-/thirsty/downloads","issues_url":"https://api.github.com/repos/mlg-/thirsty/issues{/number}","pulls_url":"https://api.github.com/repos/mlg-/thirsty/pulls{/number}","milestones_url":"https://api.github.com/repos/mlg-/thirsty/milestones{/number}","notifications_url":"https://api.github.com/repos/mlg-/thirsty/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mlg-/thirsty/labels{/name}","releases_url":"https://api.github.com/repos/mlg-/thirsty/releases{/id}","created_at":"2015-06-29T16:13:54Z","updated_at":"2015-07-01T13:59:24Z","pushed_at":"2015-07-06T18:16:57Z","git_url":"git://github.com/mlg-/thirsty.git","ssh_url":"git@github.com:mlg-/thirsty.git","clone_url":"https://github.com/mlg-/thirsty.git","svn_url":"https://github.com/mlg-/thirsty","homepage":null,"size":348,"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/mlg-/thirsty/pulls/6"},"html":{"href":"https://github.com/mlg-/thirsty/pull/6"},"issue":{"href":"https://api.github.com/repos/mlg-/thirsty/issues/6"},"comments":{"href":"https://api.github.com/repos/mlg-/thirsty/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/mlg-/thirsty/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/mlg-/thirsty/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mlg-/thirsty/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/mlg-/thirsty/statuses/d5a86c80e63b2ceb6b003cde9553c15a9619ba94"}}}}