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