Skip to content

Commit

Permalink
Re-add review request delegation.
Browse files Browse the repository at this point in the history
I didn't see it was used for the playground repo.
  • Loading branch information
tim-schilling committed Jul 24, 2024
1 parent 1d0af1e commit bd3f0ad
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -255,9 +255,19 @@ resource "github_team_repository" "parents" {

# GitHub Team Settings Resource
# https://registry.terraform.io/providers/integrations/github/latest/docs/resources/team_settings
#
# This can be used to enable automatic PR review requests
# GitHub docs: https://docs.github.com/en/organizations/organizing-members-into-teams/managing-code-review-settings-for-your-team#configuring-auto-assignment

# This is used to enable automatic PR review requests
resource "github_team_settings" "this" {
for_each = local.review_request_delegations

review_request_delegation {
algorithm = "LOAD_BALANCE"
member_count = 2
notify = false
}

team_id = github_team.parents[each.key].id
}

# Random Password Resource
# https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/password
Expand Down

0 comments on commit bd3f0ad

Please sign in to comment.