diff options
author | Z.J. van de Weg <git@zjvandeweg.nl> | 2017-03-06 09:31:37 +0100 |
---|---|---|
committer | Z.J. van de Weg <git@zjvandeweg.nl> | 2017-03-06 14:34:07 +0100 |
commit | e25bb81be2227feff54bd9e9a490994f32004d56 (patch) | |
tree | 3f9405aff2687c76a97a8b060c2ad68e9bcc86ac | |
parent | 9e942b59720a4e22a16f71de66a8cf4706f3c92b (diff) | |
download | gitlab-ce-e25bb81be2227feff54bd9e9a490994f32004d56.tar.gz |
Add changelog entry
[ci skip]
-rw-r--r-- | changelogs/unreleased/zj-builds-to-jobs-api.yml | 4 | ||||
-rw-r--r-- | lib/api/entities.rb | 2 |
2 files changed, 5 insertions, 1 deletions
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 |