Skip to content

Conversation

@soerenmartius
Copy link
Member

This is a draft to remove the list from branch_protections and to work with objects only.

@soerenmartius soerenmartius requested a review from mariux as a code owner January 13, 2020 13:42
@soerenmartius soerenmartius force-pushed the new-branch-protection-syntax branch 2 times, most recently from de24e53 to cfb0ea2 Compare January 13, 2020 15:46
Copy link
Member

@mariux mariux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Member

@mariux mariux left a 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
Comment on lines 152 to 163
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"
}]
Copy link
Member

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
Comment on lines 94 to 95
users = lookup(local.branch_protection_rules[count.index].restrictions, "users", [])
teams = lookup(local.branch_protection_rules[count.index].restrictions, "teams", [])
Copy link
Member

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?

Copy link
Member

@mariux mariux left a 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...

Copy link
Member

@mariux mariux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doch nicht...

@mariux
Copy link
Member

mariux commented Jan 13, 2020

closing in favor of #19

@mariux mariux closed this Jan 13, 2020
@soerenmartius soerenmartius deleted the new-branch-protection-syntax branch January 27, 2020 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants