15 lines
275 B
Ruby
15 lines
275 B
Ruby
|
class PipelineActionEntity < Grape::Entity
|
||
|
include RequestAwareEntity
|
||
|
|
||
|
expose :name do |build|
|
||
|
build.name.humanize
|
||
|
end
|
||
|
|
||
|
expose :url do |build|
|
||
|
play_namespace_project_build_path(
|
||
|
pipeline.project.namespace,
|
||
|
pipeline.project,
|
||
|
build)
|
||
|
end
|
||
|
end
|