Merge "Add extra-ATCs from sigs-repos into the electorate"
This commit is contained in:
@@ -237,12 +237,14 @@ def main(options):
|
|||||||
for sig in sigs_repos:
|
for sig in sigs_repos:
|
||||||
for repo in sigs_repos[sig]:
|
for repo in sigs_repos[sig]:
|
||||||
if 'sigs' not in gov_projects:
|
if 'sigs' not in gov_projects:
|
||||||
gov_projects['sigs'] = {'deliverables': {}}
|
gov_projects['sigs'] = {'deliverables': {}, 'extra-atcs': []}
|
||||||
if sig not in gov_projects['sigs']['deliverables']:
|
if sig not in gov_projects['sigs']['deliverables']:
|
||||||
gov_projects['sigs']['deliverables'][sig] = {'repos': []}
|
gov_projects['sigs']['deliverables'][sig] = {'repos': []}
|
||||||
for repo in sigs_repos[sig]:
|
|
||||||
gov_projects['sigs']['deliverables'][sig]['repos'].append(
|
gov_projects['sigs']['deliverables'][sig]['repos'].append(
|
||||||
repo['repo'])
|
repo['repo'])
|
||||||
|
extra_atcs = repo.get('extra-atcs', [])
|
||||||
|
if extra_atcs:
|
||||||
|
gov_projects['sigs']['extra-atcs'].extend(extra_atcs)
|
||||||
|
|
||||||
# A cache of full repo names existing in Gerrit, used to filter out repos
|
# A cache of full repo names existing in Gerrit, used to filter out repos
|
||||||
# listed in governance which don't actually exist
|
# listed in governance which don't actually exist
|
||||||
|
|||||||
Reference in New Issue
Block a user