Skip to content

Commit

Permalink
Add "auto_devops_enabled" parameter when creating projects (#1219)
Browse files Browse the repository at this point in the history
Fixes #1158
  • Loading branch information
jmini authored Dec 24, 2024
1 parent 569c51c commit 73df85c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gitlab4j-api/src/main/java/org/gitlab4j/api/ProjectApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 73df85c

Please sign in to comment.