mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-07-16 11:25:24 +02:00
Refactor repository cloning interfaces: standardize parameters for Bitbucket, Gitea, and GitLab repository cloning functions to improve consistency and maintainability across the codebase.
This commit is contained in:
@@ -97,15 +97,20 @@ const getGitlabCloneUrl = (gitlab: GitlabInfo, repoClone: string) => {
|
||||
return cloneUrl;
|
||||
};
|
||||
|
||||
type GitlabClone = (ApplicationWithGitlab | ComposeWithGitlab) & {
|
||||
interface CloneGitlabRepository {
|
||||
appName: string;
|
||||
gitlabBranch: string | null;
|
||||
gitlabId: string | null;
|
||||
gitlabPathNamespace: string | null;
|
||||
enableSubmodules: boolean;
|
||||
serverId: string | null;
|
||||
type?: "application" | "compose";
|
||||
};
|
||||
}
|
||||
|
||||
export const cloneGitlabRepository = async ({
|
||||
type = "application",
|
||||
...entity
|
||||
}: GitlabClone) => {
|
||||
}: CloneGitlabRepository) => {
|
||||
let command = "set -e;";
|
||||
const {
|
||||
appName,
|
||||
|
||||
Reference in New Issue
Block a user