refactor(contracts): source control provider kind is an open branded slug (#17739)

Co-authored-by: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Julius MarmingeandClaude Opus 5.5 authored and GitHub committed 2026-10-10 12:06:59 -07:00
1 parent dacd2cb649
commit fd3549c8ff
74 files changed
+816 -551

No files matched your search

@@ -2,7 +2,7 @@ import {
pullRequestHostOf,
type PullRequestRef,
type RepositoryIdentity,
type SourceControlProviderKind,
SourceControlProviderKind,
type ThreadPullRequestKey,
} from "@t3tools/contracts";
import { sourceControlRepositorySelector } from "@t3tools/shared/sourceControl";
@@ -18,7 +18,8 @@ export function pullRequestSyncKey(
reference.repository.toLowerCase() !==
sourceControlRepositorySelector(identity)?.toLowerCase() ||
(reference.host !== undefined &&
reference.host.toLowerCase() !== pullRequestHostOf(identity, "azure-devops"))
reference.host.toLowerCase() !==
pullRequestHostOf(identity, SourceControlProviderKind.make("azure-devops")))
)
return null;
const [host, ...repository] = identity.canonicalKey.split("/");