elections/tools: Update ignored repos

We're currently considering as part of the electorate all the repos but
kata-containers/qemu and kata-containers/linux.  However, the list
should also include:
* govmm
  * Archived as it's been imported into the kata-containers repo
* osbuilder, runtime, shim, packaging, ksm-throttler, documentation,
  agent
  * Archived as they've been out of support for a very long time now
* slash-command-action, is-organization-member, resolve-pr-refs,
  project-infra
  * Those are fork from different repos and, as QEMU and Linux, the
    maintainers of those projects are not directly contributing to Kata
    Containers and shouldn't be counted as part of the electorate.

Fixes: #309

Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
Fabiano Fidêncio
2022-11-21 21:08:30 +01:00
parent 28ae43948d
commit 13e29727e3

View File

@@ -80,12 +80,28 @@ end_time = datetime.datetime(2018, 8, 1, 0, 0, 0, tzinfo=pytz.UTC)
# All commits
number = -1
projects = []
ignored_repos = [
'qemu',
'linux',
'project-infra',
'govmm',
'resolve-pr-refs',
'is-organization-member',
'osbuilder',
'runtime',
'shim',
'packaging',
'ksm-throttler',
'documentation',
'agent',
'slash-command-action',
]
author_cache = {}
for repo in org.repositories():
# Skip these repos as they are not a core part of the project, and are
# forked/imported so contain many contributors from outside the project.
if str(repo) in ['kata-containers/linux', 'kata-containers/qemu']:
if str(repo).split("/")[1] in ignored_repos:
print('Skipping repo %s' % (repo))
continue
print('Looking for changes in %s between %s and %s' %