getRepoOwner extracts the owner from the git remote URL
()
| 343 | |
| 344 | // getRepoOwner extracts the owner from the git remote URL |
| 345 | func getRepoOwner() string { |
| 346 | // Use centralized helper to get full repo slug |
| 347 | fullRepo := getRepositorySlugFromRemote() |
| 348 | if fullRepo == "" { |
| 349 | return "" |
| 350 | } |
| 351 | |
| 352 | // Extract owner from "owner/repo" format |
| 353 | parts := strings.Split(fullRepo, "/") |
| 354 | if len(parts) >= 1 { |
| 355 | return parts[0] |
| 356 | } |
| 357 | return "" |
| 358 | } |
no test coverage detected