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:
authorMatt Humphrey <matt@tomatto.co.uk>2013-03-01 20:34:11 +0400
committerMatt Humphrey <matt@tomatto.co.uk>2013-03-01 20:34:11 +0400
commitdd653f62f3bf07e1ea2260b06cd44ab1aaba028b (patch)
tree7dfa902428364942ccd4e35dab57bbd0ffd53d5c /lib/api/projects.rb
parent1cfc2b6fc7e49f8281a055b340509863c7706ada (diff)
Added namespace_id to project creation via API
This allows you to set the namespace ID for projects via the the API. By default it is created for the current user. You can assign it to the global namespace by passing `GLN` which translates to 'Global Namespace'.
Diffstat (limited to 'lib/api/projects.rb')
-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 c4d9cd96960..851e54c59b7 100644
--- a/lib/api/projects.rb
+++ b/lib/api/projects.rb
@@ -42,7 +42,8 @@ module Gitlab
:issues_enabled,
:wall_enabled,
:merge_requests_enabled,
- :wiki_enabled]
+ :wiki_enabled
+ :namespace_id]
@project = ::Projects::CreateContext.new(current_user, attrs).execute
if @project.saved?
present @project, with: Entities::Project