add GitHubRepository
This commit is contained in:
parent
8558c279fc
commit
457ef18cdc
5 changed files with 125 additions and 22 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue