Skip to content

Commit d826456

Browse files
authored
Merge pull request #363 from stackhpc/fix-smslab-branch-protection
fix: import missing `SMSLAB` branch protection rules
2 parents f569bf1 + 3218455 commit d826456

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

terraform/github/import_resources.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,10 @@ def main() -> None:
235235
branch_protection_resource = BranchProtection(team_id.name.lower(
236236
), {f"{name}:stackhpc/2024.1": name for name in team_repositories}, parsed_args.dry_run, "_caracal")
237237
branch_protection_resource.refresh_resource()
238+
elif team_id == TeamID.SMSLAB:
239+
branch_protection_resource = BranchProtection(team_id.name.lower(
240+
), {f"{name}:smslab/[y,z,2]*": name for name in team_repositories}, parsed_args.dry_run)
241+
branch_protection_resource.refresh_resource()
238242
else:
239243
branch_protection_resource = BranchProtection(team_id.name.lower(
240244
), {f"{name}:{default_branches[name]}": name for name in team_repositories}, parsed_args.dry_run)

0 commit comments

Comments
 (0)