()
| 212 | } |
| 213 | |
| 214 | func 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 | |
| 224 | func getBitbucketAPIBaseURL() string { |
| 225 | if apiURL := os.Getenv("BYTEBASE_BITBUCKET_API_BASE_URL"); apiURL != "" { |
no test coverage detected