From 73df85c2cb404d72ab4a4aea991d0ab746a7d3ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Bresson?= Date: Tue, 24 Dec 2024 14:53:49 +0100 Subject: [PATCH] Add "auto_devops_enabled" parameter when creating projects (#1219) Fixes #1158 --- gitlab4j-api/src/main/java/org/gitlab4j/api/ProjectApi.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gitlab4j-api/src/main/java/org/gitlab4j/api/ProjectApi.java b/gitlab4j-api/src/main/java/org/gitlab4j/api/ProjectApi.java index 84d399e2..17053392 100644 --- a/gitlab4j-api/src/main/java/org/gitlab4j/api/ProjectApi.java +++ b/gitlab4j-api/src/main/java/org/gitlab4j/api/ProjectApi.java @@ -1072,6 +1072,7 @@ public Project createProject(Project project) throws GitLabApiException { * buildGitStrategy (optional) - set the build git strategy * buildCoverageRegex (optional) - set build coverage regex * ciConfigPath (optional) - Set path to CI configuration file + * autoDevopsEnabled (optional) - Enable Auto DevOps for this project * squashOption (optional) - set squash option for merge requests * * @param project the Project instance with the configuration for the new project @@ -1126,6 +1127,7 @@ public Project createProject(Project project, String importUrl) throws GitLabApi .withParam("ci_config_path", project.getCiConfigPath()) .withParam("suggestion_commit_message", project.getSuggestionCommitMessage()) .withParam("remove_source_branch_after_merge", project.getRemoveSourceBranchAfterMerge()) + .withParam("auto_devops_enabled", project.getAutoDevopsEnabled()) .withParam("squash_option", project.getSquashOption()); Namespace namespace = project.getNamespace();