Merge pull request #2894 from coreos-inc/github-trigger-orgs
Fix bug in Github trigger set up flow
This commit is contained in:
commit
333cb9da26
1 changed files with 4 additions and 3 deletions
|
@ -292,10 +292,11 @@ class GithubBuildTrigger(BuildTriggerHandler):
|
||||||
}
|
}
|
||||||
|
|
||||||
for org in usr.get_orgs():
|
for org in usr.get_orgs():
|
||||||
namespaces[org.name] = {
|
organization = org.login if org.login else org.name
|
||||||
|
namespaces[organization] = {
|
||||||
'personal': False,
|
'personal': False,
|
||||||
'id': org.login,
|
'id': organization,
|
||||||
'title': org.name or org.login,
|
'title': organization,
|
||||||
'avatar_url': org.avatar_url,
|
'avatar_url': org.avatar_url,
|
||||||
'url': org.html_url,
|
'url': org.html_url,
|
||||||
'score': org.plan.private_repos if org.plan else 0,
|
'score': org.plan.private_repos if org.plan else 0,
|
||||||
|
|
Reference in a new issue