diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-06-21 15:26:57 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-06-21 15:26:57 +0300 |
commit | dd08202a247b8ad379f1481bc6c0f9008f35aba9 (patch) | |
tree | c8951e4fafe65208c1897061df517b1262c06032 /lib | |
parent | 0d287b06a6fa7a373df03378f9f1a048e5890a4f (diff) |
Fix builds API response not including commit data
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api/entities.rb | 6 |
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 |