Skip to content

Commit

Permalink
Merge pull request #96 from sprankhub/fix-push-allowances
Browse files Browse the repository at this point in the history
Use team IDs instead of names, #91
  • Loading branch information
mage-os-ci committed Sep 16, 2024
2 parents fd11ff5 + 3a752ff commit f530021
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 f530021

Please sign in to comment.