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

Do not return an error when blank config files are read #55

Closed samcoe closed 1 year ago

samcoe commented 1 year ago

This PR changes the behavior when reading empty config files, previously we would return an ErrInvalidFormat and now we will return a blank yaml map. This fixes backwards compatibility where some cli users had blank host.yml files.

Fixes https://github.com/cli/cli/issues/5949