terraform-github-team icon indicating copy to clipboard operation
terraform-github-team copied to clipboard

Add support for managing team settings

Open bodgit opened this issue 1 year ago • 0 comments

There is a github_team_settings resource for (currently) controlling review request delegation. It is configured like so:

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
  }
}

I propose adding an additional module input, either something like:

module "some_team" {
   ...

  review_request_delegation = {
     ...
  }
}

or

module "some_team" {
  ...

  settings = {
    review_request_delegation = {
      ...
    }
  }
}

(should the github_team_settings resource gain more arguments)

The presence of this variable being non-null creates a github_team_settings resource. Happy to send a PR if you think that would be acceptable.

bodgit avatar Feb 23 '23 11:02 bodgit