Permalink
Browse files

fetch 100 pages of "repos". we need a long-term fix, in case someone …

…...ever has over 100 repos.
  • Loading branch information...
stnbu committed Sep 8, 2018
1 parent 8273123 commit 09996b9befc2930e54d097bebbe60ae2a9e1a7e6
Showing with 3 additions and 1 deletion.
  1. +3 −1 gitbored/daemon/base.py
@@ -33,7 +33,9 @@ def __init__(self, dir_path, api_auth):
def update_repos(self):
updates = []
url = self.gapi.get_url('/users/{username}/repos'.format(username=self.gapi.username))
# FIXME TODO -- we need to figure out https://developer.github.com/v3/guides/traversing-with-pagination/
# here and elsewhere.
url = self.gapi.get_url('/users/{username}/repos'.format(username=self.gapi.username), query='per_page=100')
repos = self.gapi.get(url)
logger.debug('considering {} repos...'.format(len(repos)))
for repo in repos:

0 comments on commit 09996b9

Please sign in to comment.