From 47a3d8b121b83c1993c4f54bc225859d77cf860b Mon Sep 17 00:00:00 2001 From: "Z.J. van de Weg" Date: Wed, 22 Feb 2017 11:13:59 +0100 Subject: Rename Builds to Jobs in the API Fixes gitlab-org/gitlab-ce#28515 [ci skip] --- lib/api/v3/entities.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib/api/v3/entities.rb') diff --git a/lib/api/v3/entities.rb b/lib/api/v3/entities.rb index 3cc0dc968a8..7daa653905a 100644 --- a/lib/api/v3/entities.rb +++ b/lib/api/v3/entities.rb @@ -11,6 +11,16 @@ module API Gitlab::UrlBuilder.build(snippet) end end + + class Build < Grape::Entity + expose :id, :status, :stage, :name, :ref, :tag, :coverage + expose :created_at, :started_at, :finished_at + expose :user, with: ::API::Entities::User + expose :artifacts_file, using: ::API::Entities::JobArtifactFile, if: -> (build, opts) { build.artifacts? } + expose :commit, with: ::API::Entities::RepoCommit + expose :runner, with: ::API::Entities::Runner + expose :pipeline, with: ::API::Entities::PipelineBasic + end end end end -- cgit v1.2.1