Skip to content
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

Support uppercase environment variable names #2

Closed
wants to merge 6 commits into from

Conversation

klutchell
Copy link
Collaborator

@klutchell klutchell commented Sep 5, 2024

Github REST API supports case-sensitive names on this endpoint
so we should always create (POST) variables with the desired case.

On subsequent GET, PATCH, and DELETE requests the Github REST API
will use loose matching to find any existing objects, ignoring case.

So in general we need to force to lowercase to perform diffs, and respect
the provided case for create, but for all other calls it doesn't matter
which case is used.

There are still a bunch of errors like variable names
that need to be resolved manually.

Signed-off-by: Kyle Harding <[email protected]>
@klutchell klutchell changed the title Kyle/update variables product os Support uppercase environment variable names Sep 5, 2024
Github REST API supports case-sensitive names on this endpoint
so we should always create (POST) variables with the desired case.

On subsequent GET, PATCH, and DELETE requests the Github REST API
will use loose matching to find any existing objects, ignoring case.

So in general we need to force to lowercase to perform diffs, and respect
the provided case for create, but for all other calls it doesn't matter
which case is used.

Signed-off-by: Kyle Harding <[email protected]>
Signed-off-by: Kyle Harding <[email protected]>
@klutchell klutchell force-pushed the kyle/update-variables-product-os branch from 8241e72 to e7c47ae Compare September 6, 2024 18:18
@klutchell klutchell closed this Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant