summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTomasz Maczukin <tomasz@maczukin.pl>2016-01-11 11:15:04 +0100
committerTomasz Maczukin <tomasz@maczukin.pl>2016-01-11 11:15:04 +0100
commit4e70f2519bba83d5f9d6fd0bed80e9837e8b5fc5 (patch)
tree2f967d3eb865b3998e69ebf1c03b33b3767a5cf9 /lib
parent96bbc145f31ad029e080ad8903445d81d6c31968 (diff)
downloadgitlab-ce-4e70f2519bba83d5f9d6fd0bed80e9837e8b5fc5.tar.gz
Update ./doc/api/builds.md
Diffstat (limited to 'lib')
-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