From bc8fde5433c1df9582675ffa39df670d7681e8c8 Mon Sep 17 00:00:00 2001 From: Dotta Date: Mon, 16 Mar 2026 09:08:12 -0500 Subject: [PATCH] fix: remove GitHub source pinning warning from company import We don't support regular updates to agents from GitHub sources yet, so the "not pinned to a commit SHA" warning is misleading and unnecessary. Co-Authored-By: Paperclip Co-Authored-By: Claude Opus 4.6 --- server/src/services/company-portability.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/server/src/services/company-portability.ts b/server/src/services/company-portability.ts index 0ecb9ccb..3cc3da37 100644 --- a/server/src/services/company-portability.ts +++ b/server/src/services/company-portability.ts @@ -1284,9 +1284,6 @@ function buildManifestFromPackageFiles( }; } -function isGitCommitRef(value: string) { - return /^[0-9a-f]{40}$/i.test(value.trim()); -} function parseGitHubSourceUrl(rawUrl: string) { const url = new URL(rawUrl); @@ -1413,9 +1410,6 @@ export function companyPortabilityService(db: Db) { const parsed = parseGitHubSourceUrl(source.url); let ref = parsed.ref; const warnings: string[] = []; - if (!isGitCommitRef(ref)) { - warnings.push("GitHub source is not pinned to a commit SHA; imports may drift if the ref changes."); - } const companyRelativePath = parsed.companyPath === "COMPANY.md" ? [parsed.basePath, "COMPANY.md"].filter(Boolean).join("/") : parsed.companyPath;