Skip to content

Commit

Permalink
Use team IDs instead of names, mage-os#91
Browse files Browse the repository at this point in the history
  • Loading branch information
sprankhub committed Sep 16, 2024
1 parent fd11ff5 commit 3a752ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ resource "github_branch_protection" "repositories" {
}

restrict_pushes {
push_allowances = try(each.value.is_part_of_monorepo, false) ? [data.github_user.mage-os-ci.node_id] : each.value.teams
push_allowances = try(each.value.is_part_of_monorepo, false) ? [data.github_user.mage-os-ci.node_id] : [for team in each.value.teams : github_team.teams[team].node_id]
}
}

Expand Down

0 comments on commit 3a752ff

Please sign in to comment.