Skip to content

Conversation

@klutchell
Copy link
Contributor

@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.

@klutchell klutchell force-pushed the kyle/update-variables branch from d4ad07f to 29995e7 Compare September 5, 2024 20:30
Signed-off-by: Kyle Harding <kyle@balena.io>
There are still a bunch of errors like variable names
that need to be resolved manually.

Signed-off-by: Kyle Harding <kyle@balena.io>
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 <kyle@balena.io>
@klutchell klutchell force-pushed the kyle/update-variables branch from 29995e7 to 0aaadf3 Compare September 5, 2024 20:32
@klutchell
Copy link
Contributor Author

Not required if #682 is merged

@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