Skip to content

The open-source app everyone uses to manage agents at work

fix: remove GitHub source pinning warning from company import

Dottabc8fde5433c1
diff --git a/server/src/services/company-portability.ts b/server/src/services/company-portability.ts
index 0ecb9ccb13..3cc3da37fb 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;