You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we make the request using the method used by the terraform provider, we get an error:
2022-06-21T11:41:14.382+0200 [ERROR] vertex "github_repository.test" error: PUT https://api.github.com/repos/Scopevisio/TestRepo/pages: 422 Invalid request.
Invalid property /source: `main /docs` is not a possible value. Must be one of the following: gh-pages, master, master /docs. []
We can replicate this issue in CURL, but if we use the way provided in the GitHub API documentation it works flawlessly.
I am no expert in Go, but the corresponding source seems to be here:
Impacted resource: github_repository
If we want to change the publishing source for a github repository, the provider uses the following arguments:
The documentation of the Github API, however specify a different method to set the branch and path:
(https://docs.github.com/en/rest/pages#update-information-about-a-github-pages-site)
If we make the request using the method used by the terraform provider, we get an error:
We can replicate this issue in CURL, but if we use the way provided in the GitHub API documentation it works flawlessly.
I am no expert in Go, but the corresponding source seems to be here:
terraform-provider-github/github/resource_github_repository.go
Line 667 in ab903b6
The text was updated successfully, but these errors were encountered: