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

[FEAT]: github_repository_webhook owner attribute

Open avidspartan1 opened this issue 1 year ago • 2 comments

Describe the need

I work with a GitHub Enterprise instance, using a single token, and would like to create many webhooks across several different Organizations. The list of organiziations can change based on deployment of the Terraform module, so using provider aliases isn't an option (or, at best, incredibly messy).

If there was an optional owner attribute available for the github_repository_webhook resource, I could do this easily. As it stands, I have to use the hacky workaround mentioned in #1436, which seems to lead to state inconsistency.

SDK Version

No response

API Version

No response

Relevant log output

No response

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

avidspartan1 avatar Feb 05 '24 20:02 avidspartan1

I've got a similar issue but with the github_app_installation_repository resource. Would be helpful to be able to specify an alternate owner in this case as well.

mblum14 avatar Feb 22 '24 16:02 mblum14

We need to do a better job of this across all resources. I've started #1655 to track a more comprehensive effort there.

kfcampbell avatar Mar 04 '24 17:03 kfcampbell