提交 8012abf4 编写于 作者: K Kamil Trzcinski

Fix failures [ci skip]

上级 6f6119b7
......@@ -7,8 +7,8 @@ class PipelineActionEntity < Grape::Entity
expose :url do |build|
play_namespace_project_build_path(
pipeline.project.namespace,
pipeline.project,
build.project.namespace,
build.project,
build)
end
end
......@@ -7,8 +7,8 @@ class PipelineArtifactEntity < Grape::Entity
expose :url do |build|
download_namespace_project_build_artifacts_path(
pipeline.project.namespace,
pipeline.project,
build.project.namespace,
build.project,
build)
end
end
......@@ -4,12 +4,14 @@ class PipelineEntity < Grape::Entity
expose :id
expose :user, if: -> (pipeline, opts) { created?(pipeline, opts) }, using: UserEntity
expose :status
expose :duration
expose :finished_at
expose :stages_with_statuses, as: :stages, if: -> (pipeline, opts) { updated?(pipeline, opts) }, using: PipelineStageEntity
expose :artifacts, if: -> (pipeline, opts) { updated?(pipeline, opts) }, using: PipelineArtifactEntity
expose :manual_actions, if: -> (pipeline, opts) { updated?(pipeline, opts) }, using: PipelineActionEntity
expose :details, if: -> (pipeline, opts) { updated?(pipeline, opts) } do
expose :status
expose :duration
expose :finished_at
expose :stages_with_statuses, as: :stages, using: PipelineStageEntity
expose :artifacts, using: PipelineArtifactEntity
expose :manual_actions, using: PipelineActionEntity
end
expose :flags, if: -> (pipeline, opts) { created?(pipeline, opts) } do
expose :latest?, as: :latest
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册