-
Notifications
You must be signed in to change notification settings - Fork 112
New branch protection syntax #18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
de24e53 to
cfb0ea2
Compare
mariux
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
mariux
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no wait...
main.tf
Outdated
| team_admin = [for i in var.admin_team_ids : { | ||
| team_id = i, | ||
| permission = "admin" | ||
| }] | ||
| team_push = [for i in var.push_team_ids : { | ||
| team_id = i, | ||
| permission = "push" | ||
| }] | ||
| team_pull = [for i in var.pull_team_ids : { | ||
| team_id = i, | ||
| permission = "pull" | ||
| }] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think it was more readable before... but just an opinion ;)
main.tf
Outdated
| users = lookup(local.branch_protection_rules[count.index].restrictions, "users", []) | ||
| teams = lookup(local.branch_protection_rules[count.index].restrictions, "teams", []) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is default here empty array or null?
mariux
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgmt... unsure about defaults in blocks when everything is empty... but let's see it fail and fix...
mariux
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doch nicht...
|
closing in favor of #19 |
This is a draft to remove the list from branch_protections and to work with objects only.