From 5e021797f3cdce3b268de72a925f99d789b80110 Mon Sep 17 00:00:00 2001 From: Mauricio Siu Date: Mon, 11 May 2026 11:22:05 -0600 Subject: [PATCH] feat(validation): standardize branch name validation across provider schemas - Added a regex validation for branch names in Bitbucket, Git, Gitea, GitHub, and GitLab provider schemas to ensure consistent and valid branch formats. - Refactored the branch validation logic to improve readability and maintainability across the schemas. - Enhanced input integrity by ensuring all provider schemas adhere to the same branch name validation rules. --- apps/dokploy/esbuild.config.ts | 1 + apps/dokploy/package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/dokploy/esbuild.config.ts b/apps/dokploy/esbuild.config.ts index 615b2bdc0..b994d3a4c 100644 --- a/apps/dokploy/esbuild.config.ts +++ b/apps/dokploy/esbuild.config.ts @@ -28,6 +28,7 @@ try { "wait-for-postgres": "wait-for-postgres.ts", "reset-password": "reset-password.ts", "reset-2fa": "reset-2fa.ts", + "migrate-auth-secret": "migrate-auth-secret.ts", }, bundle: true, platform: "node", diff --git a/apps/dokploy/package.json b/apps/dokploy/package.json index d30ff7054..69975cbc6 100644 --- a/apps/dokploy/package.json +++ b/apps/dokploy/package.json @@ -14,7 +14,7 @@ "wait-for-postgres-dev": "tsx -r dotenv/config wait-for-postgres.ts", "reset-password": "node -r dotenv/config dist/reset-password.mjs", "reset-2fa": "node -r dotenv/config dist/reset-2fa.mjs", - "migrate-auth-secret": "tsx -r dotenv/config scripts/migrate-auth-secret.ts", + "migrate-auth-secret": "node -r dotenv/config dist/migrate-auth-secret.mjs", "dev": "tsx -r dotenv/config ./server/server.ts --project tsconfig.server.json ", "studio": "drizzle-kit studio --config ./server/db/drizzle.config.ts", "migration:generate": "drizzle-kit generate --config ./server/db/drizzle.config.ts",