-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix api preview header, missing : #1786
Conversation
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here with What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
@googlebot I signed it! |
considering all the failing CI, this doesn't seem to be the only place/thing I need to update but it is also making me second guess that this is the solution... but for me, this works:
This does not:
but it would mean these api previews are working for no one. |
I'm sorry, I don't understand why this change is necessary. This repo has been using custom preview headers for years now and they have been working well up to this point. Could you please explain what you saw that caused you to write this PR? Also, you should be able to run "go test ./..." locally to make sure the unit tests pass. |
Yeha, I agree.. Seems weird to me.
It was a long story to get to this point, but I feel there is some more to it. I started with using the terraform-provider-github and in the end I can not make internal repos using the provider. I have subsequently ended up here. I started replicating the provider commands with curl commands to ID what is going on. The beginings of my journey are here; integrations/terraform-provider-github#662 If it isn't the headers, then I am not sure to why when using TF this fails. GitHub support then pointed me to the concept of the API reviews and I noticed the string difference, using CURL the api call fails without a colon.
Ok |
Just a follow up; I tried this locally (found some time this morning): https://github.com/jurgenweber/go-github/blob/master/example/orgnewrepo/main.go this works, so the problem is else wehre. Thanks |
I found it; integrations/terraform-provider-github#680 |
so then the api previews actually work. :)