{"action":"created","comment":{"url":"https://api.github.com/repos/travis-ci/travis-github-sync/pulls/comments/29598166","id":29598166,"diff_hunk":"@@ -34,35 +42,40 @@ def run\n \n           private\n \n-          def sync(repo)\n-            Repository.new(user, repo).run","path":"lib/travis/github_sync/services/sync/repositories.rb","position":47,"original_position":47,"commit_id":"d690d983a7b5a355cd2d20064530030c4741f670","original_commit_id":"d690d983a7b5a355cd2d20064530030c4741f670","user":{"login":"meatballhat","id":45143,"avatar_url":"https://avatars.githubusercontent.com/u/45143?v=3","gravatar_id":"","url":"https://api.github.com/users/meatballhat","html_url":"https://github.com/meatballhat","followers_url":"https://api.github.com/users/meatballhat/followers","following_url":"https://api.github.com/users/meatballhat/following{/other_user}","gists_url":"https://api.github.com/users/meatballhat/gists{/gist_id}","starred_url":"https://api.github.com/users/meatballhat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meatballhat/subscriptions","organizations_url":"https://api.github.com/users/meatballhat/orgs","repos_url":"https://api.github.com/users/meatballhat/repos","events_url":"https://api.github.com/users/meatballhat/events{/privacy}","received_events_url":"https://api.github.com/users/meatballhat/received_events","type":"User","site_admin":false},"body":"Here's where all of the `Repository` objects were being created before.","created_at":"2015-05-04T16:19:33Z","updated_at":"2015-05-04T16:19:33Z","html_url":"https://github.com/travis-ci/travis-github-sync/pull/3#discussion_r29598166","pull_request_url":"https://api.github.com/repos/travis-ci/travis-github-sync/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/travis-ci/travis-github-sync/pulls/comments/29598166"},"html":{"href":"https://github.com/travis-ci/travis-github-sync/pull/3#discussion_r29598166"},"pull_request":{"href":"https://api.github.com/repos/travis-ci/travis-github-sync/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/travis-ci/travis-github-sync/pulls/3","id":34651055,"html_url":"https://github.com/travis-ci/travis-github-sync/pull/3","diff_url":"https://github.com/travis-ci/travis-github-sync/pull/3.diff","patch_url":"https://github.com/travis-ci/travis-github-sync/pull/3.patch","issue_url":"https://api.github.com/repos/travis-ci/travis-github-sync/issues/3","number":3,"state":"open","locked":false,"title":"Sync repositories in batches","user":{"login":"meatballhat","id":45143,"avatar_url":"https://avatars.githubusercontent.com/u/45143?v=3","gravatar_id":"","url":"https://api.github.com/users/meatballhat","html_url":"https://github.com/meatballhat","followers_url":"https://api.github.com/users/meatballhat/followers","following_url":"https://api.github.com/users/meatballhat/following{/other_user}","gists_url":"https://api.github.com/users/meatballhat/gists{/gist_id}","starred_url":"https://api.github.com/users/meatballhat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meatballhat/subscriptions","organizations_url":"https://api.github.com/users/meatballhat/orgs","repos_url":"https://api.github.com/users/meatballhat/repos","events_url":"https://api.github.com/users/meatballhat/events{/privacy}","received_events_url":"https://api.github.com/users/meatballhat/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-04T16:18:06Z","updated_at":"2015-05-04T16:19:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"653b554cf7e00919fbce0d51d9a2096ea3d8d668","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/travis-ci/travis-github-sync/pulls/3/commits","review_comments_url":"https://api.github.com/repos/travis-ci/travis-github-sync/pulls/3/comments","review_comment_url":"https://api.github.com/repos/travis-ci/travis-github-sync/pulls/comments{/number}","comments_url":"https://api.github.com/repos/travis-ci/travis-github-sync/issues/3/comments","statuses_url":"https://api.github.com/repos/travis-ci/travis-github-sync/statuses/d690d983a7b5a355cd2d20064530030c4741f670","head":{"label":"travis-ci:db-repo-batches","ref":"db-repo-batches","sha":"d690d983a7b5a355cd2d20064530030c4741f670","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":31744378,"name":"travis-github-sync","full_name":"travis-ci/travis-github-sync","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-github-sync","description":"Syncing with GitHub in 1,000 easy steps","fork":false,"url":"https://api.github.com/repos/travis-ci/travis-github-sync","forks_url":"https://api.github.com/repos/travis-ci/travis-github-sync/forks","keys_url":"https://api.github.com/repos/travis-ci/travis-github-sync/keys{/key_id}","collaborators_url":"https://api.github.com/repos/travis-ci/travis-github-sync/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/travis-ci/travis-github-sync/teams","hooks_url":"https://api.github.com/repos/travis-ci/travis-github-sync/hooks","issue_events_url":"https://api.github.com/repos/travis-ci/travis-github-sync/issues/events{/number}","events_url":"https://api.github.com/repos/travis-ci/travis-github-sync/events","assignees_url":"https://api.github.com/repos/travis-ci/travis-github-sync/assignees{/user}","branches_url":"https://api.github.com/repos/travis-ci/travis-github-sync/branches{/branch}","tags_url":"https://api.github.com/repos/travis-ci/travis-github-sync/tags","blobs_url":"https://api.github.com/repos/travis-ci/travis-github-sync/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/travis-ci/travis-github-sync/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/travis-ci/travis-github-sync/git/refs{/sha}","trees_url":"https://api.github.com/repos/travis-ci/travis-github-sync/git/trees{/sha}","statuses_url":"https://api.github.com/repos/travis-ci/travis-github-sync/statuses/{sha}","languages_url":"https://api.github.com/repos/travis-ci/travis-github-sync/languages","stargazers_url":"https://api.github.com/repos/travis-ci/travis-github-sync/stargazers","contributors_url":"https://api.github.com/repos/travis-ci/travis-github-sync/contributors","subscribers_url":"https://api.github.com/repos/travis-ci/travis-github-sync/subscribers","subscription_url":"https://api.github.com/repos/travis-ci/travis-github-sync/subscription","commits_url":"https://api.github.com/repos/travis-ci/travis-github-sync/commits{/sha}","git_commits_url":"https://api.github.com/repos/travis-ci/travis-github-sync/git/commits{/sha}","comments_url":"https://api.github.com/repos/travis-ci/travis-github-sync/comments{/number}","issue_comment_url":"https://api.github.com/repos/travis-ci/travis-github-sync/issues/comments{/number}","contents_url":"https://api.github.com/repos/travis-ci/travis-github-sync/contents/{+path}","compare_url":"https://api.github.com/repos/travis-ci/travis-github-sync/compare/{base}...{head}","merges_url":"https://api.github.com/repos/travis-ci/travis-github-sync/merges","archive_url":"https://api.github.com/repos/travis-ci/travis-github-sync/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/travis-ci/travis-github-sync/downloads","issues_url":"https://api.github.com/repos/travis-ci/travis-github-sync/issues{/number}","pulls_url":"https://api.github.com/repos/travis-ci/travis-github-sync/pulls{/number}","milestones_url":"https://api.github.com/repos/travis-ci/travis-github-sync/milestones{/number}","notifications_url":"https://api.github.com/repos/travis-ci/travis-github-sync/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/travis-ci/travis-github-sync/labels{/name}","releases_url":"https://api.github.com/repos/travis-ci/travis-github-sync/releases{/id}","created_at":"2015-03-06T00:28:29Z","updated_at":"2015-05-01T19:44:59Z","pushed_at":"2015-05-04T16:18:06Z","git_url":"git://github.com/travis-ci/travis-github-sync.git","ssh_url":"git@github.com:travis-ci/travis-github-sync.git","clone_url":"https://github.com/travis-ci/travis-github-sync.git","svn_url":"https://github.com/travis-ci/travis-github-sync","homepage":null,"size":736,"stargazers_count":5,"watchers_count":5,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":5,"default_branch":"master"}},"base":{"label":"travis-ci:master","ref":"master","sha":"5ef6e96b2c3cf1609bacab7f3822817717b3bd4b","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":31744378,"name":"travis-github-sync","full_name":"travis-ci/travis-github-sync","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-github-sync","description":"Syncing with GitHub in 1,000 easy steps","fork":false,"url":"https://api.github.com/repos/travis-ci/travis-github-sync","forks_url":"https://api.github.com/repos/travis-ci/travis-github-sync/forks","keys_url":"https://api.github.com/repos/travis-ci/travis-github-sync/keys{/key_id}","collaborators_url":"https://api.github.com/repos/travis-ci/travis-github-sync/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/travis-ci/travis-github-sync/teams","hooks_url":"https://api.github.com/repos/travis-ci/travis-github-sync/hooks","issue_events_url":"https://api.github.com/repos/travis-ci/travis-github-sync/issues/events{/number}","events_url":"https://api.github.com/repos/travis-ci/travis-github-sync/events","assignees_url":"https://api.github.com/repos/travis-ci/travis-github-sync/assignees{/user}","branches_url":"https://api.github.com/repos/travis-ci/travis-github-sync/branches{/branch}","tags_url":"https://api.github.com/repos/travis-ci/travis-github-sync/tags","blobs_url":"https://api.github.com/repos/travis-ci/travis-github-sync/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/travis-ci/travis-github-sync/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/travis-ci/travis-github-sync/git/refs{/sha}","trees_url":"https://api.github.com/repos/travis-ci/travis-github-sync/git/trees{/sha}","statuses_url":"https://api.github.com/repos/travis-ci/travis-github-sync/statuses/{sha}","languages_url":"https://api.github.com/repos/travis-ci/travis-github-sync/languages","stargazers_url":"https://api.github.com/repos/travis-ci/travis-github-sync/stargazers","contributors_url":"https://api.github.com/repos/travis-ci/travis-github-sync/contributors","subscribers_url":"https://api.github.com/repos/travis-ci/travis-github-sync/subscribers","subscription_url":"https://api.github.com/repos/travis-ci/travis-github-sync/subscription","commits_url":"https://api.github.com/repos/travis-ci/travis-github-sync/commits{/sha}","git_commits_url":"https://api.github.com/repos/travis-ci/travis-github-sync/git/commits{/sha}","comments_url":"https://api.github.com/repos/travis-ci/travis-github-sync/comments{/number}","issue_comment_url":"https://api.github.com/repos/travis-ci/travis-github-sync/issues/comments{/number}","contents_url":"https://api.github.com/repos/travis-ci/travis-github-sync/contents/{+path}","compare_url":"https://api.github.com/repos/travis-ci/travis-github-sync/compare/{base}...{head}","merges_url":"https://api.github.com/repos/travis-ci/travis-github-sync/merges","archive_url":"https://api.github.com/repos/travis-ci/travis-github-sync/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/travis-ci/travis-github-sync/downloads","issues_url":"https://api.github.com/repos/travis-ci/travis-github-sync/issues{/number}","pulls_url":"https://api.github.com/repos/travis-ci/travis-github-sync/pulls{/number}","milestones_url":"https://api.github.com/repos/travis-ci/travis-github-sync/milestones{/number}","notifications_url":"https://api.github.com/repos/travis-ci/travis-github-sync/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/travis-ci/travis-github-sync/labels{/name}","releases_url":"https://api.github.com/repos/travis-ci/travis-github-sync/releases{/id}","created_at":"2015-03-06T00:28:29Z","updated_at":"2015-05-01T19:44:59Z","pushed_at":"2015-05-04T16:18:06Z","git_url":"git://github.com/travis-ci/travis-github-sync.git","ssh_url":"git@github.com:travis-ci/travis-github-sync.git","clone_url":"https://github.com/travis-ci/travis-github-sync.git","svn_url":"https://github.com/travis-ci/travis-github-sync","homepage":null,"size":736,"stargazers_count":5,"watchers_count":5,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/travis-ci/travis-github-sync/pulls/3"},"html":{"href":"https://github.com/travis-ci/travis-github-sync/pull/3"},"issue":{"href":"https://api.github.com/repos/travis-ci/travis-github-sync/issues/3"},"comments":{"href":"https://api.github.com/repos/travis-ci/travis-github-sync/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/travis-ci/travis-github-sync/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/travis-ci/travis-github-sync/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/travis-ci/travis-github-sync/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/travis-ci/travis-github-sync/statuses/d690d983a7b5a355cd2d20064530030c4741f670"}}}}