Commit 69cc1c31 authored by Arturo Herrero's avatar Arturo Herrero

Create a project from templates inherits integrations

Currently, when we create a project, it inherits the integration
settings (eg. Blank project, Import project).

We need to do the same when the project is created from Create from
templates.
parent 05ef2590
......@@ -165,10 +165,9 @@ module Projects
@project.create_or_update_import_data(data: @import_data[:data], credentials: @import_data[:credentials]) if @import_data
if @project.save
unless @project.gitlab_project_import?
Service.create_from_active_default_integrations(@project, :project_id, with_templates: true)
@project.create_labels
end
Service.create_from_active_default_integrations(@project, :project_id, with_templates: true)
@project.create_labels unless @project.gitlab_project_import?
unless @project.import?
raise 'Failed to create repository' unless @project.create_repository
......
---
title: Projects created from templates inherits integrations.
merge_request: 44932
author:
type: changed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment