summaryrefslogtreecommitdiff
path: root/lib/api
diff options
context:
space:
mode:
authorMaxime Brugidou <m.brugidou@criteo.com>2013-12-09 11:07:32 +0100
committerMaxime Brugidou <m.brugidou@criteo.com>2013-12-09 11:07:32 +0100
commit56d4788264ce2739f5dc89f85f309b69cb3ab692 (patch)
tree90226ad0072287531fbfe683feebb02ced00bb03 /lib/api
parent31cdb7a405e5a3683b12a2ac7b4f195444552a96 (diff)
downloadgitlab-ce-56d4788264ce2739f5dc89f85f309b69cb3ab692.tar.gz
Add import_url param in API projects create
Diffstat (limited to 'lib/api')
-rw-r--r--lib/api/projects.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/api/projects.rb b/lib/api/projects.rb
index 003533fb59a..66e0d1ba3ef 100644
--- a/lib/api/projects.rb
+++ b/lib/api/projects.rb
@@ -99,7 +99,8 @@ module API
:snippets_enabled,
:namespace_id,
:public,
- :visibility_level]
+ :visibility_level,
+ :import_url]
attrs = map_public_to_visibility_level(attrs)
@project = ::Projects::CreateContext.new(current_user, attrs).execute
if @project.saved?