mirror of
https://github.com/LukeHagar/dokploy.git
synced 2025-12-09 20:37:45 +00:00
[autofix.ci] apply automated fixes
This commit is contained in:
@@ -84,9 +84,14 @@ export type ApplicationWithGitlab = InferResultType<
|
|||||||
|
|
||||||
export type ComposeWithGitlab = InferResultType<"compose", { gitlab: true }>;
|
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`;
|
const repoClone = `${gitlab?.gitlabUrl.replace(/^https?:\/\//, "")}/${gitlabPathNamespace}.git`;
|
||||||
return repoClone;
|
return repoClone;
|
||||||
};
|
};
|
||||||
@@ -96,7 +101,6 @@ const getGitlabCloneUrl = (gitlab: GitlabInfo, repoClone: string) => {
|
|||||||
const cloneUrl = `http${isSecure ? "s" : ""}://oauth2:${gitlab?.accessToken}@${repoClone}`;
|
const cloneUrl = `http${isSecure ? "s" : ""}://oauth2:${gitlab?.accessToken}@${repoClone}`;
|
||||||
return cloneUrl;
|
return cloneUrl;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
export const cloneGitlabRepository = async (
|
export const cloneGitlabRepository = async (
|
||||||
entity: ApplicationWithGitlab | ComposeWithGitlab,
|
entity: ApplicationWithGitlab | ComposeWithGitlab,
|
||||||
|
|||||||
Reference in New Issue
Block a user