getCurrentRepoName gets the current repository name from git remote in owner/repo format
()
| 327 | |
| 328 | // getCurrentRepoName gets the current repository name from git remote in owner/repo format |
| 329 | func getCurrentRepoName() string { |
| 330 | // Try to get the repository name from git remote using centralized helper |
| 331 | slug := getRepositorySlugFromRemote() |
| 332 | if slug != "" { |
| 333 | return slug |
| 334 | } |
| 335 | |
| 336 | // Fallback to directory name |
| 337 | gitRoot, err := gitutil.FindGitRoot() |
| 338 | if err != nil { |
| 339 | return "" |
| 340 | } |
| 341 | return filepath.Base(gitRoot) |
| 342 | } |
| 343 | |
| 344 | // getRepoOwner extracts the owner from the git remote URL |
| 345 | func getRepoOwner() string { |