Skip to content

Commit 73df85c

Browse files
authored
Add "auto_devops_enabled" parameter when creating projects (#1219)
Fixes #1158
1 parent 569c51c commit 73df85c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: gitlab4j-api/src/main/java/org/gitlab4j/api/ProjectApi.java

+2
Original file line numberDiff line numberDiff line change
@@ -1072,6 +1072,7 @@ public Project createProject(Project project) throws GitLabApiException {
10721072
* buildGitStrategy (optional) - set the build git strategy
10731073
* buildCoverageRegex (optional) - set build coverage regex
10741074
* ciConfigPath (optional) - Set path to CI configuration file
1075+
* autoDevopsEnabled (optional) - Enable Auto DevOps for this project
10751076
* squashOption (optional) - set squash option for merge requests
10761077
*
10771078
* @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
11261127
.withParam("ci_config_path", project.getCiConfigPath())
11271128
.withParam("suggestion_commit_message", project.getSuggestionCommitMessage())
11281129
.withParam("remove_source_branch_after_merge", project.getRemoveSourceBranchAfterMerge())
1130+
.withParam("auto_devops_enabled", project.getAutoDevopsEnabled())
11291131
.withParam("squash_option", project.getSquashOption());
11301132

11311133
Namespace namespace = project.getNamespace();

0 commit comments

Comments
 (0)