Project 'openstack/openstack' is excluded from analysis

That project has all core projects as sub-modules. As result commits
are assigned incorrectly and all emails are assigned to 'openstack/openstack'.

The change introduces parameter 'exclude' for project source.

Resolves bug 1246785

Change-Id: I35a004382b187e4322e65f898177f91deced1dac
This commit is contained in:
Ilya Shakhat 2013-10-31 20:29:51 +04:00
parent 9f27d1c265
commit bce1cc2d4f
3 changed files with 11 additions and 2 deletions

View File

@ -5339,7 +5339,8 @@
{
"organization": "openstack",
"project_type": "openstack",
"project_group": "other"
"project_group": "other",
"exclude": ["openstack"]
},
{
"organization": "openstack-dev",

View File

@ -143,6 +143,12 @@
},
"project_group": {
"type": ["string", "null"]
},
"exclude": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": ["organization", "project_type"],

View File

@ -62,11 +62,13 @@ def _retrieve_project_list(default_data):
LOG.warn('Fail to retrieve list of projects. Keep it unmodified')
return False
exclude = set(project_source.get('exclude', []))
for repo in repos:
repo_uri = repo.git_url
repo_name = repo.name
if repo_uri not in repo_index:
if (repo_uri not in repo_index) and (repo_name not in exclude):
r = {
'branches': ['master'],
'module': repo_name,