integrations / terraform-provider-github

Terraform GitHub provider
https://www.terraform.io/docs/providers/github/
MIT License
888 stars 729 forks source link

[FEAT]: github_repository_topics should use owner from repository full name "owner/repo" #2099

Open A-deLuna opened 8 months ago

A-deLuna commented 8 months ago

Describe the need

The github_repository_topics resource does not allow the "full name" repository format owner/repo_name. I need to create different provider aliases to manage topics across different repo owners.

Terraform providers can't be instantiated in a loop. Making it necessary to have a large number of duplicate providers and resource definitions to allow managing repo topics across different owners.

Thegithub_repository_collaborator allows the repository argument be in the format of owner/repo_name and will use the owner form the repo name if specified, otherwise falls back to the provider owner. github_repository_topics could behave in the same way to be consistent.

SDK Version

No response

API Version

No response

Relevant log output

No response

Code of Conduct

nickfloyd commented 8 months ago

Hey @A-deLuna thanks for letting us know about this need! ❤️ Let us know if you'd be interested coming up with a way to address it and then submitting a PR to be reviewed. For now I have labeled this as "Up For Grabs" so that the community knows that it's available as well.