{"action":"created","comment":{"url":"https://api.github.com/repos/Safecast/safecastapi/pulls/comments/65492754","id":65492754,"diff_hunk":"@@ -81,6 +85,21 @@ def approve!\n     Notifications.import_approved(self).deliver\n   end\n \n+  def reject!\n+    self.update_column(:rejected, true)\n+    self.update_column(:rejected_by, user.email)","path":"app/models/bgeigie_import.rb","position":17,"original_position":17,"commit_id":"97179951469187ea24cb7103f38372bd75fdeae6","original_commit_id":"97179951469187ea24cb7103f38372bd75fdeae6","user":{"login":"matschaffer","id":690,"avatar_url":"https://avatars.githubusercontent.com/u/690?v=3","gravatar_id":"","url":"https://api.github.com/users/matschaffer","html_url":"https://github.com/matschaffer","followers_url":"https://api.github.com/users/matschaffer/followers","following_url":"https://api.github.com/users/matschaffer/following{/other_user}","gists_url":"https://api.github.com/users/matschaffer/gists{/gist_id}","starred_url":"https://api.github.com/users/matschaffer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matschaffer/subscriptions","organizations_url":"https://api.github.com/users/matschaffer/orgs","repos_url":"https://api.github.com/users/matschaffer/repos","events_url":"https://api.github.com/users/matschaffer/events{/privacy}","received_events_url":"https://api.github.com/users/matschaffer/received_events","type":"User","site_admin":false},"body":"Should make this a user id as well.","created_at":"2016-06-02T07:03:07Z","updated_at":"2016-06-02T07:03:07Z","html_url":"https://github.com/Safecast/safecastapi/pull/260#discussion_r65492754","pull_request_url":"https://api.github.com/repos/Safecast/safecastapi/pulls/260","_links":{"self":{"href":"https://api.github.com/repos/Safecast/safecastapi/pulls/comments/65492754"},"html":{"href":"https://github.com/Safecast/safecastapi/pull/260#discussion_r65492754"},"pull_request":{"href":"https://api.github.com/repos/Safecast/safecastapi/pulls/260"}}},"pull_request":{"url":"https://api.github.com/repos/Safecast/safecastapi/pulls/260","id":72293424,"html_url":"https://github.com/Safecast/safecastapi/pull/260","diff_url":"https://github.com/Safecast/safecastapi/pull/260.diff","patch_url":"https://github.com/Safecast/safecastapi/pull/260.patch","issue_url":"https://api.github.com/repos/Safecast/safecastapi/issues/260","number":260,"state":"open","locked":false,"title":"Rejectfeature","user":{"login":"jsidd","id":3145723,"avatar_url":"https://avatars.githubusercontent.com/u/3145723?v=3","gravatar_id":"","url":"https://api.github.com/users/jsidd","html_url":"https://github.com/jsidd","followers_url":"https://api.github.com/users/jsidd/followers","following_url":"https://api.github.com/users/jsidd/following{/other_user}","gists_url":"https://api.github.com/users/jsidd/gists{/gist_id}","starred_url":"https://api.github.com/users/jsidd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsidd/subscriptions","organizations_url":"https://api.github.com/users/jsidd/orgs","repos_url":"https://api.github.com/users/jsidd/repos","events_url":"https://api.github.com/users/jsidd/events{/privacy}","received_events_url":"https://api.github.com/users/jsidd/received_events","type":"User","site_admin":false},"body":"Pull Request for new reject feature\r\nConnected to #238 \r\n","created_at":"2016-06-02T06:05:29Z","updated_at":"2016-06-02T07:03:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"20c4658733df23e1ad0f8eae9ed6ddee2b653d97","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Safecast/safecastapi/pulls/260/commits","review_comments_url":"https://api.github.com/repos/Safecast/safecastapi/pulls/260/comments","review_comment_url":"https://api.github.com/repos/Safecast/safecastapi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Safecast/safecastapi/issues/260/comments","statuses_url":"https://api.github.com/repos/Safecast/safecastapi/statuses/97179951469187ea24cb7103f38372bd75fdeae6","head":{"label":"Safecast:rejectfeature","ref":"rejectfeature","sha":"97179951469187ea24cb7103f38372bd75fdeae6","user":{"login":"Safecast","id":959637,"avatar_url":"https://avatars.githubusercontent.com/u/959637?v=3","gravatar_id":"","url":"https://api.github.com/users/Safecast","html_url":"https://github.com/Safecast","followers_url":"https://api.github.com/users/Safecast/followers","following_url":"https://api.github.com/users/Safecast/following{/other_user}","gists_url":"https://api.github.com/users/Safecast/gists{/gist_id}","starred_url":"https://api.github.com/users/Safecast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Safecast/subscriptions","organizations_url":"https://api.github.com/users/Safecast/orgs","repos_url":"https://api.github.com/users/Safecast/repos","events_url":"https://api.github.com/users/Safecast/events{/privacy}","received_events_url":"https://api.github.com/users/Safecast/received_events","type":"Organization","site_admin":false},"repo":{"id":2851358,"name":"safecastapi","full_name":"Safecast/safecastapi","owner":{"login":"Safecast","id":959637,"avatar_url":"https://avatars.githubusercontent.com/u/959637?v=3","gravatar_id":"","url":"https://api.github.com/users/Safecast","html_url":"https://github.com/Safecast","followers_url":"https://api.github.com/users/Safecast/followers","following_url":"https://api.github.com/users/Safecast/following{/other_user}","gists_url":"https://api.github.com/users/Safecast/gists{/gist_id}","starred_url":"https://api.github.com/users/Safecast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Safecast/subscriptions","organizations_url":"https://api.github.com/users/Safecast/orgs","repos_url":"https://api.github.com/users/Safecast/repos","events_url":"https://api.github.com/users/Safecast/events{/privacy}","received_events_url":"https://api.github.com/users/Safecast/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Safecast/safecastapi","description":"The app that powers api.safecast.org","fork":false,"url":"https://api.github.com/repos/Safecast/safecastapi","forks_url":"https://api.github.com/repos/Safecast/safecastapi/forks","keys_url":"https://api.github.com/repos/Safecast/safecastapi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Safecast/safecastapi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Safecast/safecastapi/teams","hooks_url":"https://api.github.com/repos/Safecast/safecastapi/hooks","issue_events_url":"https://api.github.com/repos/Safecast/safecastapi/issues/events{/number}","events_url":"https://api.github.com/repos/Safecast/safecastapi/events","assignees_url":"https://api.github.com/repos/Safecast/safecastapi/assignees{/user}","branches_url":"https://api.github.com/repos/Safecast/safecastapi/branches{/branch}","tags_url":"https://api.github.com/repos/Safecast/safecastapi/tags","blobs_url":"https://api.github.com/repos/Safecast/safecastapi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Safecast/safecastapi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Safecast/safecastapi/git/refs{/sha}","trees_url":"https://api.github.com/repos/Safecast/safecastapi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Safecast/safecastapi/statuses/{sha}","languages_url":"https://api.github.com/repos/Safecast/safecastapi/languages","stargazers_url":"https://api.github.com/repos/Safecast/safecastapi/stargazers","contributors_url":"https://api.github.com/repos/Safecast/safecastapi/contributors","subscribers_url":"https://api.github.com/repos/Safecast/safecastapi/subscribers","subscription_url":"https://api.github.com/repos/Safecast/safecastapi/subscription","commits_url":"https://api.github.com/repos/Safecast/safecastapi/commits{/sha}","git_commits_url":"https://api.github.com/repos/Safecast/safecastapi/git/commits{/sha}","comments_url":"https://api.github.com/repos/Safecast/safecastapi/comments{/number}","issue_comment_url":"https://api.github.com/repos/Safecast/safecastapi/issues/comments{/number}","contents_url":"https://api.github.com/repos/Safecast/safecastapi/contents/{+path}","compare_url":"https://api.github.com/repos/Safecast/safecastapi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Safecast/safecastapi/merges","archive_url":"https://api.github.com/repos/Safecast/safecastapi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Safecast/safecastapi/downloads","issues_url":"https://api.github.com/repos/Safecast/safecastapi/issues{/number}","pulls_url":"https://api.github.com/repos/Safecast/safecastapi/pulls{/number}","milestones_url":"https://api.github.com/repos/Safecast/safecastapi/milestones{/number}","notifications_url":"https://api.github.com/repos/Safecast/safecastapi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Safecast/safecastapi/labels{/name}","releases_url":"https://api.github.com/repos/Safecast/safecastapi/releases{/id}","deployments_url":"https://api.github.com/repos/Safecast/safecastapi/deployments","created_at":"2011-11-25T18:04:30Z","updated_at":"2016-04-13T04:22:12Z","pushed_at":"2016-06-02T06:05:29Z","git_url":"git://github.com/Safecast/safecastapi.git","ssh_url":"git@github.com:Safecast/safecastapi.git","clone_url":"https://github.com/Safecast/safecastapi.git","svn_url":"https://github.com/Safecast/safecastapi","homepage":"","size":2795,"stargazers_count":7,"watchers_count":7,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":89,"forks":6,"open_issues":89,"watchers":7,"default_branch":"master"}},"base":{"label":"Safecast:master","ref":"master","sha":"861a78304d484df6bf1b453380b44d897995006b","user":{"login":"Safecast","id":959637,"avatar_url":"https://avatars.githubusercontent.com/u/959637?v=3","gravatar_id":"","url":"https://api.github.com/users/Safecast","html_url":"https://github.com/Safecast","followers_url":"https://api.github.com/users/Safecast/followers","following_url":"https://api.github.com/users/Safecast/following{/other_user}","gists_url":"https://api.github.com/users/Safecast/gists{/gist_id}","starred_url":"https://api.github.com/users/Safecast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Safecast/subscriptions","organizations_url":"https://api.github.com/users/Safecast/orgs","repos_url":"https://api.github.com/users/Safecast/repos","events_url":"https://api.github.com/users/Safecast/events{/privacy}","received_events_url":"https://api.github.com/users/Safecast/received_events","type":"Organization","site_admin":false},"repo":{"id":2851358,"name":"safecastapi","full_name":"Safecast/safecastapi","owner":{"login":"Safecast","id":959637,"avatar_url":"https://avatars.githubusercontent.com/u/959637?v=3","gravatar_id":"","url":"https://api.github.com/users/Safecast","html_url":"https://github.com/Safecast","followers_url":"https://api.github.com/users/Safecast/followers","following_url":"https://api.github.com/users/Safecast/following{/other_user}","gists_url":"https://api.github.com/users/Safecast/gists{/gist_id}","starred_url":"https://api.github.com/users/Safecast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Safecast/subscriptions","organizations_url":"https://api.github.com/users/Safecast/orgs","repos_url":"https://api.github.com/users/Safecast/repos","events_url":"https://api.github.com/users/Safecast/events{/privacy}","received_events_url":"https://api.github.com/users/Safecast/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Safecast/safecastapi","description":"The app that powers api.safecast.org","fork":false,"url":"https://api.github.com/repos/Safecast/safecastapi","forks_url":"https://api.github.com/repos/Safecast/safecastapi/forks","keys_url":"https://api.github.com/repos/Safecast/safecastapi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Safecast/safecastapi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Safecast/safecastapi/teams","hooks_url":"https://api.github.com/repos/Safecast/safecastapi/hooks","issue_events_url":"https://api.github.com/repos/Safecast/safecastapi/issues/events{/number}","events_url":"https://api.github.com/repos/Safecast/safecastapi/events","assignees_url":"https://api.github.com/repos/Safecast/safecastapi/assignees{/user}","branches_url":"https://api.github.com/repos/Safecast/safecastapi/branches{/branch}","tags_url":"https://api.github.com/repos/Safecast/safecastapi/tags","blobs_url":"https://api.github.com/repos/Safecast/safecastapi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Safecast/safecastapi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Safecast/safecastapi/git/refs{/sha}","trees_url":"https://api.github.com/repos/Safecast/safecastapi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Safecast/safecastapi/statuses/{sha}","languages_url":"https://api.github.com/repos/Safecast/safecastapi/languages","stargazers_url":"https://api.github.com/repos/Safecast/safecastapi/stargazers","contributors_url":"https://api.github.com/repos/Safecast/safecastapi/contributors","subscribers_url":"https://api.github.com/repos/Safecast/safecastapi/subscribers","subscription_url":"https://api.github.com/repos/Safecast/safecastapi/subscription","commits_url":"https://api.github.com/repos/Safecast/safecastapi/commits{/sha}","git_commits_url":"https://api.github.com/repos/Safecast/safecastapi/git/commits{/sha}","comments_url":"https://api.github.com/repos/Safecast/safecastapi/comments{/number}","issue_comment_url":"https://api.github.com/repos/Safecast/safecastapi/issues/comments{/number}","contents_url":"https://api.github.com/repos/Safecast/safecastapi/contents/{+path}","compare_url":"https://api.github.com/repos/Safecast/safecastapi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Safecast/safecastapi/merges","archive_url":"https://api.github.com/repos/Safecast/safecastapi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Safecast/safecastapi/downloads","issues_url":"https://api.github.com/repos/Safecast/safecastapi/issues{/number}","pulls_url":"https://api.github.com/repos/Safecast/safecastapi/pulls{/number}","milestones_url":"https://api.github.com/repos/Safecast/safecastapi/milestones{/number}","notifications_url":"https://api.github.com/repos/Safecast/safecastapi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Safecast/safecastapi/labels{/name}","releases_url":"https://api.github.com/repos/Safecast/safecastapi/releases{/id}","deployments_url":"https://api.github.com/repos/Safecast/safecastapi/deployments","created_at":"2011-11-25T18:04:30Z","updated_at":"2016-04-13T04:22:12Z","pushed_at":"2016-06-02T06:05:29Z","git_url":"git://github.com/Safecast/safecastapi.git","ssh_url":"git@github.com:Safecast/safecastapi.git","clone_url":"https://github.com/Safecast/safecastapi.git","svn_url":"https://github.com/Safecast/safecastapi","homepage":"","size":2795,"stargazers_count":7,"watchers_count":7,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":89,"forks":6,"open_issues":89,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Safecast/safecastapi/pulls/260"},"html":{"href":"https://github.com/Safecast/safecastapi/pull/260"},"issue":{"href":"https://api.github.com/repos/Safecast/safecastapi/issues/260"},"comments":{"href":"https://api.github.com/repos/Safecast/safecastapi/issues/260/comments"},"review_comments":{"href":"https://api.github.com/repos/Safecast/safecastapi/pulls/260/comments"},"review_comment":{"href":"https://api.github.com/repos/Safecast/safecastapi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Safecast/safecastapi/pulls/260/commits"},"statuses":{"href":"https://api.github.com/repos/Safecast/safecastapi/statuses/97179951469187ea24cb7103f38372bd75fdeae6"}}}}
{"actor":{"display_login":"matschaffer"}}