Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz Maczukin <tomasz@maczukin.pl>2017-11-16 21:44:14 +0300
committerTomasz Maczukin <tomasz@maczukin.pl>2017-11-28 02:36:48 +0300
commit8d3e80692cbeea06dd28a052554f0c262004e18d (patch)
tree7a685f0a443feaba39f777b372aa423c3656b673 /lib/api/runners.rb
parent83607a4daf497c73ddeb599194c36ff8ef491ed2 (diff)
Add information about project
Diffstat (limited to 'lib/api/runners.rb')
-rw-r--r--lib/api/runners.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/api/runners.rb b/lib/api/runners.rb
index 56b70681852..b92a2c36cf3 100644
--- a/lib/api/runners.rb
+++ b/lib/api/runners.rb
@@ -85,7 +85,9 @@ module API
destroy_conditionally!(runner)
end
- desc 'List jobs running on a runner'
+ desc 'List jobs running on a runner' do
+ success Entities::JobWithProject
+ end
params do
requires :id, type: Integer, desc: 'The ID of the runner'
use :pagination
@@ -94,7 +96,7 @@ module API
runner = get_runner(params[:id])
authenticate_list_runners_jobs!(runner)
- present paginate(runner.builds.running), with: Entities::Job
+ present paginate(runner.builds.running), with: Entities::JobWithProject
end
end