add GitHubRepository

This commit is contained in:
nate smith 2019-10-10 16:02:23 -05:00
parent 8558c279fc
commit 457ef18cdc
5 changed files with 125 additions and 22 deletions

View file

@ -47,7 +47,7 @@ func (p *Project) GitURL(name, owner string, isSSH bool) string {
}
func NewProjectFromURL(url *url.URL) (p *Project, err error) {
if !knownGitHubHostsInclude(url.Host) {
if !KnownGitHubHostsInclude(url.Host) {
err = &GithubHostError{url}
return
}