Commit ab2c6cc0 authored by Tomasz Maczukin's avatar Tomasz Maczukin

Add some fixes

parent 470b3a48
...@@ -54,7 +54,6 @@ module API ...@@ -54,7 +54,6 @@ module API
mount Keys mount Keys
mount Tags mount Tags
mount Triggers mount Triggers
mount Builds mount Builds
end end
end end
...@@ -377,7 +377,7 @@ module API ...@@ -377,7 +377,7 @@ module API
class Build < Grape::Entity class Build < Grape::Entity
expose :id, :status, :stage, :name, :ref, :tag, :coverage expose :id, :status, :stage, :name, :ref, :tag, :coverage
expose :created_at, :started_at, :finished_at expose :created_at, :started_at, :finished_at
expose :user, with: UserFull expose :user, with: User
expose :download_url do |repo_obj, options| expose :download_url do |repo_obj, options|
if options[:user_can_download_artifacts] if options[:user_can_download_artifacts]
repo_obj.download_url repo_obj.download_url
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment