Use cgit more in contributor listing

The change which just merged to incorporate recent retired
deliverables and removed projects in active contributor analysis was
written prior to the gitweb->cgit transition, so fix up that feature
to also use the new cgit-based function call.

Change-Id: Ifde87147399967c43f3e4c93de4347acd31e73cc
This commit is contained in:
Jeremy Stanley 2017-11-01 18:35:00 +00:00
parent ec0908b08c
commit d263d0ce45

View File

@ -340,13 +340,9 @@ def main(argv=sys.argv):
# are merged into the main dict if their retired-on date falls # are merged into the main dict if their retired-on date falls
# later than the after parameter for the qualifying time period # later than the after parameter for the qualifying time period
# TODO(fungi): make this a configurable option # TODO(fungi): make this a configurable option
old_projects = query_gerrit( old_projects = get_from_cgit('openstack/governance',
'gitweb', { 'reference/legacy.yaml',
'p': 'openstack/governance.git', {'h': ref})
'a': 'blob_plain',
'f': 'reference/legacy.yaml',
'hb': ref,
})
for project in old_projects: for project in old_projects:
for deliverable in old_projects[project]['deliverables']: for deliverable in old_projects[project]['deliverables']:
if 'retired-on' in old_projects[project]['deliverables'][deliverable]: if 'retired-on' in old_projects[project]['deliverables'][deliverable]: