gitlab-org--gitlab-foss/app/serializers/build_action_entity.rb

14 lines
258 B
Ruby

class BuildActionEntity < Grape::Entity
include RequestAwareEntity
expose :name do |build|
build.name
end
expose :path do |build|
play_namespace_project_build_path(
build.project.namespace,
build.project,
build)
end
end