Skip to content

Commit

Permalink
Switch to using the Liferay organization rather than the repo forks l…
Browse files Browse the repository at this point in the history
…ist, as the forks list is incomplete
  • Loading branch information
holatuwol committed Oct 3, 2012
1 parent 2454813 commit 5019256
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions git-pull-request/git-pull-request.py
Original file line number Diff line number Diff line change
Expand Up @@ -738,19 +738,18 @@ def command_update(repo_name, target = None):
display_status()

def command_update_users(filename):
url = get_api_url("repos/%s/forks" % get_repo_name_for_remote("upstream"))
url = get_api_url("orgs/liferay/members")

forks = github_json_request(url)

github_users = {}

if len(forks) > 20:
print "There are more than 20 users, this could take a few minutes..."
print "There are %s users, this could take a few minutes..." % len(forks)

user_api_url = get_api_url("users")

for fork in forks:
login = fork['owner']['login']
login = fork['login']
github_user_info = github_json_request("%s/%s" % (user_api_url, login), authenticate=False)
email = login

Expand Down

0 comments on commit 5019256

Please sign in to comment.