summaryrefslogtreecommitdiff
path: root/lib/api
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api')
-rw-r--r--lib/api/entities.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb
index cb00b392db9..a1a886d6fea 100644
--- a/lib/api/entities.rb
+++ b/lib/api/entities.rb
@@ -375,8 +375,9 @@ module API
end
class Build < Grape::Entity
- expose :id, :status, :stage, :name, :ref, :tag, :coverage, :user
+ expose :id, :status, :stage, :name, :ref, :tag, :coverage
expose :created_at, :started_at, :finished_at
+ expose :user, with: UserFull
expose :download_url do |repo_obj, options|
if options[:user_can_download_artifacts]
repo_obj.download_url