2016-11-10 14:32:23 +00:00
|
|
|
class PipelineActionEntity < Grape::Entity
|
|
|
|
include RequestAwareEntity
|
|
|
|
|
|
|
|
expose :name do |build|
|
|
|
|
build.name.humanize
|
|
|
|
end
|
|
|
|
|
|
|
|
expose :url do |build|
|
|
|
|
play_namespace_project_build_path(
|
2016-11-10 16:50:55 +00:00
|
|
|
build.project.namespace,
|
|
|
|
build.project,
|
2016-11-10 14:32:23 +00:00
|
|
|
build)
|
|
|
|
end
|
|
|
|
end
|