diff options
author | Tomasz Maczukin <tomasz@maczukin.pl> | 2016-02-02 18:47:02 +0100 |
---|---|---|
committer | Tomasz Maczukin <tomasz@maczukin.pl> | 2016-02-19 13:18:47 +0100 |
commit | f562a477f227ec8acdbf491e08f365f1adf24647 (patch) | |
tree | fd17d5c2f9764213d30fd0d1684be2fce72ec698 /lib | |
parent | 16b3368af32084b19436012170dd461e12cf028a (diff) | |
download | gitlab-ce-f562a477f227ec8acdbf491e08f365f1adf24647.tar.gz |
Add associated project info to runner details output
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api/entities.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb index bdbf2cf5082..0170fa5a654 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -369,6 +369,12 @@ module API expose :id, :variables end + class RunnerProjectDetails < Grape::Entity + expose :id + expose :name_with_namespace, as: :name + expose :path_with_namespace, as: :path + end + class Runner < Grape::Entity expose :id expose :description @@ -381,6 +387,7 @@ module API expose :tag_list expose :version, :revision, :platform, :architecture expose :contacted_at, as: :last_contact + expose :projects, with: Entities::RunnerProjectDetails end class Build < Grape::Entity |