GitHub PullRequestEvent at 2014-04-01 12:52:11
Repository: rails
Actor: codeclimate-refactoring-bot
Payload: {"action":"opened","number":21,"pull_request":{"url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/pulls/21","id":14224902,"html_url":"https://github.com/codeclimate-refactoring-bot/rails/pull/21","diff_url":"https://github.com/codeclimate-refactoring-bot/rails/pull/21.diff","patch_url":"https://github.com/codeclimate-refactoring-bot/rails/pull/21.patch","issue_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/issues/21","number":21,"state":"open","title":"Code Climate Automated Refactor of ActiveRecord::FinderMethods","user":{"login":"codeclimate-refactoring-bot","id":7115798,"avatar_url":"https://avatars.githubusercontent.com/u/7115798?","gravatar_id":"2e9687f41f5310d911830a3a2de769ac","url":"https://api.github.com/users/codeclimate-refactoring-bot","html_url":"https://github.com/codeclimate-refactoring-bot","followers_url":"https://api.github.com/users/codeclimate-refactoring-bot/followers","following_url":"https://api.github.com/users/codeclimate-refactoring-bot/following{/other_user}","gists_url":"https://api.github.com/users/codeclimate-refactoring-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codeclimate-refactoring-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeclimate-refactoring-bot/subscriptions","organizations_url":"https://api.github.com/users/codeclimate-refactoring-bot/orgs","repos_url":"https://api.github.com/users/codeclimate-refactoring-bot/repos","events_url":"https://api.github.com/users/codeclimate-refactoring-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codeclimate-refactoring-bot/received_events","type":"User","site_admin":false},"body":"Code Climate's automated refactoring tool has carefully analyzed the best way to improve this code and has determined that the best option at the current time is to nuke it from orbit.\n\nLearn more about Code Climate's Automated Refactoring on our [blog post announcement](http://blog.codeclimate.com/2014/04/01/launching-today-automated-refactoring/).","created_at":"2014-04-01T12:52:11Z","updated_at":"2014-04-01T12:52:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/pulls/21/commits","review_comments_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/pulls/21/comments","review_comment_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/pulls/comments/{number}","comments_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/issues/21/comments","statuses_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/statuses/a9de2bc7c0bbea8e8ec4eee0a8dae6b317c2dad2","head":{"label":"codeclimate-refactoring-bot:magic_refactor_950b585d536d729661d0","ref":"magic_refactor_950b585d536d729661d0","sha":"a9de2bc7c0bbea8e8ec4eee0a8dae6b317c2dad2","user":{"login":"codeclimate-refactoring-bot","id":7115798,"avatar_url":"https://avatars.githubusercontent.com/u/7115798?","gravatar_id":"2e9687f41f5310d911830a3a2de769ac","url":"https://api.github.com/users/codeclimate-refactoring-bot","html_url":"https://github.com/codeclimate-refactoring-bot","followers_url":"https://api.github.com/users/codeclimate-refactoring-bot/followers","following_url":"https://api.github.com/users/codeclimate-refactoring-bot/following{/other_user}","gists_url":"https://api.github.com/users/codeclimate-refactoring-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codeclimate-refactoring-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeclimate-refactoring-bot/subscriptions","organizations_url":"https://api.github.com/users/codeclimate-refactoring-bot/orgs","repos_url":"https://api.github.com/users/codeclimate-refactoring-bot/repos","events_url":"https://api.github.com/users/codeclimate-refactoring-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codeclimate-refactoring-bot/received_events","type":"User","site_admin":false},"repo":{"id":18303537,"name":"rails","full_name":"codeclimate-refactoring-bot/rails","owner":{"login":"codeclimate-refactoring-bot","id":7115798,"avatar_url":"https://avatars.githubusercontent.com/u/7115798?","gravatar_id":"2e9687f41f5310d911830a3a2de769ac","url":"https://api.github.com/users/codeclimate-refactoring-bot","html_url":"https://github.com/codeclimate-refactoring-bot","followers_url":"https://api.github.com/users/codeclimate-refactoring-bot/followers","following_url":"https://api.github.com/users/codeclimate-refactoring-bot/following{/other_user}","gists_url":"https://api.github.com/users/codeclimate-refactoring-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codeclimate-refactoring-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeclimate-refactoring-bot/subscriptions","organizations_url":"https://api.github.com/users/codeclimate-refactoring-bot/orgs","repos_url":"https://api.github.com/users/codeclimate-refactoring-bot/repos","events_url":"https://api.github.com/users/codeclimate-refactoring-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codeclimate-refactoring-bot/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/codeclimate-refactoring-bot/rails","description":"Ruby on Rails","fork":true,"url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails","forks_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/forks","keys_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/teams","hooks_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/hooks","issue_events_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/issues/events{/number}","events_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/events","assignees_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/assignees{/user}","branches_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/branches{/branch}","tags_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/tags","blobs_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/statuses/{sha}","languages_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/languages","stargazers_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/stargazers","contributors_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/contributors","subscribers_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/subscribers","subscription_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/subscription","commits_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/issues/comments/{number}","contents_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/contents/{+path}","compare_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/merges","archive_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/downloads","issues_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/issues{/number}","pulls_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/pulls{/number}","milestones_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/milestones{/number}","notifications_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/labels{/name}","releases_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/releases{/id}","created_at":"2014-03-31T18:30:00Z","updated_at":"2014-04-01T12:52:11Z","pushed_at":"2014-04-01T12:52:11Z","git_url":"git://github.com/codeclimate-refactoring-bot/rails.git","ssh_url":"git@github.com:codeclimate-refactoring-bot/rails.git","clone_url":"https://github.com/codeclimate-refactoring-bot/rails.git","svn_url":"https://github.com/codeclimate-refactoring-bot/rails","homepage":"http://rubyonrails.org","size":108549,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"forks_count":0,"mirror_url":null,"open_issues_count":21,"forks":0,"open_issues":21,"watchers":0,"default_branch":"master","master_branch":"master"}},"base":{"label":"codeclimate-refactoring-bot:master","ref":"master","sha":"b88cfed7ab0993f46cf71eebf69c23191da6f9d4","user":{"login":"codeclimate-refactoring-bot","id":7115798,"avatar_url":"https://avatars.githubusercontent.com/u/7115798?","gravatar_id":"2e9687f41f5310d911830a3a2de769ac","url":"https://api.github.com/users/codeclimate-refactoring-bot","html_url":"https://github.com/codeclimate-refactoring-bot","followers_url":"https://api.github.com/users/codeclimate-refactoring-bot/followers","following_url":"https://api.github.com/users/codeclimate-refactoring-bot/following{/other_user}","gists_url":"https://api.github.com/users/codeclimate-refactoring-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codeclimate-refactoring-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeclimate-refactoring-bot/subscriptions","organizations_url":"https://api.github.com/users/codeclimate-refactoring-bot/orgs","repos_url":"https://api.github.com/users/codeclimate-refactoring-bot/repos","events_url":"https://api.github.com/users/codeclimate-refactoring-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codeclimate-refactoring-bot/received_events","type":"User","site_admin":false},"repo":{"id":18303537,"name":"rails","full_name":"codeclimate-refactoring-bot/rails","owner":{"login":"codeclimate-refactoring-bot","id":7115798,"avatar_url":"https://avatars.githubusercontent.com/u/7115798?","gravatar_id":"2e9687f41f5310d911830a3a2de769ac","url":"https://api.github.com/users/codeclimate-refactoring-bot","html_url":"https://github.com/codeclimate-refactoring-bot","followers_url":"https://api.github.com/users/codeclimate-refactoring-bot/followers","following_url":"https://api.github.com/users/codeclimate-refactoring-bot/following{/other_user}","gists_url":"https://api.github.com/users/codeclimate-refactoring-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codeclimate-refactoring-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeclimate-refactoring-bot/subscriptions","organizations_url":"https://api.github.com/users/codeclimate-refactoring-bot/orgs","repos_url":"https://api.github.com/users/codeclimate-refactoring-bot/repos","events_url":"https://api.github.com/users/codeclimate-refactoring-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codeclimate-refactoring-bot/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/codeclimate-refactoring-bot/rails","description":"Ruby on Rails","fork":true,"url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails","forks_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/forks","keys_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/teams","hooks_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/hooks","issue_events_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/issues/events{/number}","events_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/events","assignees_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/assignees{/user}","branches_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/branches{/branch}","tags_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/tags","blobs_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/statuses/{sha}","languages_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/languages","stargazers_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/stargazers","contributors_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/contributors","subscribers_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/subscribers","subscription_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/subscription","commits_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/issues/comments/{number}","contents_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/contents/{+path}","compare_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/merges","archive_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/downloads","issues_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/issues{/number}","pulls_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/pulls{/number}","milestones_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/milestones{/number}","notifications_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/labels{/name}","releases_url":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/releases{/id}","created_at":"2014-03-31T18:30:00Z","updated_at":"2014-04-01T12:52:11Z","pushed_at":"2014-04-01T12:52:11Z","git_url":"git://github.com/codeclimate-refactoring-bot/rails.git","ssh_url":"git@github.com:codeclimate-refactoring-bot/rails.git","clone_url":"https://github.com/codeclimate-refactoring-bot/rails.git","svn_url":"https://github.com/codeclimate-refactoring-bot/rails","homepage":"http://rubyonrails.org","size":108549,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"forks_count":0,"mirror_url":null,"open_issues_count":21,"forks":0,"open_issues":21,"watchers":0,"default_branch":"master","master_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/pulls/21"},"html":{"href":"https://github.com/codeclimate-refactoring-bot/rails/pull/21"},"issue":{"href":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/issues/21"},"comments":{"href":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/codeclimate-refactoring-bot/rails/statuses/a9de2bc7c0bbea8e8ec4eee0a8dae6b317c2dad2"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":0,"deletions":500,"changed_files":1}}