Merge branch 'master' into fixes/api
Conflicts: lib/api/projects.rb
This commit is contained in:
commit
61cfa2a7a6
146 changed files with 1562 additions and 859 deletions
|
@ -2,11 +2,11 @@ module Gitlab
|
|||
module Entities
|
||||
class User < Grape::Entity
|
||||
expose :id, :username, :email, :name, :bio, :skype, :linkedin, :twitter,
|
||||
:dark_scheme, :theme_id, :blocked, :created_at, :extern_uid, :provider
|
||||
:dark_scheme, :theme_id, :state, :created_at, :extern_uid, :provider
|
||||
end
|
||||
|
||||
class UserBasic < Grape::Entity
|
||||
expose :id, :username, :email, :name, :blocked, :created_at
|
||||
expose :id, :username, :email, :name, :state, :created_at
|
||||
end
|
||||
|
||||
class UserLogin < UserBasic
|
||||
|
|
|
@ -52,8 +52,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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue