[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot]
2026-04-05 19:38:19 +00:00
committed by GitHub
parent 17b4c0fc58
commit 36e131cf12
2 changed files with 7 additions and 21 deletions

View File

@@ -54,9 +54,7 @@ export default async function handler(
if (sourceType === "github") {
const branchName = extractBranchName(req.headers, req.body);
const normalizedCommits =
req.body?.commits?.flatMap(
(commit: any) => commit.modified,
) || [];
req.body?.commits?.flatMap((commit: any) => commit.modified) || [];
const shouldDeployPaths = shouldDeploy(
composeResult.watchPaths,
@@ -75,9 +73,7 @@ export default async function handler(
} else if (sourceType === "gitlab") {
const branchName = extractBranchName(req.headers, req.body);
const normalizedCommits =
req.body?.commits?.flatMap(
(commit: any) => commit.modified,
) || [];
req.body?.commits?.flatMap((commit: any) => commit.modified) || [];
const shouldDeployPaths = shouldDeploy(
composeResult.watchPaths,
@@ -127,19 +123,13 @@ export default async function handler(
if (provider === "github") {
normalizedCommits =
req.body?.commits?.flatMap(
(commit: any) => commit.modified,
) || [];
req.body?.commits?.flatMap((commit: any) => commit.modified) || [];
} else if (provider === "gitlab") {
normalizedCommits =
req.body?.commits?.flatMap(
(commit: any) => commit.modified,
) || [];
req.body?.commits?.flatMap((commit: any) => commit.modified) || [];
} else if (provider === "gitea") {
normalizedCommits =
req.body?.commits?.flatMap(
(commit: any) => commit.modified,
) || [];
req.body?.commits?.flatMap((commit: any) => commit.modified) || [];
}
const shouldDeployPaths = shouldDeploy(
@@ -155,9 +145,7 @@ export default async function handler(
const branchName = extractBranchName(req.headers, req.body);
const normalizedCommits =
req.body?.commits?.flatMap(
(commit: any) => commit.modified,
) || [];
req.body?.commits?.flatMap((commit: any) => commit.modified) || [];
const shouldDeployPaths = shouldDeploy(
composeResult.watchPaths,

View File

@@ -214,9 +214,7 @@ export default async function handler(
const deploymentHash = extractHash(req.headers, req.body);
const owner = githubBody?.repository?.owner?.name;
const normalizedCommits =
githubBody?.commits?.flatMap(
(commit: any) => commit.modified,
) || [];
githubBody?.commits?.flatMap((commit: any) => commit.modified) || [];
const apps = await db.query.applications.findMany({
where: and(