splitRepoSlug splits "owner/repo" into [owner, repo] Uses repoutil.SplitRepoSlug internally but provides backward-compatible array return
(slug string)
| 694 | // splitRepoSlug splits "owner/repo" into [owner, repo] |
| 695 | // Uses repoutil.SplitRepoSlug internally but provides backward-compatible array return |
| 696 | func splitRepoSlug(slug string) [2]string { |
| 697 | owner, repo, err := repoutil.SplitRepoSlug(slug) |
| 698 | if err != nil { |
| 699 | // Fallback behavior for invalid format |
| 700 | return [2]string{slug, ""} |
| 701 | } |
| 702 | return [2]string{owner, repo} |
| 703 | } |
no test coverage detected