Skip to content

Commit

Permalink
feat: Add a check to ensure the committers-at-large team has access.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
feanil committed Jan 8, 2025
1 parent 5981772 commit b54c6ab
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions edx_repo_tools/repo_checks/repo_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down

0 comments on commit b54c6ab

Please sign in to comment.