MCPcopy Index your code
hub / github.com/bytebase/bytebase / getBitbucketRepository

Function getBitbucketRepository

action/command/vcs_user.go:214–222  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

212}
213
214func getBitbucketRepository() (string, string) {
215 if fullName := os.Getenv("BITBUCKET_REPO_FULL_NAME"); fullName != "" {
216 parts := strings.SplitN(fullName, "/", 2)
217 if len(parts) == 2 {
218 return parts[0], parts[1]
219 }
220 }
221 return firstNonEmpty(os.Getenv("BITBUCKET_WORKSPACE"), os.Getenv("BITBUCKET_REPO_OWNER")), os.Getenv("BITBUCKET_REPO_SLUG")
222}
223
224func getBitbucketAPIBaseURL() string {
225 if apiURL := os.Getenv("BYTEBASE_BITBUCKET_API_BASE_URL"); apiURL != "" {

Callers 1

getBitbucketVCSUserFunction · 0.85

Calls 1

firstNonEmptyFunction · 0.85

Tested by

no test coverage detected