Clone the specified user's starred repos, not the authenticated user

This commit is contained in:
W. Harrison Wright
2018-09-28 21:46:28 -05:00
parent 0de341eab4
commit 5a8e1ac275

View File

@@ -530,7 +530,7 @@ def retrieve_repositories(args):
repos = retrieve_data(args, template, single_request=single_request) repos = retrieve_data(args, template, single_request=single_request)
if args.all_starred: if args.all_starred:
starred_template = 'https://{0}/user/starred'.format(get_github_api_host(args)) starred_template = 'https://{0}/users/{1}/starred'.format(get_github_api_host(args), args.user)
starred_repos = retrieve_data(args, starred_template, single_request=False) starred_repos = retrieve_data(args, starred_template, single_request=False)
# flag each repo as starred for downstream processing # flag each repo as starred for downstream processing
for item in starred_repos: for item in starred_repos: