Lerentis / terraform-provider-gitea

Terraform Provider for your Gitea Instance
https://registry.terraform.io/providers/Lerentis/gitea/latest
MIT License
22 stars 11 forks source link

Add `repositories` attribute to `gitea_team` resource #36

Closed yamadayutaka closed 1 year ago

yamadayutaka commented 1 year ago

Is your feature request related to a problem? Please describe.

Missing attribute to specify repositories when creating team with include_all_repositories = false.

Describe the solution you'd like

I want an attribute that specifies the target repository as follows.

resource "gitea_team" "test_team_restricted" {
  name                     = "Restricted Devs"
  organisation             = gitea_org.test_org.name
  description              = "Restricted Devs of Test Org"
  permission               = "write"
  members                  = [gitea_user.test.username]
  include_all_repositories = false
  repositories             = [gitea_repository.test.name]
}

Describe alternatives you've considered

None.

Additional context

I will create a pull request for this issue.

Lerentis commented 1 year ago

Released as v0.13.0 . Thanks again for raising this and implementing this feature at the same time 💯