{"action":"created","comment":{"url":"https://api.github.com/repos/travis-ci/travis-api/pulls/comments/169688456","pull_request_review_id":98255278,"id":169688456,"diff_hunk":"@@ -5,7 +5,13 @@ class Renderer::Branch < ModelRenderer\n     representation(:additional, :recent_builds)\n \n     def recent_builds\n-      return model.builds.first(10) if include_recent_builds?\n+      if include_recent_builds?\n+        V3::Models::Build.where(\n+          event_type: 'push',","path":"lib/travis/api/v3/renderer/branch.rb","position":7,"original_position":7,"commit_id":"7a9ba34d8fe88c7980021b6d5c97d1a0fef5b968","original_commit_id":"7a9ba34d8fe88c7980021b6d5c97d1a0fef5b968","user":{"login":"svenfuchs","id":2208,"avatar_url":"https://avatars0.githubusercontent.com/u/2208?v=4","gravatar_id":"","url":"https://api.github.com/users/svenfuchs","html_url":"https://github.com/svenfuchs","followers_url":"https://api.github.com/users/svenfuchs/followers","following_url":"https://api.github.com/users/svenfuchs/following{/other_user}","gists_url":"https://api.github.com/users/svenfuchs/gists{/gist_id}","starred_url":"https://api.github.com/users/svenfuchs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svenfuchs/subscriptions","organizations_url":"https://api.github.com/users/svenfuchs/orgs","repos_url":"https://api.github.com/users/svenfuchs/repos","events_url":"https://api.github.com/users/svenfuchs/events{/privacy}","received_events_url":"https://api.github.com/users/svenfuchs/received_events","type":"User","site_admin":false},"body":"how about `api` and `cron` builds? were those included before, too?","created_at":"2018-02-21T16:08:53Z","updated_at":"2018-02-21T16:11:05Z","html_url":"https://github.com/travis-ci/travis-api/pull/654#discussion_r169688456","pull_request_url":"https://api.github.com/repos/travis-ci/travis-api/pulls/654","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/travis-ci/travis-api/pulls/comments/169688456"},"html":{"href":"https://github.com/travis-ci/travis-api/pull/654#discussion_r169688456"},"pull_request":{"href":"https://api.github.com/repos/travis-ci/travis-api/pulls/654"}}},"pull_request":{"url":"https://api.github.com/repos/travis-ci/travis-api/pulls/654","id":170230922,"html_url":"https://github.com/travis-ci/travis-api/pull/654","diff_url":"https://github.com/travis-ci/travis-api/pull/654.diff","patch_url":"https://github.com/travis-ci/travis-api/pull/654.patch","issue_url":"https://api.github.com/repos/travis-ci/travis-api/issues/654","number":654,"state":"open","locked":false,"title":"Upgrade to activerecord 5.0.x","user":{"login":"joecorcoran","id":65193,"avatar_url":"https://avatars0.githubusercontent.com/u/65193?v=4","gravatar_id":"","url":"https://api.github.com/users/joecorcoran","html_url":"https://github.com/joecorcoran","followers_url":"https://api.github.com/users/joecorcoran/followers","following_url":"https://api.github.com/users/joecorcoran/following{/other_user}","gists_url":"https://api.github.com/users/joecorcoran/gists{/gist_id}","starred_url":"https://api.github.com/users/joecorcoran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joecorcoran/subscriptions","organizations_url":"https://api.github.com/users/joecorcoran/orgs","repos_url":"https://api.github.com/users/joecorcoran/repos","events_url":"https://api.github.com/users/joecorcoran/events{/privacy}","received_events_url":"https://api.github.com/users/joecorcoran/received_events","type":"User","site_admin":false},"body":"Involves code changes in various places. Prompted by so many deprecation messages.\r\n\r\n- [x] `ActiveRecord::QueryCache` is no longer a middleware. Do we need it? If so, how do we integrate it?\r\n- [x] `ConnectionManagement` is also no longer possible in AR5. Do we need to [add this](https://stackoverflow.com/questions/41400202/replacing-activerecordconnectionadaptersconnectionmanagement-in-activerecord)?","created_at":"2018-02-20T15:50:03Z","updated_at":"2018-02-21T16:11:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f515438ff5d436ca80b6001765a071c2253ac51f","assignee":null,"assignees":[],"requested_reviewers":[{"login":"drogus","id":5004,"avatar_url":"https://avatars1.githubusercontent.com/u/5004?v=4","gravatar_id":"","url":"https://api.github.com/users/drogus","html_url":"https://github.com/drogus","followers_url":"https://api.github.com/users/drogus/followers","following_url":"https://api.github.com/users/drogus/following{/other_user}","gists_url":"https://api.github.com/users/drogus/gists{/gist_id}","starred_url":"https://api.github.com/users/drogus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drogus/subscriptions","organizations_url":"https://api.github.com/users/drogus/orgs","repos_url":"https://api.github.com/users/drogus/repos","events_url":"https://api.github.com/users/drogus/events{/privacy}","received_events_url":"https://api.github.com/users/drogus/received_events","type":"User","site_admin":false},{"login":"carlad","id":1754975,"avatar_url":"https://avatars0.githubusercontent.com/u/1754975?v=4","gravatar_id":"","url":"https://api.github.com/users/carlad","html_url":"https://github.com/carlad","followers_url":"https://api.github.com/users/carlad/followers","following_url":"https://api.github.com/users/carlad/following{/other_user}","gists_url":"https://api.github.com/users/carlad/gists{/gist_id}","starred_url":"https://api.github.com/users/carlad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlad/subscriptions","organizations_url":"https://api.github.com/users/carlad/orgs","repos_url":"https://api.github.com/users/carlad/repos","events_url":"https://api.github.com/users/carlad/events{/privacy}","received_events_url":"https://api.github.com/users/carlad/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/travis-ci/travis-api/pulls/654/commits","review_comments_url":"https://api.github.com/repos/travis-ci/travis-api/pulls/654/comments","review_comment_url":"https://api.github.com/repos/travis-ci/travis-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/travis-ci/travis-api/issues/654/comments","statuses_url":"https://api.github.com/repos/travis-ci/travis-api/statuses/7a9ba34d8fe88c7980021b6d5c97d1a0fef5b968","head":{"label":"travis-ci:jc-ar5","ref":"jc-ar5","sha":"7a9ba34d8fe88c7980021b6d5c97d1a0fef5b968","user":{"login":"travis-ci","id":639823,"avatar_url":"https://avatars2.githubusercontent.com/u/639823?v=4","gravatar_id":"","url":"https://api.github.com/users/travis-ci","html_url":"https://github.com/travis-ci","followers_url":"https://api.github.com/users/travis-ci/followers","following_url":"https://api.github.com/users/travis-ci/following{/other_user}","gists_url":"https://api.github.com/users/travis-ci/gists{/gist_id}","starred_url":"https://api.github.com/users/travis-ci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/travis-ci/subscriptions","organizations_url":"https://api.github.com/users/travis-ci/orgs","repos_url":"https://api.github.com/users/travis-ci/repos","events_url":"https://api.github.com/users/travis-ci/events{/privacy}","received_events_url":"https://api.github.com/users/travis-ci/received_events","type":"Organization","site_admin":false},"repo":{"id":5096124,"name":"travis-api","full_name":"travis-ci/travis-api","owner":{"login":"travis-ci","id":639823,"avatar_url":"https://avatars2.githubusercontent.com/u/639823?v=4","gravatar_id":"","url":"https://api.github.com/users/travis-ci","html_url":"https://github.com/travis-ci","followers_url":"https://api.github.com/users/travis-ci/followers","following_url":"https://api.github.com/users/travis-ci/following{/other_user}","gists_url":"https://api.github.com/users/travis-ci/gists{/gist_id}","starred_url":"https://api.github.com/users/travis-ci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/travis-ci/subscriptions","organizations_url":"https://api.github.com/users/travis-ci/orgs","repos_url":"https://api.github.com/users/travis-ci/repos","events_url":"https://api.github.com/users/travis-ci/events{/privacy}","received_events_url":"https://api.github.com/users/travis-ci/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/travis-ci/travis-api","description":"The public Travis API","fork":false,"url":"https://api.github.com/repos/travis-ci/travis-api","forks_url":"https://api.github.com/repos/travis-ci/travis-api/forks","keys_url":"https://api.github.com/repos/travis-ci/travis-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/travis-ci/travis-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/travis-ci/travis-api/teams","hooks_url":"https://api.github.com/repos/travis-ci/travis-api/hooks","issue_events_url":"https://api.github.com/repos/travis-ci/travis-api/issues/events{/number}","events_url":"https://api.github.com/repos/travis-ci/travis-api/events","assignees_url":"https://api.github.com/repos/travis-ci/travis-api/assignees{/user}","branches_url":"https://api.github.com/repos/travis-ci/travis-api/branches{/branch}","tags_url":"https://api.github.com/repos/travis-ci/travis-api/tags","blobs_url":"https://api.github.com/repos/travis-ci/travis-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/travis-ci/travis-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/travis-ci/travis-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/travis-ci/travis-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/travis-ci/travis-api/statuses/{sha}","languages_url":"https://api.github.com/repos/travis-ci/travis-api/languages","stargazers_url":"https://api.github.com/repos/travis-ci/travis-api/stargazers","contributors_url":"https://api.github.com/repos/travis-ci/travis-api/contributors","subscribers_url":"https://api.github.com/repos/travis-ci/travis-api/subscribers","subscription_url":"https://api.github.com/repos/travis-ci/travis-api/subscription","commits_url":"https://api.github.com/repos/travis-ci/travis-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/travis-ci/travis-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/travis-ci/travis-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/travis-ci/travis-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/travis-ci/travis-api/contents/{+path}","compare_url":"https://api.github.com/repos/travis-ci/travis-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/travis-ci/travis-api/merges","archive_url":"https://api.github.com/repos/travis-ci/travis-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/travis-ci/travis-api/downloads","issues_url":"https://api.github.com/repos/travis-ci/travis-api/issues{/number}","pulls_url":"https://api.github.com/repos/travis-ci/travis-api/pulls{/number}","milestones_url":"https://api.github.com/repos/travis-ci/travis-api/milestones{/number}","notifications_url":"https://api.github.com/repos/travis-ci/travis-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/travis-ci/travis-api/labels{/name}","releases_url":"https://api.github.com/repos/travis-ci/travis-api/releases{/id}","deployments_url":"https://api.github.com/repos/travis-ci/travis-api/deployments","created_at":"2012-07-18T12:55:46Z","updated_at":"2018-02-21T12:43:09Z","pushed_at":"2018-02-21T16:01:35Z","git_url":"git://github.com/travis-ci/travis-api.git","ssh_url":"git@github.com:travis-ci/travis-api.git","clone_url":"https://github.com/travis-ci/travis-api.git","svn_url":"https://github.com/travis-ci/travis-api","homepage":"https://api.travis-ci.org","size":6880,"stargazers_count":201,"watchers_count":201,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":115,"mirror_url":null,"archived":false,"open_issues_count":34,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":115,"open_issues":34,"watchers":201,"default_branch":"master"}},"base":{"label":"travis-ci:master","ref":"master","sha":"ad876d0d8d646fe6f205427156168a2c97929e38","user":{"login":"travis-ci","id":639823,"avatar_url":"https://avatars2.githubusercontent.com/u/639823?v=4","gravatar_id":"","url":"https://api.github.com/users/travis-ci","html_url":"https://github.com/travis-ci","followers_url":"https://api.github.com/users/travis-ci/followers","following_url":"https://api.github.com/users/travis-ci/following{/other_user}","gists_url":"https://api.github.com/users/travis-ci/gists{/gist_id}","starred_url":"https://api.github.com/users/travis-ci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/travis-ci/subscriptions","organizations_url":"https://api.github.com/users/travis-ci/orgs","repos_url":"https://api.github.com/users/travis-ci/repos","events_url":"https://api.github.com/users/travis-ci/events{/privacy}","received_events_url":"https://api.github.com/users/travis-ci/received_events","type":"Organization","site_admin":false},"repo":{"id":5096124,"name":"travis-api","full_name":"travis-ci/travis-api","owner":{"login":"travis-ci","id":639823,"avatar_url":"https://avatars2.githubusercontent.com/u/639823?v=4","gravatar_id":"","url":"https://api.github.com/users/travis-ci","html_url":"https://github.com/travis-ci","followers_url":"https://api.github.com/users/travis-ci/followers","following_url":"https://api.github.com/users/travis-ci/following{/other_user}","gists_url":"https://api.github.com/users/travis-ci/gists{/gist_id}","starred_url":"https://api.github.com/users/travis-ci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/travis-ci/subscriptions","organizations_url":"https://api.github.com/users/travis-ci/orgs","repos_url":"https://api.github.com/users/travis-ci/repos","events_url":"https://api.github.com/users/travis-ci/events{/privacy}","received_events_url":"https://api.github.com/users/travis-ci/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/travis-ci/travis-api","description":"The public Travis API","fork":false,"url":"https://api.github.com/repos/travis-ci/travis-api","forks_url":"https://api.github.com/repos/travis-ci/travis-api/forks","keys_url":"https://api.github.com/repos/travis-ci/travis-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/travis-ci/travis-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/travis-ci/travis-api/teams","hooks_url":"https://api.github.com/repos/travis-ci/travis-api/hooks","issue_events_url":"https://api.github.com/repos/travis-ci/travis-api/issues/events{/number}","events_url":"https://api.github.com/repos/travis-ci/travis-api/events","assignees_url":"https://api.github.com/repos/travis-ci/travis-api/assignees{/user}","branches_url":"https://api.github.com/repos/travis-ci/travis-api/branches{/branch}","tags_url":"https://api.github.com/repos/travis-ci/travis-api/tags","blobs_url":"https://api.github.com/repos/travis-ci/travis-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/travis-ci/travis-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/travis-ci/travis-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/travis-ci/travis-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/travis-ci/travis-api/statuses/{sha}","languages_url":"https://api.github.com/repos/travis-ci/travis-api/languages","stargazers_url":"https://api.github.com/repos/travis-ci/travis-api/stargazers","contributors_url":"https://api.github.com/repos/travis-ci/travis-api/contributors","subscribers_url":"https://api.github.com/repos/travis-ci/travis-api/subscribers","subscription_url":"https://api.github.com/repos/travis-ci/travis-api/subscription","commits_url":"https://api.github.com/repos/travis-ci/travis-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/travis-ci/travis-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/travis-ci/travis-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/travis-ci/travis-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/travis-ci/travis-api/contents/{+path}","compare_url":"https://api.github.com/repos/travis-ci/travis-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/travis-ci/travis-api/merges","archive_url":"https://api.github.com/repos/travis-ci/travis-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/travis-ci/travis-api/downloads","issues_url":"https://api.github.com/repos/travis-ci/travis-api/issues{/number}","pulls_url":"https://api.github.com/repos/travis-ci/travis-api/pulls{/number}","milestones_url":"https://api.github.com/repos/travis-ci/travis-api/milestones{/number}","notifications_url":"https://api.github.com/repos/travis-ci/travis-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/travis-ci/travis-api/labels{/name}","releases_url":"https://api.github.com/repos/travis-ci/travis-api/releases{/id}","deployments_url":"https://api.github.com/repos/travis-ci/travis-api/deployments","created_at":"2012-07-18T12:55:46Z","updated_at":"2018-02-21T12:43:09Z","pushed_at":"2018-02-21T16:01:35Z","git_url":"git://github.com/travis-ci/travis-api.git","ssh_url":"git@github.com:travis-ci/travis-api.git","clone_url":"https://github.com/travis-ci/travis-api.git","svn_url":"https://github.com/travis-ci/travis-api","homepage":"https://api.travis-ci.org","size":6880,"stargazers_count":201,"watchers_count":201,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":115,"mirror_url":null,"archived":false,"open_issues_count":34,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":115,"open_issues":34,"watchers":201,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/travis-ci/travis-api/pulls/654"},"html":{"href":"https://github.com/travis-ci/travis-api/pull/654"},"issue":{"href":"https://api.github.com/repos/travis-ci/travis-api/issues/654"},"comments":{"href":"https://api.github.com/repos/travis-ci/travis-api/issues/654/comments"},"review_comments":{"href":"https://api.github.com/repos/travis-ci/travis-api/pulls/654/comments"},"review_comment":{"href":"https://api.github.com/repos/travis-ci/travis-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/travis-ci/travis-api/pulls/654/commits"},"statuses":{"href":"https://api.github.com/repos/travis-ci/travis-api/statuses/7a9ba34d8fe88c7980021b6d5c97d1a0fef5b968"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"svenfuchs"}}