The github_branch_default resource references a repository resource via repositoryId.
Actual Behavior
The github_branch_default resource references a repository resource via repository (repository name).
A lot of other resources already do that correctly.
If a repository is re-named it causes replacement of the github_branch_default resource.
Especiallyin combination with rename=true an API call occurs which tries to rename the branch to the same branch name it already has. This results in an HTTP 422 error.
Terraform Version
Terraform v1.7.4 on linux_amd64 + provider registry.terraform.io/integrations/github v6.0.0
Affected Resource(s)
github_branch_default
Terraform Configuration Files
No response
Steps to Reproduce
No response
Debug Output
No response
Panic Output
No response
Code of Conduct
[X] I agree to follow this project's Code of Conduct
Expected Behavior
The
github_branch_default
resource references arepository
resource viarepositoryId
.Actual Behavior
The
github_branch_default
resource references arepository
resource viarepository
(repository name).A lot of other resources already do that correctly.
If a repository is re-named it causes replacement of the
github_branch_default
resource. Especiallyin combination withrename=true
an API call occurs which tries to rename the branch to the same branch name it already has. This results in anHTTP 422
error.Terraform Version
Terraform v1.7.4 on linux_amd64 + provider registry.terraform.io/integrations/github v6.0.0
Affected Resource(s)
github_branch_default
Terraform Configuration Files
No response
Steps to Reproduce
No response
Debug Output
No response
Panic Output
No response
Code of Conduct