Open sponte opened 3 years ago
I have the same problem
Any chance this issue get's fixed?
Any updates on this issue ? It's been open for a long time, we need this feature on our repos.
👋 Hey Friends, this issue has been automatically marked as stale
because it has no recent activity. It will be closed if no further activity occurs. Please add the Status: Pinned
label if you feel that this issue needs to remain open/active. Thank you for your contributions and help in keeping things tidy!
Hello, this remains an issue and so should remain open/active. Can someone with rights please pin it? Thanks!
@kfcampbell Any information on when a fix for this might be prioritized? I'm regularly getting users at my org bumping their heads on this and it makes this provider pretty frustrating to use for all parties involved. 😅
@highb unfortunately GitHub's SDK team does not have the capacity to do our own feature work on the provider right now. PRs are appreciated though!
Terraform version
v0.14.8
Affected Resource(s)
Terraform Configuration Files
Debug Output
Expected Behavior
Provider should figure out that pages is not enabled in the repo, and use POST request instead of PUT (https://github.com/integrations/terraform-provider-github/blob/master/github/resource_github_repository.go#L520)
Actual Behavior
When running on already provisioned repository, Terraform will call updated method, and inside of of update, code checks for changes in the
pages
configuration, and checks if the resources is not new. If check passes, it tries to update pages configuration. However, the change in thepages
config was caused by addingpages
block in the first place, therefore the action should bePOST
, notPUT
.Excerpt from
resourceGithubRepositoryUpdate
function in https://github.com/integrations/terraform-provider-github/blob/master/github/resource_github_repository.go#L520Steps to Reproduce
github_repository
without pages block and applypages
block and apply again