From e25bb81be2227feff54bd9e9a490994f32004d56 Mon Sep 17 00:00:00 2001 From: "Z.J. van de Weg" Date: Mon, 6 Mar 2017 09:31:37 +0100 Subject: [PATCH] Add changelog entry [ci skip] --- changelogs/unreleased/zj-builds-to-jobs-api.yml | 4 ++++ lib/api/entities.rb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 changelogs/unreleased/zj-builds-to-jobs-api.yml diff --git a/changelogs/unreleased/zj-builds-to-jobs-api.yml b/changelogs/unreleased/zj-builds-to-jobs-api.yml new file mode 100644 index 00000000000..473dd9bc8ed --- /dev/null +++ b/changelogs/unreleased/zj-builds-to-jobs-api.yml @@ -0,0 +1,4 @@ +--- +title: Rename builds to job for the v4 API +merge_request: 9463 +author: diff --git a/lib/api/entities.rb b/lib/api/entities.rb index 3db67ff455b..e0de5aeddee 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -634,7 +634,7 @@ module API expose :id, :status, :stage, :name, :ref, :tag, :coverage expose :created_at, :started_at, :finished_at expose :user, with: User - expose :artifacts_file, using: JobArtifactFile, if: -> (build, opts) { build.artifacts? } + expose :artifacts_file, using: JobArtifactFile, if: -> (job, opts) { job.artifacts? } expose :commit, with: RepoCommit expose :runner, with: Runner expose :pipeline, with: PipelineBasic