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.
# 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
}
}
The following arguments are supported:
team_id
- (Required) The GitHub team id or the GitHub team slugreview_request_delegation
- (Optional) The settings for delegating code reviews to individuals on behalf of the team. If this block is present, even without any fields, then review request delegation will be enabled for the team. See GitHub Review Request Delegation below for details. See GitHub's documentation for more configuration details.The following arguments are supported:
algorithm
- (Optional) The algorithm to use when assigning pull requests to team members. Supported values are ROUND_ROBIN
and LOAD_BALANCE
. Default value is ROUND_ROBIN
member_count
- (Optional) The number of team members to assign to a pull requestnotify
- (Optional) whether to notify the entire team when at least one member is also assigned to the pull requestGitHub 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