From 13e29727e33dfd8dede26708d1c1b01ac59e5c56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Mon, 21 Nov 2022 21:08:30 +0100 Subject: [PATCH] elections/tools: Update ignored repos MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- elections/tools/generate_electorate.py | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/elections/tools/generate_electorate.py b/elections/tools/generate_electorate.py index 1471dbe53a..90ba49129b 100755 --- a/elections/tools/generate_electorate.py +++ b/elections/tools/generate_electorate.py @@ -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' %