Ignore projects whose org we do not control.

In the manage_projects.py script ignore any project whose Github org we
do not control. Do not create a Github project, gerrit project, or
manage any ACLs.

Change-Id: I0d4595c49ffa7762976a433bf9b16fc6fcaf73e5
Reviewed-on: https://review.openstack.org/16102
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: Jeremy Stanley <fungi@yuggoth.org>
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Tested-by: Jenkins
This commit is contained in:
Clark Boylan 2012-11-14 09:21:39 -08:00 committed by Jenkins
parent 9e4702a3b4
commit 848fefd19a
2 changed files with 6 additions and 1 deletions

View File

@ -237,7 +237,11 @@ try:
has_issues = 'has-issues' in options or default_has_issues has_issues = 'has-issues' in options or default_has_issues
has_downloads = 'has-downloads' in options or default_has_downloads has_downloads = 'has-downloads' in options or default_has_downloads
has_wiki = 'has-wiki' in options or default_has_wiki has_wiki = 'has-wiki' in options or default_has_wiki
org = orgs_dict[project_split[0].lower()] try:
org = orgs_dict[project_split[0].lower()]
except KeyError:
# We do not have control of this github org ignore the project.
continue
try: try:
repo = org.get_repo(repo_name) repo = org.get_repo(repo_name)
except github.GithubException: except github.GithubException:

View File

@ -9,6 +9,7 @@
has-downloads: False has-downloads: False
--- ---
- project: gtest-org/gtest - project: gtest-org/gtest
- project: completely-bogus-org/test
- project: gtest-org/test - project: gtest-org/test
- project: gtest-org/test2 - project: gtest-org/test2
- project: gtest-org/test3 - project: gtest-org/test3