From 0b371abdb6c7b99c56831b63e403c1c1f8c699ef Mon Sep 17 00:00:00 2001 From: to5671sc Date: Wed, 27 Mar 2024 17:04:54 +0100 Subject: [PATCH] Add name attribute to overide params --- src/main/java/org/gitlab4j/api/ImportExportApi.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/gitlab4j/api/ImportExportApi.java b/src/main/java/org/gitlab4j/api/ImportExportApi.java index 509eae1dd..2b5c34014 100644 --- a/src/main/java/org/gitlab4j/api/ImportExportApi.java +++ b/src/main/java/org/gitlab4j/api/ImportExportApi.java @@ -239,7 +239,8 @@ public ImportStatus startImport(Object namespaceIdOrPath, File exportFile, Strin .withParam("packages_enabled", overrideParams.getPackagesEnabled()) .withParam("build_git_strategy", overrideParams.getBuildGitStrategy()) .withParam("build_coverage_regex", overrideParams.getBuildCoverageRegex()) - .withParam("squash_option", overrideParams.getSquashOption()); + .withParam("squash_option", overrideParams.getSquashOption()) + .withParam("name", overrideParams.getName()); } Response response = upload(Response.Status.CREATED, "file", exportFile, null, formData, url); @@ -251,7 +252,7 @@ public ImportStatus startImport(Object namespaceIdOrPath, File exportFile, Strin * *
GitLab Endpoint: GET /projects/:id/import
* - * @param projectIdOrPath the new (imported) project identifier in the form of an Long(ID), String(path), or Project instance + * @param projectIdOrPath the new (imported) project identifier in the form of an Long(ID), String(path), or Project instance * @return an ImportStatus instance holding information on the import status * @throws GitLabApiException if any exception occurs */