[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot]
2025-03-30 08:51:24 +00:00
committed by GitHub
parent 64a77decfd
commit 67e85cabcb
4 changed files with 76 additions and 47 deletions

View File

@@ -143,15 +143,11 @@ export const cloneGithubRepository = async ({
if (recurseSubmodules) {
cloneArgs.splice(4, 0, "--recurse-submodules");
}
await spawnAsync(
"git",
cloneArgs,
(data) => {
if (writeStream.writable) {
writeStream.write(data);
}
},
);
await spawnAsync("git", cloneArgs, (data) => {
if (writeStream.writable) {
writeStream.write(data);
}
});
writeStream.write(`\nCloned ${repoclone}: ✅\n`);
} catch (error) {
writeStream.write(`ERROR Clonning: ${error}: ❌`);
@@ -233,7 +229,14 @@ echo "Cloned ${repoclone} to ${outputPath}: ✅" >> ${logPath};
};
export const cloneRawGithubRepository = async (entity: Compose) => {
const { appName, repository, owner, branch, githubId, recurseSubmodules = true } = entity;
const {
appName,
repository,
owner,
branch,
githubId,
recurseSubmodules = true,
} = entity;
if (!githubId) {
throw new TRPCError({
@@ -271,7 +274,15 @@ export const cloneRawGithubRepository = async (entity: Compose) => {
};
export const cloneRawGithubRepositoryRemote = async (compose: Compose) => {
const { appName, repository, owner, branch, githubId, serverId, recurseSubmodules = true } = compose;
const {
appName,
repository,
owner,
branch,
githubId,
serverId,
recurseSubmodules = true,
} = compose;
if (!serverId) {
throw new TRPCError({