Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-06-21 15:26:57 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-06-21 15:26:57 +0300
commitdd08202a247b8ad379f1481bc6c0f9008f35aba9 (patch)
treec8951e4fafe65208c1897061df517b1262c06032 /lib
parent0d287b06a6fa7a373df03378f9f1a048e5890a4f (diff)
Fix builds API response not including commit data
Diffstat (limited to 'lib')
-rw-r--r--lib/api/entities.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb
index 0ee96d4c67b..5a23a18fe9c 100644
--- a/lib/api/entities.rb
+++ b/lib/api/entities.rb
@@ -445,11 +445,7 @@ module API
expose :created_at, :started_at, :finished_at
expose :user, with: User
expose :artifacts_file, using: BuildArtifactFile, if: -> (build, opts) { build.artifacts? }
- expose :commit, with: RepoCommit do |repo_obj, _options|
- if repo_obj.respond_to?(:commit)
- repo_obj.commit.commit_data
- end
- end
+ expose :commit, with: RepoCommit
expose :runner, with: Runner
end