MCPcopy Index your code
hub / github.com/git-bug/git-bug / promptProjectURL

Function promptProjectURL

bridge/gitlab/config.go:230–237  ·  view source on GitHub ↗
(repo repository.RepoCommon, baseUrl string)

Source from the content-addressed store, hash-verified

228}
229
230func 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
239func getProjectPath(baseUrl, projectUrl string) (string, error) {
240 cleanUrl := strings.TrimSuffix(projectUrl, ".git")

Callers 1

ConfigureMethod · 0.85

Calls 2

PromptURLWithRemoteFunction · 0.92
getValidGitlabRemoteURLsFunction · 0.85

Tested by

no test coverage detected