diff options
author | Shinya Maeda <gitlab.shinyamaeda@gmail.com> | 2017-05-17 22:58:23 +0900 |
---|---|---|
committer | Shinya Maeda <gitlab.shinyamaeda@gmail.com> | 2017-05-30 23:55:09 +0900 |
commit | 17b9128b305aefc29fddae3b51d13c61ae7dfef9 (patch) | |
tree | 9b71d4f318daf6892b412b156fde1cf57f43dbf7 /lib/api/entities.rb | |
parent | df6040bbd41a639b3d0aa339b2dc0e84d67b811b (diff) | |
download | gitlab-ce-17b9128b305aefc29fddae3b51d13c61ae7dfef9.tar.gz |
includes last_pipeline
Diffstat (limited to 'lib/api/entities.rb')
-rw-r--r-- | lib/api/entities.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb index 93f28e39f82..b2bc0a17142 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -690,9 +690,7 @@ module API expose :id expose :description, :ref, :cron, :cron_timezone, :next_run_at, :active expose :created_at, :updated_at, :deleted_at - expose :last_pipeline, using: Entities::Pipeline do |pipeline_schedule| - pipeline_schedule.pipelines&.last - end + expose :last_pipeline, using: Entities::Pipeline expose :owner, using: Entities::UserBasic end |