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 support for GH_HOST and expose repository.Parse #12

Closed samcoe closed 2 years ago

samcoe commented 2 years ago

This PR adds support for the GH_HOME environment variable to the CurrentRepository function. To support this new functionality I added a new function Parse to the new repository package. The Parse function is exported as the operation of parsing a string into its repository information seems like a useful utility for extension authors to have.

Closes https://github.com/cli/go-gh/issues/8