Repository returns a ghrepo.Interface pinned to github.com so that GHES users install from github.com rather than their enterprise host.
()
| 17 | // Repository returns a ghrepo.Interface pinned to github.com so that GHES |
| 18 | // users install from github.com rather than their enterprise host. |
| 19 | func (e *OfficialExtension) Repository() ghrepo.Interface { |
| 20 | return ghrepo.NewWithHost(e.Owner, e.Repo, "github.com") |
| 21 | } |
| 22 | |
| 23 | // OfficialExtensions is the registry of GitHub-owned extensions that gh will |
| 24 | // offer to install when the user invokes the corresponding command name. |