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:
parent
9f27d1c265
commit
bce1cc2d4f
@ -5339,7 +5339,8 @@
|
|||||||
{
|
{
|
||||||
"organization": "openstack",
|
"organization": "openstack",
|
||||||
"project_type": "openstack",
|
"project_type": "openstack",
|
||||||
"project_group": "other"
|
"project_group": "other",
|
||||||
|
"exclude": ["openstack"]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"organization": "openstack-dev",
|
"organization": "openstack-dev",
|
||||||
|
@ -143,6 +143,12 @@
|
|||||||
},
|
},
|
||||||
"project_group": {
|
"project_group": {
|
||||||
"type": ["string", "null"]
|
"type": ["string", "null"]
|
||||||
|
},
|
||||||
|
"exclude": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": ["organization", "project_type"],
|
"required": ["organization", "project_type"],
|
||||||
|
@ -62,11 +62,13 @@ def _retrieve_project_list(default_data):
|
|||||||
LOG.warn('Fail to retrieve list of projects. Keep it unmodified')
|
LOG.warn('Fail to retrieve list of projects. Keep it unmodified')
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
exclude = set(project_source.get('exclude', []))
|
||||||
|
|
||||||
for repo in repos:
|
for repo in repos:
|
||||||
repo_uri = repo.git_url
|
repo_uri = repo.git_url
|
||||||
repo_name = repo.name
|
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 = {
|
r = {
|
||||||
'branches': ['master'],
|
'branches': ['master'],
|
||||||
'module': repo_name,
|
'module': repo_name,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user