def get_repos(org): repos = [] page = 1 while True: # Get repos on the current "page" r, ok = github_api.CallUsersAPI(org, "/repos", params={"page": page}) if len(r) == 0: # No more repos, we're done break repos += r page += 1 return repos
def get_repos(org): repos = [] page = 1 print("Listing repos under %s..." % org, file=sys.stderr) while True: # Get repos on the current "page" print(" %d..." % page, file=sys.stderr) r, ok = github_api.CallUsersAPI(org, TOKEN, "/repos", params={"page": page}) if len(r) == 0: # No more repos, we're done break repos += r page += 1 return repos