[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot]
2025-07-13 17:54:36 +00:00
committed by GitHub
parent 978c4d85c5
commit 691c83c256

View File

@@ -84,9 +84,14 @@ export type ApplicationWithGitlab = InferResultType<
export type ComposeWithGitlab = InferResultType<"compose", { gitlab: true }>;
export type GitlabInfo = ApplicationWithGitlab['gitlab'] | ComposeWithGitlab['gitlab'];
export type GitlabInfo =
| ApplicationWithGitlab["gitlab"]
| ComposeWithGitlab["gitlab"];
const getGitlabRepoClone = (gitlab: GitlabInfo, gitlabPathNamespace: string | null) => {
const getGitlabRepoClone = (
gitlab: GitlabInfo,
gitlabPathNamespace: string | null,
) => {
const repoClone = `${gitlab?.gitlabUrl.replace(/^https?:\/\//, "")}/${gitlabPathNamespace}.git`;
return repoClone;
};
@@ -96,7 +101,6 @@ const getGitlabCloneUrl = (gitlab: GitlabInfo, repoClone: string) => {
const cloneUrl = `http${isSecure ? "s" : ""}://oauth2:${gitlab?.accessToken}@${repoClone}`;
return cloneUrl;
};
export const cloneGitlabRepository = async (
entity: ApplicationWithGitlab | ComposeWithGitlab,