(host: string, gitlabInstanceUrl?: string)
| 26 | } |
| 27 | |
| 28 | function isGitLabHost(host: string, gitlabInstanceUrl?: string): boolean { |
| 29 | if (host === 'gitlab.com') return true; |
| 30 | if (gitlabInstanceUrl && hostnameOf(gitlabInstanceUrl) === host) return true; |
| 31 | return false; |
| 32 | } |
| 33 | |
| 34 | /** |
| 35 | * Returns true when `url` is a syntactically valid HTTPS or SSH git URL. |
no test coverage detected