Github returns a normalized HTTPS Github URL ending in .git for the remote.
()
| 90 | |
| 91 | // Github returns a normalized HTTPS Github URL ending in .git for the remote. |
| 92 | func (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. |
no test coverage detected