cli / go-gh

A Go module for interacting with gh and the GitHub API from the command line.
https://pkg.go.dev/github.com/cli/go-gh/v2
MIT License
322 stars 45 forks source link

Allow skipping option and header resolution for api clients #56

Closed samcoe closed 1 year ago

samcoe commented 1 year ago

This PR adds the SkipResolution option to api.ClientOptions allowing the user to skip all automatic resolutions that go-gh will do upon initializing an api client. This PR also changes the "Time-Zone" header to only be added if it was properly resolved, both changes are necessary for fixing 5978.

Fixes https://github.com/cli/cli/issues/5978 cc https://github.com/cli/cli/pull/5935