github_team_settings

This resource manages the team settings (in particular the request review delegation settings) within the organization

Creating this resource will alter the team Code Review settings.

The team must both belong to the same organization configured in the provider on GitHub.

Example Usage

# Add a repository to the team
resource "github_team" "some_team" {
  name        = "SomeTeam"
  description = "Some cool team"
}

resource "github_team_settings" "code_review_settings" {
  team_id    = github_team.some_team.id
  review_request_delegation {
      algorithm = "ROUND_ROBIN"
      member_count = 1
      notify = true
  }
}

Argument Reference

The following arguments are supported:

GitHub Review Request Delegation Configuration

The following arguments are supported:

Import

GitHub Teams can be imported using the GitHub team ID, or the team slug e.g.

$ terraform import github_team.code_review_settings 1234567

or,

$ terraform import github_team_settings.code_review_settings SomeTeam