Skip to content
Snippets Groups Projects
Commit 741eecc1 authored by Srdjan Grubor's avatar Srdjan Grubor
Browse files

Merge pull request #13 from freeman-endlessm/cleanup_fix_org_repos

move organization URL to Constant.
parents b0459481 f0a48d64
No related branches found
No related tags found
No related merge requests found
...@@ -26,6 +26,7 @@ GIT_FETCH_CMD = 'git fetch' ...@@ -26,6 +26,7 @@ GIT_FETCH_CMD = 'git fetch'
GIT_CHECK_REMOTE_CMD = 'git ls-remote' GIT_CHECK_REMOTE_CMD = 'git ls-remote'
USER_DETAILS_PATH = '/users/%s' USER_DETAILS_PATH = '/users/%s'
USER_ORG_DETAILS_PATH = '/user/orgs'
DEFAULT_TOKEN_FILE = os.path.expanduser('~/.config/ghtoken') DEFAULT_TOKEN_FILE = os.path.expanduser('~/.config/ghtoken')
...@@ -358,7 +359,7 @@ class RepoUpdater(object): ...@@ -358,7 +359,7 @@ class RepoUpdater(object):
print "User:", get_color_str(self.args.username, Color.GREEN) print "User:", get_color_str(self.args.username, Color.GREEN)
user_data = self.get_user_data() user_data = self.get_user_data()
repos, excluded_repos = self.get_repos(user_data.repos_url, "{}/user/orgs".format(GITHUB_API_HOST)) repos, excluded_repos = self.get_repos(user_data.repos_url, GITHUB_API_HOST + USER_ORG_DETAILS_PATH)
repos = self.filter_repo_names(repos, excluded_repos) repos = self.filter_repo_names(repos, excluded_repos)
for repo in repos: for repo in repos:
print get_color_str('{:-^60}'.format(repo.name), Color.YELLOW) 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