[BUG]: github_repository_environment
is unusable if the environment name contains /
#1389
Labels
Good first issue
Good for newcomers
Status: Up for grabs
Issues that are ready to be worked on by anyone
Type: Bug
Something isn't working as documented
Terraform Version
Affected Resource(s)
github_repository_environment
Terraform Configuration Files
Expected Behavior
Running
terraform apply
should create an environment namedcustomer/production
.Actual Behavior
terraform apply
fails with the following error message:Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
github_repository_environment
resource with a name that contains a front-slash (/
).terraform apply
Important Factoids
The problem is that the environment name needs to be URL encoded before we make the call:
terraform-provider-github/vendor/github.com/google/go-github/v48/github/repos_environments.go
Line 175 in 40f1500
A workaround is to change the environment name to
customer%2Fproduction
, but that should not be necessary.The text was updated successfully, but these errors were encountered: