summaryrefslogtreecommitdiff
path: root/lib/api/entities.rb
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2018-02-12 12:40:55 +0100
committerJames Lopez <james@jameslopez.es>2018-02-13 15:25:47 +0100
commit848f49801d2c45227c525fb5ecdf8b71e7711ded (patch)
tree9ab7e1387d74eb276423ec96490bcff0f2cd62eb /lib/api/entities.rb
parentde3edb7178bd7df2f72ef403e57bfdf4e6f732df (diff)
downloadgitlab-ce-848f49801d2c45227c525fb5ecdf8b71e7711ded.tar.gz
add entity and update spec
Diffstat (limited to 'lib/api/entities.rb')
-rw-r--r--lib/api/entities.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb
index 7838de13c56..8fbad2b6959 100644
--- a/lib/api/entities.rb
+++ b/lib/api/entities.rb
@@ -90,6 +90,11 @@ module API
expose :created_at
end
+ class ProjectImportStatus < ProjectIdentity
+ expose :import_status
+ expose :import_error, if: :import_error
+ end
+
class BasicProjectDetails < ProjectIdentity
include ::API::ProjectsRelationBuilder