(tenant, ownerOrRepo string)
| 52 | } |
| 53 | |
| 54 | func expandToGitHubURL(tenant, ownerOrRepo string) string { |
| 55 | if tenant == "" { |
| 56 | return fmt.Sprintf("https://github.com/%s", ownerOrRepo) |
| 57 | } |
| 58 | return fmt.Sprintf("https://%s.ghe.com/%s", tenant, ownerOrRepo) |
| 59 | } |
| 60 | |
| 61 | func expandToGitHubURLRegex(tenant, ownerOrRepo string) string { |
| 62 | url := expandToGitHubURL(tenant, ownerOrRepo) |
no outgoing calls
no test coverage detected