format some files

This commit is contained in:
PiquelChips
2025-07-24 19:45:43 +02:00
parent a0bbf7be23
commit 1f9ef473f1
2 changed files with 8 additions and 8 deletions

View File

@@ -42,7 +42,7 @@ const schema = z
wildcardDomain: z.string(),
port: z.number(),
previewLimit: z.number(),
previewLabels: z.string(),
previewLabels: z.string(),
previewHttps: z.boolean(),
previewPath: z.string(),
previewCertificateType: z.enum(["letsencrypt", "none", "custom"]),
@@ -82,7 +82,7 @@ export const ShowPreviewSettings = ({ applicationId }: Props) => {
wildcardDomain: "*.traefik.me",
port: 3000,
previewLimit: 3,
previewLabels: "",
previewLabels: "",
previewHttps: false,
previewPath: "/",
previewCertificateType: "none",
@@ -104,7 +104,7 @@ export const ShowPreviewSettings = ({ applicationId }: Props) => {
buildArgs: data.previewBuildArgs || "",
wildcardDomain: data.previewWildcard || "*.traefik.me",
port: data.previewPort || 3000,
previewLabels: data.previewLabels || "",
previewLabels: data.previewLabels || "",
previewLimit: data.previewLimit || 3,
previewHttps: data.previewHttps || false,
previewPath: data.previewPath || "/",
@@ -122,7 +122,7 @@ export const ShowPreviewSettings = ({ applicationId }: Props) => {
previewBuildArgs: formData.buildArgs,
previewWildcard: formData.wildcardDomain,
previewPort: formData.port,
previewLabels: formData.previewLabels,
previewLabels: formData.previewLabels,
applicationId,
previewLimit: formData.previewLimit,
previewHttps: formData.previewHttps,

View File

@@ -443,8 +443,8 @@ export default async function handler(
for (const app of secureApps) {
// check for labels
if (app?.previewLabels != "") {
const previewLabels = app?.previewLabels?.split(",");
if (app?.previewLabels != "") {
const previewLabels = app?.previewLabels?.split(",");
let hasLabel: boolean = false;
const labels = githubBody?.pull_request?.labels;
for (const label of labels) {
@@ -454,8 +454,8 @@ export default async function handler(
}
}
if (hasLabel)
continue;
}
continue;
}
const previewLimit = app?.previewLimit || 0;
if (app?.previewDeployments?.length > previewLimit) {