Documentation
¶
Overview ¶
TODO: rename this package to avoid clash with stdlib
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Remote ¶
Remote represents a git remote mapped to a GitHub repository
type Remotes ¶
type Remotes []*Remote
Remotes represents a set of git remotes
func TranslateRemotes ¶
func TranslateRemotes(gitRemotes git.RemoteSet, urlTranslate func(*url.URL) *url.URL) (remotes Remotes)
TODO: accept an interface instead of git.RemoteSet
func (Remotes) FilterByHosts ¶
Filter remotes by given hostnames, maintains original order
func (Remotes) FindByName ¶
FindByName returns the first Remote whose name matches the list
func (Remotes) FindByRepo ¶
FindByRepo returns the first Remote that points to a specific GitHub repository
type ResolvedRemotes ¶
type ResolvedRemotes struct {
// contains filtered or unexported fields
}
func ResolveRemotesToRepos ¶
func (*ResolvedRemotes) HeadRepos ¶
func (r *ResolvedRemotes) HeadRepos() ([]*api.Repository, error)
func (*ResolvedRemotes) RemoteForRepo ¶
func (r *ResolvedRemotes) RemoteForRepo(repo ghrepo.Interface) (*Remote, error)
RemoteForRepo finds the git remote that points to a repository
Click to show internal directories.
Click to hide internal directories.