diff options
author | Mehdi Lahmam <mehdi@lahmam.com> | 2017-08-13 21:15:04 +0200 |
---|---|---|
committer | Mehdi Lahmam <mehdi@lahmam.com> | 2017-09-26 13:08:46 +0200 |
commit | f696b04cc88bd38395caf8ccb4003c28f38a9c47 (patch) | |
tree | 21b9e50692aa3a8f16eb86bb266c5c64adc278c9 /lib/api/entities.rb | |
parent | 178ae69b80d5ac89a5031fa95e682e58db6689ff (diff) | |
download | gitlab-ce-f696b04cc88bd38395caf8ccb4003c28f38a9c47.tar.gz |
Expose last pipeline details in API response when getting a single commit
Closes #35692.
Diffstat (limited to 'lib/api/entities.rb')
-rw-r--r-- | lib/api/entities.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb index 71253f72533..085d1edc0fc 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -234,6 +234,7 @@ module API class RepoCommitDetail < RepoCommit expose :stats, using: Entities::RepoCommitStats expose :status + expose :last_pipeline, using: 'API::Entities::PipelineBasic' end class RepoBranch < Grape::Entity |