(repo repository.RepoCommon, baseUrl string)
| 228 | } |
| 229 | |
| 230 | func promptProjectURL(repo repository.RepoCommon, baseUrl string) (string, error) { |
| 231 | validRemotes, err := getValidGitlabRemoteURLs(repo, baseUrl) |
| 232 | if err != nil { |
| 233 | return "", err |
| 234 | } |
| 235 | |
| 236 | return input.PromptURLWithRemote("Gitlab project URL", "URL", validRemotes, input.Required) |
| 237 | } |
| 238 | |
| 239 | func getProjectPath(baseUrl, projectUrl string) (string, error) { |
| 240 | cleanUrl := strings.TrimSuffix(projectUrl, ".git") |
no test coverage detected