Skip to content

Commit b190ea9

Browse files
committed
Update SMS branch protection match pattern
1 parent 82c0485 commit b190ea9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

terraform/github/branches.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ resource "github_branch_protection" "smslab_branch_protection" {
626626
for_each = toset(var.repositories["SMSLab"])
627627
repository_id = data.github_repository.repositories[each.key].node_id
628628

629-
pattern = "smslab/[y,z,2]*"
629+
pattern = "smslab/202[0-9].[1-2]"
630630
require_conversation_resolution = true
631631
allows_deletions = false
632632
allows_force_pushes = false

terraform/github/import_resources.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ def main() -> None:
244244
branch_protection_resource.refresh_resource()
245245
elif team_id == TeamID.SMSLAB:
246246
branch_protection_resource = BranchProtection(team_id.name.lower(
247-
), {f"{name}:smslab/[y,z,2]*": name for name in team_repositories}, parsed_args.dry_run)
247+
), {f"{name}:smslab/202[0-9].[1-2]": name for name in team_repositories}, parsed_args.dry_run)
248248
branch_protection_resource.refresh_resource()
249249
else:
250250
branch_protection_resource = BranchProtection(team_id.name.lower(

0 commit comments

Comments
 (0)