Skip to content
Snippets Groups Projects
Commit ffb33b64 authored by Philip Freeman's avatar Philip Freeman
Browse files

fix finding org repos for backup

fixes#11

The endpoint for organizations we're hitting is only for public membership. Instead use endpoint that returns all organization membership for the authenticated user.

See: https://developer.github.com/v3/orgs/
parent b34ddcf2
Branches
No related tags found
No related merge requests found
......@@ -358,7 +358,7 @@ class RepoUpdater(object):
print "User:", get_color_str(self.args.username, Color.GREEN)
user_data = self.get_user_data()
repos, excluded_repos = self.get_repos(user_data.repos_url, user_data.organizations_url)
repos, excluded_repos = self.get_repos(user_data.repos_url, "{}/user/orgs".format(GITHUB_API_HOST))
repos = self.filter_repo_names(repos, excluded_repos)
for repo in repos:
print get_color_str('{:-^60}'.format(repo.name), Color.YELLOW)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment