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

Add default host as known host when environment auth token exists #36

Closed samcoe closed 2 years ago

samcoe commented 2 years ago

This PR adds functionality to config.Hosts() to include the default host if there is an environment authentication token that applies to the default host. Additionally it adds tests for config.Hosts() that did not exist before.

Fixes https://github.com/cli/go-gh/issues/34