(tenant, ownerOrRepo string)
| 16 | const hostRegex = `^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+.*$` |
| 17 | |
| 18 | func expandToGitHubURL(tenant, ownerOrRepo string) string { |
| 19 | if tenant == "" { |
| 20 | return fmt.Sprintf("https://github.com/%s", ownerOrRepo) |
| 21 | } |
| 22 | return fmt.Sprintf("https://%s.ghe.com/%s", tenant, ownerOrRepo) |
| 23 | } |
| 24 | |
| 25 | func expandToGitHubURLRegex(tenant, ownerOrRepo string) string { |
| 26 | url := expandToGitHubURL(tenant, ownerOrRepo) |
no outgoing calls
no test coverage detected