Commit 448056f0 authored by Nick Kipling's avatar Nick Kipling

Added constant and changelog entry

parent e72fd1ff
---
title: Adds additional pipeline information to packages API result
merge_request: 28040
author:
type: added
......@@ -27,8 +27,10 @@ module EE
expose :project_path, if: ->(obj, opts) { opts[:group] && Ability.allowed?(opts[:user], :read_project, obj.project) }
expose :tags
PIPELINE_PROPS = [:created_at, :id, :sha, :ref, :status, :updated_at, :web_url, user: [:name, :avatar_url]].freeze
expose :pipeline, if: ->(obj) { obj.build_info } do |package|
::API::Entities::Pipeline.represent package.build_info.pipeline, only: [:created_at, :id, :sha, :ref, :status, :updated_at, :web_url, user: [:name, :avatar_url]]
::API::Entities::Pipeline.represent package.build_info.pipeline, only: PIPELINE_PROPS
end
private
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment