Commit 56d4788264ce2739f5dc89f85f309b69cb3ab692

Authored by Maxime Brugidou
1 parent 31cdb7a4

Add import_url param in API projects create

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
lib/api/projects.rb
@@ -99,7 +99,8 @@ module API @@ -99,7 +99,8 @@ module API
99 :snippets_enabled, 99 :snippets_enabled,
100 :namespace_id, 100 :namespace_id,
101 :public, 101 :public,
102 - :visibility_level] 102 + :visibility_level,
  103 + :import_url]
103 attrs = map_public_to_visibility_level(attrs) 104 attrs = map_public_to_visibility_level(attrs)
104 @project = ::Projects::CreateContext.new(current_user, attrs).execute 105 @project = ::Projects::CreateContext.new(current_user, attrs).execute
105 if @project.saved? 106 if @project.saved?