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

Use retryable HTTP client (for 50x) errors #157

Open saschagrunert opened 2 months ago

saschagrunert commented 2 months ago

To make clients like gh more robust, it would be great to have HTTP retries especially on 50x errors. A library like go-retryablehttp could be used for that, but that would be clearly a breaking API change.

Do you have thoughts on that?