MCPcopy Create free account
hub / github.com/github/gh-aw / getRepoOwner

Function getRepoOwner

pkg/cli/devcontainer.go:345–358  ·  view source on GitHub ↗

getRepoOwner extracts the owner from the git remote URL

()

Source from the content-addressed store, hash-verified

343
344// getRepoOwner extracts the owner from the git remote URL
345func 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}

Callers 1

ensureDevcontainerConfigFunction · 0.85

Calls 1

Tested by

no test coverage detected