MCPcopy Index your code
hub / github.com/rilldata/rill / Github

Method Github

cli/pkg/gitutil/gitutil.go:92–97  ·  view source on GitHub ↗

Github returns a normalized HTTPS Github URL ending in .git for the remote.

()

Source from the content-addressed store, hash-verified

90
91// Github returns a normalized HTTPS Github URL ending in .git for the remote.
92func (r Remote) Github() (string, error) {
93 if r.URL == "" {
94 return "", fmt.Errorf("remote %q has no URL", r.Name)
95 }
96 return NormalizeGithubRemote(r.URL)
97}
98
99// ExtractGitRemote extracts the first Git remote from the Git repository at projectPath.
100// If remoteName is provided, it will return the remote with that name.

Callers 6

InferProjectsMethod · 0.80
DeployProjectMethod · 0.80
checkRillRepoFunction · 0.80
ConnectGithubFlowFunction · 0.80
loadGitConfigMethod · 0.80

Calls 2

NormalizeGithubRemoteFunction · 0.85
ErrorfMethod · 0.65

Tested by

no test coverage detected