MCPcopy
hub / github.com/mislav/hub / Project

Method Project

github/remote.go:26–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24}
25
26func (remote *Remote) Project() (*Project, error) {
27 p, err := NewProjectFromURL(remote.URL)
28 if _, ok := err.(*GithubHostError); ok {
29 return NewProjectFromURL(remote.PushURL)
30 }
31 return p, err
32}
33
34func Remotes() (remotes []Remote, err error) {
35 re := regexp.MustCompile(`(.+)\s+(.+)\s+\((push|fetch)\)`)

Callers 10

findPushTargetFunction · 0.80
deducePushTargetFunction · 0.80
forkFunction · 0.80
createFunction · 0.80
remotesForPublishMethod · 0.80
RemoteForRepoMethod · 0.80
RemoteForProjectMethod · 0.80
MainProjectMethod · 0.80
UpstreamProjectMethod · 0.80

Calls 1

NewProjectFromURLFunction · 0.85

Tested by

no test coverage detected