()
| 68 | * Callers construct github.com URLs, so GHE hosts are filtered out here. |
| 69 | */ |
| 70 | export function getCachedRepository(): string | null { |
| 71 | const parsed = repositoryWithHostCache.get(getCwd()) |
| 72 | if (!parsed || parsed.host !== 'github.com') return null |
| 73 | return `${parsed.owner}/${parsed.name}` |
| 74 | } |
| 75 | |
| 76 | /** |
| 77 | * Parses a git remote URL into host, owner, and name components. |
no test coverage detected