Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "auto_devops_enabled" parameter when creating projects #1219

Merged
merged 1 commit into from
Dec 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading