Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-05-19 00:07:37 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-05-19 00:07:37 +0300
commit1f6abbe6fa099f6d3d7629cfee85049020b54b33 (patch)
treed294f2d89c0edc61b3d23d196851757ce2842220 /lib/gitlab/fogbugz_import
parent6b5d8b17e28741bccf31029633cc5af7ceab1486 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/fogbugz_import')
-rw-r--r--lib/gitlab/fogbugz_import/project_creator.rb13
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/gitlab/fogbugz_import/project_creator.rb b/lib/gitlab/fogbugz_import/project_creator.rb
index 841f9de8d4a..a5e6356eb17 100644
--- a/lib/gitlab/fogbugz_import/project_creator.rb
+++ b/lib/gitlab/fogbugz_import/project_creator.rb
@@ -3,22 +3,23 @@
module Gitlab
module FogbugzImport
class ProjectCreator
- attr_reader :repo, :fb_session, :namespace, :current_user, :user_map
+ attr_reader :repo, :name, :fb_session, :namespace, :current_user, :user_map
- def initialize(repo, fb_session, namespace, current_user, user_map = nil)
+ def initialize(repo, name, namespace, current_user, fb_session, user_map = nil)
@repo = repo
- @fb_session = fb_session
+ @name = name
@namespace = namespace
@current_user = current_user
+ @fb_session = fb_session
@user_map = user_map
end
def execute
::Projects::CreateService.new(
current_user,
- name: repo.safe_name,
- path: repo.path,
- namespace: namespace,
+ name: name,
+ path: name,
+ namespace_id: namespace.id,
creator: current_user,
visibility_level: Gitlab::VisibilityLevel::PRIVATE,
import_type: 'fogbugz',