diff options
author | Shinya Maeda <gitlab.shinyamaeda@gmail.com> | 2017-05-27 21:29:01 +0900 |
---|---|---|
committer | Shinya Maeda <gitlab.shinyamaeda@gmail.com> | 2017-05-30 23:55:09 +0900 |
commit | b17c8d67d8811e0a440338dc25464d8c90e81179 (patch) | |
tree | 12aa23052915492be34335f22480a9fa4e2671dc /lib/api/entities.rb | |
parent | c91292b61f80626b91d41cc17d0a662f302d6ecd (diff) | |
download | gitlab-ce-b17c8d67d8811e0a440338dc25464d8c90e81179.tar.gz |
Use PipelineScheduleDetails
Diffstat (limited to 'lib/api/entities.rb')
-rw-r--r-- | lib/api/entities.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb index 40ef62fdb14..e10bd230ae2 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -690,10 +690,13 @@ module API expose :id expose :description, :ref, :cron, :cron_timezone, :next_run_at, :active expose :created_at, :updated_at - expose :last_pipeline, using: Entities::PipelineBasic, if: { type: :full } expose :owner, using: Entities::UserBasic end + class PipelineScheduleDetails < PipelineSchedule + expose :last_pipeline, using: Entities::PipelineBasic + end + class EnvironmentBasic < Grape::Entity expose :id, :name, :slug, :external_url end |