diff options
author | Shinya Maeda <gitlab.shinyamaeda@gmail.com> | 2017-05-19 02:42:23 +0900 |
---|---|---|
committer | Shinya Maeda <gitlab.shinyamaeda@gmail.com> | 2017-05-30 23:55:09 +0900 |
commit | f6a8894a5928e1cc37d8301c555fcfd5953cc180 (patch) | |
tree | db9827840f7f8d0ac6d64cf0f66d3e18e3468549 /lib/api/entities.rb | |
parent | 92bc1ddaf5a256a5e6636bc4a6f8ebd8673ec719 (diff) | |
download | gitlab-ce-f6a8894a5928e1cc37d8301c555fcfd5953cc180.tar.gz |
Expose last_pipeline only when detailed status
Diffstat (limited to 'lib/api/entities.rb')
-rw-r--r-- | lib/api/entities.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb index f0260cf03f3..d779cd2a294 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -690,7 +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::PipelineBasic + expose :last_pipeline, using: Entities::PipelineBasic, if: { type: :full } expose :owner, using: Entities::UserBasic end |