MCPcopy Create free account
hub / github.com/IgorWarzocha/howcode / isSameGitHubRepository

Function isSameGitHubRepository

shared/github-repository-url.ts:88–95  ·  view source on GitHub ↗
(
  left: string | null | undefined,
  right: string | null | undefined,
)

Source from the content-addressed store, hash-verified

86}
87
88export function isSameGitHubRepository(
89 left: string | null | undefined,
90 right: string | null | undefined,
91) {
92 const normalizedLeft = left ? normalizeGitHubRepositoryUrl(left) : null
93 const normalizedRight = right ? normalizeGitHubRepositoryUrl(right) : null
94 return Boolean(normalizedLeft && normalizedRight && normalizedLeft === normalizedRight)
95}

Calls 1

Tested by

no test coverage detected