Skip to content

Commit

Permalink
chore: skip archived repos for policy checks of required files
Browse files Browse the repository at this point in the history
  • Loading branch information
netomi committed Oct 29, 2024
1 parent a80aa5c commit 692c64c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion otterdog/webapp/policies/required_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ async def evaluate(self, github_id: str) -> None:
github_organization = GitHubOrganization.from_model_data(config_data.config)
for repo in github_organization.repositories:
for required_file in self.files:
if required_file.repo_selector.matches(repo):
if repo.archived is False and required_file.repo_selector.matches(repo):
logger.debug(f"checking for required file '{required_file.path}' in repo '{github_id}/{repo.name}'")

title = f"Adding required file {required_file.path}"
Expand Down

0 comments on commit 692c64c

Please sign in to comment.