diff options
author | Francisco Javier López <fjlopez@gitlab.com> | 2018-01-09 14:36:12 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2018-01-09 14:36:12 +0300 |
commit | f6c1d382591fd837e96e99ff115b7beb0e6b3f43 (patch) | |
tree | 664cec51e2cf931af4cc2efc1ef098857cefcd99 /lib/api/entities.rb | |
parent | 4eae806af4874d5d2540a78f51fcbf72b9f69287 (diff) |
Add option to disable commit stats to commit API
Diffstat (limited to 'lib/api/entities.rb')
-rw-r--r-- | lib/api/entities.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb index bd0c54a1b04..f574858be02 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -278,7 +278,7 @@ module API end class CommitDetail < Commit - expose :stats, using: Entities::CommitStats + expose :stats, using: Entities::CommitStats, if: :stats expose :status expose :last_pipeline, using: 'API::Entities::PipelineBasic' end |