{"action":"closed","number":36,"pull_request":{"url":"https://api.github.com/repos/travis-ci/travis-migrations/pulls/36","id":98962560,"html_url":"https://github.com/travis-ci/travis-migrations/pull/36","diff_url":"https://github.com/travis-ci/travis-migrations/pull/36.diff","patch_url":"https://github.com/travis-ci/travis-migrations/pull/36.patch","issue_url":"https://api.github.com/repos/travis-ci/travis-migrations/issues/36","number":36,"state":"closed","locked":false,"title":"add builds index repository id and number","user":{"login":"carlad","id":1754975,"avatar_url":"https://avatars.githubusercontent.com/u/1754975?v=3","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},"body":"this adds an index to address a problem with build histories taking a long time to load when a repo has many thousands of builds.\r\n\r\nI've run it locally and it adds the exact same index that was created on the .com production DB to test with:\r\n\r\n`\"index_builds_on_repository_id_and_number\" btree (repository_id, (number::integer))`","created_at":"2016-12-21T16:24:48Z","updated_at":"2016-12-22T09:37:14Z","closed_at":"2016-12-22T09:37:14Z","merged_at":"2016-12-22T09:37:14Z","merge_commit_sha":"b1ba79aebd9223d4c070b8218afffa354417d7d1","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/travis-ci/travis-migrations/pulls/36/commits","review_comments_url":"https://api.github.com/repos/travis-ci/travis-migrations/pulls/36/comments","review_comment_url":"https://api.github.com/repos/travis-ci/travis-migrations/pulls/comments{/number}","comments_url":"https://api.github.com/repos/travis-ci/travis-migrations/issues/36/comments","statuses_url":"https://api.github.com/repos/travis-ci/travis-migrations/statuses/7f1bef061e9b64e53ca5fc4d29aced203c739524","head":{"label":"travis-ci:cd-build-index","ref":"cd-build-index","sha":"7f1bef061e9b64e53ca5fc4d29aced203c739524","user":{"login":"travis-ci","id":639823,"avatar_url":"https://avatars.githubusercontent.com/u/639823?v=3","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":16173730,"name":"travis-migrations","full_name":"travis-ci/travis-migrations","owner":{"login":"travis-ci","id":639823,"avatar_url":"https://avatars.githubusercontent.com/u/639823?v=3","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-migrations","description":"Skeleton app to allow migrations to be run for our infrastructures","fork":false,"url":"https://api.github.com/repos/travis-ci/travis-migrations","forks_url":"https://api.github.com/repos/travis-ci/travis-migrations/forks","keys_url":"https://api.github.com/repos/travis-ci/travis-migrations/keys{/key_id}","collaborators_url":"https://api.github.com/repos/travis-ci/travis-migrations/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/travis-ci/travis-migrations/teams","hooks_url":"https://api.github.com/repos/travis-ci/travis-migrations/hooks","issue_events_url":"https://api.github.com/repos/travis-ci/travis-migrations/issues/events{/number}","events_url":"https://api.github.com/repos/travis-ci/travis-migrations/events","assignees_url":"https://api.github.com/repos/travis-ci/travis-migrations/assignees{/user}","branches_url":"https://api.github.com/repos/travis-ci/travis-migrations/branches{/branch}","tags_url":"https://api.github.com/repos/travis-ci/travis-migrations/tags","blobs_url":"https://api.github.com/repos/travis-ci/travis-migrations/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/travis-ci/travis-migrations/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/travis-ci/travis-migrations/git/refs{/sha}","trees_url":"https://api.github.com/repos/travis-ci/travis-migrations/git/trees{/sha}","statuses_url":"https://api.github.com/repos/travis-ci/travis-migrations/statuses/{sha}","languages_url":"https://api.github.com/repos/travis-ci/travis-migrations/languages","stargazers_url":"https://api.github.com/repos/travis-ci/travis-migrations/stargazers","contributors_url":"https://api.github.com/repos/travis-ci/travis-migrations/contributors","subscribers_url":"https://api.github.com/repos/travis-ci/travis-migrations/subscribers","subscription_url":"https://api.github.com/repos/travis-ci/travis-migrations/subscription","commits_url":"https://api.github.com/repos/travis-ci/travis-migrations/commits{/sha}","git_commits_url":"https://api.github.com/repos/travis-ci/travis-migrations/git/commits{/sha}","comments_url":"https://api.github.com/repos/travis-ci/travis-migrations/comments{/number}","issue_comment_url":"https://api.github.com/repos/travis-ci/travis-migrations/issues/comments{/number}","contents_url":"https://api.github.com/repos/travis-ci/travis-migrations/contents/{+path}","compare_url":"https://api.github.com/repos/travis-ci/travis-migrations/compare/{base}...{head}","merges_url":"https://api.github.com/repos/travis-ci/travis-migrations/merges","archive_url":"https://api.github.com/repos/travis-ci/travis-migrations/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/travis-ci/travis-migrations/downloads","issues_url":"https://api.github.com/repos/travis-ci/travis-migrations/issues{/number}","pulls_url":"https://api.github.com/repos/travis-ci/travis-migrations/pulls{/number}","milestones_url":"https://api.github.com/repos/travis-ci/travis-migrations/milestones{/number}","notifications_url":"https://api.github.com/repos/travis-ci/travis-migrations/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/travis-ci/travis-migrations/labels{/name}","releases_url":"https://api.github.com/repos/travis-ci/travis-migrations/releases{/id}","deployments_url":"https://api.github.com/repos/travis-ci/travis-migrations/deployments","created_at":"2014-01-23T13:52:43Z","updated_at":"2016-10-28T15:42:58Z","pushed_at":"2016-12-22T09:37:14Z","git_url":"git://github.com/travis-ci/travis-migrations.git","ssh_url":"git@github.com:travis-ci/travis-migrations.git","clone_url":"https://github.com/travis-ci/travis-migrations.git","svn_url":"https://github.com/travis-ci/travis-migrations","homepage":null,"size":221,"stargazers_count":6,"watchers_count":6,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":3,"forks":2,"open_issues":3,"watchers":6,"default_branch":"master"}},"base":{"label":"travis-ci:master","ref":"master","sha":"90d0a854cf9060ac21bb74217a4207a4c27c05a3","user":{"login":"travis-ci","id":639823,"avatar_url":"https://avatars.githubusercontent.com/u/639823?v=3","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":16173730,"name":"travis-migrations","full_name":"travis-ci/travis-migrations","owner":{"login":"travis-ci","id":639823,"avatar_url":"https://avatars.githubusercontent.com/u/639823?v=3","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-migrations","description":"Skeleton app to allow migrations to be run for our infrastructures","fork":false,"url":"https://api.github.com/repos/travis-ci/travis-migrations","forks_url":"https://api.github.com/repos/travis-ci/travis-migrations/forks","keys_url":"https://api.github.com/repos/travis-ci/travis-migrations/keys{/key_id}","collaborators_url":"https://api.github.com/repos/travis-ci/travis-migrations/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/travis-ci/travis-migrations/teams","hooks_url":"https://api.github.com/repos/travis-ci/travis-migrations/hooks","issue_events_url":"https://api.github.com/repos/travis-ci/travis-migrations/issues/events{/number}","events_url":"https://api.github.com/repos/travis-ci/travis-migrations/events","assignees_url":"https://api.github.com/repos/travis-ci/travis-migrations/assignees{/user}","branches_url":"https://api.github.com/repos/travis-ci/travis-migrations/branches{/branch}","tags_url":"https://api.github.com/repos/travis-ci/travis-migrations/tags","blobs_url":"https://api.github.com/repos/travis-ci/travis-migrations/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/travis-ci/travis-migrations/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/travis-ci/travis-migrations/git/refs{/sha}","trees_url":"https://api.github.com/repos/travis-ci/travis-migrations/git/trees{/sha}","statuses_url":"https://api.github.com/repos/travis-ci/travis-migrations/statuses/{sha}","languages_url":"https://api.github.com/repos/travis-ci/travis-migrations/languages","stargazers_url":"https://api.github.com/repos/travis-ci/travis-migrations/stargazers","contributors_url":"https://api.github.com/repos/travis-ci/travis-migrations/contributors","subscribers_url":"https://api.github.com/repos/travis-ci/travis-migrations/subscribers","subscription_url":"https://api.github.com/repos/travis-ci/travis-migrations/subscription","commits_url":"https://api.github.com/repos/travis-ci/travis-migrations/commits{/sha}","git_commits_url":"https://api.github.com/repos/travis-ci/travis-migrations/git/commits{/sha}","comments_url":"https://api.github.com/repos/travis-ci/travis-migrations/comments{/number}","issue_comment_url":"https://api.github.com/repos/travis-ci/travis-migrations/issues/comments{/number}","contents_url":"https://api.github.com/repos/travis-ci/travis-migrations/contents/{+path}","compare_url":"https://api.github.com/repos/travis-ci/travis-migrations/compare/{base}...{head}","merges_url":"https://api.github.com/repos/travis-ci/travis-migrations/merges","archive_url":"https://api.github.com/repos/travis-ci/travis-migrations/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/travis-ci/travis-migrations/downloads","issues_url":"https://api.github.com/repos/travis-ci/travis-migrations/issues{/number}","pulls_url":"https://api.github.com/repos/travis-ci/travis-migrations/pulls{/number}","milestones_url":"https://api.github.com/repos/travis-ci/travis-migrations/milestones{/number}","notifications_url":"https://api.github.com/repos/travis-ci/travis-migrations/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/travis-ci/travis-migrations/labels{/name}","releases_url":"https://api.github.com/repos/travis-ci/travis-migrations/releases{/id}","deployments_url":"https://api.github.com/repos/travis-ci/travis-migrations/deployments","created_at":"2014-01-23T13:52:43Z","updated_at":"2016-10-28T15:42:58Z","pushed_at":"2016-12-22T09:37:14Z","git_url":"git://github.com/travis-ci/travis-migrations.git","ssh_url":"git@github.com:travis-ci/travis-migrations.git","clone_url":"https://github.com/travis-ci/travis-migrations.git","svn_url":"https://github.com/travis-ci/travis-migrations","homepage":null,"size":221,"stargazers_count":6,"watchers_count":6,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":3,"forks":2,"open_issues":3,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/travis-ci/travis-migrations/pulls/36"},"html":{"href":"https://github.com/travis-ci/travis-migrations/pull/36"},"issue":{"href":"https://api.github.com/repos/travis-ci/travis-migrations/issues/36"},"comments":{"href":"https://api.github.com/repos/travis-ci/travis-migrations/issues/36/comments"},"review_comments":{"href":"https://api.github.com/repos/travis-ci/travis-migrations/pulls/36/comments"},"review_comment":{"href":"https://api.github.com/repos/travis-ci/travis-migrations/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/travis-ci/travis-migrations/pulls/36/commits"},"statuses":{"href":"https://api.github.com/repos/travis-ci/travis-migrations/statuses/7f1bef061e9b64e53ca5fc4d29aced203c739524"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"carlad","id":1754975,"avatar_url":"https://avatars.githubusercontent.com/u/1754975?v=3","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},"comments":0,"review_comments":0,"commits":1,"additions":20,"deletions":0,"changed_files":2}}
{"actor":{"display_login":"carlad"}}