Skip to content

Commit

Permalink
Merge pull request #363 from stackhpc/fix-smslab-branch-protection
Browse files Browse the repository at this point in the history
fix: import missing `SMSLAB` branch protection rules
  • Loading branch information
jackhodgkiss authored Jan 9, 2025
2 parents f569bf1 + 3218455 commit d826456
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions terraform/github/import_resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,10 @@ def main() -> None:
branch_protection_resource = BranchProtection(team_id.name.lower(
), {f"{name}:stackhpc/2024.1": name for name in team_repositories}, parsed_args.dry_run, "_caracal")
branch_protection_resource.refresh_resource()
elif team_id == TeamID.SMSLAB:
branch_protection_resource = BranchProtection(team_id.name.lower(
), {f"{name}:smslab/[y,z,2]*": name for name in team_repositories}, parsed_args.dry_run)
branch_protection_resource.refresh_resource()
else:
branch_protection_resource = BranchProtection(team_id.name.lower(
), {f"{name}:{default_branches[name]}": name for name in team_repositories}, parsed_args.dry_run)
Expand Down

0 comments on commit d826456

Please sign in to comment.