From b54c6ab8eb68c4df1271f9a5dccd2ed6dbfbce21 Mon Sep 17 00:00:00 2001 From: Feanil Patel Date: Tue, 7 Jan 2025 12:07:29 -0500 Subject: [PATCH] feat: Add a check to ensure the committers-at-large team has access. This tema should have write access to all public repos. They can do any maintenance work in any public repo that is a part of the Open edX platform. --- edx_repo_tools/repo_checks/repo_checks.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/edx_repo_tools/repo_checks/repo_checks.py b/edx_repo_tools/repo_checks/repo_checks.py index 2ae04adc..8b87a81b 100644 --- a/edx_repo_tools/repo_checks/repo_checks.py +++ b/edx_repo_tools/repo_checks/repo_checks.py @@ -817,6 +817,22 @@ def is_relevant(self): return is_public(self.api, self.org_name, self.repo_name) +@Check.register +class MaintainersAtLargeTeam(TeamAccess): + """ + Ensure that the committers-maintainers-at-large team grants Push access to every public repo in the org. + """ + + def __init__(self, api, org, repo): + team = "committers-maintainers-at-large" + permission = "push" + super().__init__(api, org, repo, team, permission) + + def is_relevant(self): + # Need to be a public repo. + return is_public(self.api, self.org_name, self.repo_name) + + @Check.register class EnforceCLA(Check): """