diff options
author | dixpac <dino.onex@gmail.com> | 2016-07-27 12:02:49 +0300 |
---|---|---|
committer | dixpac <dino.onex@gmail.com> | 2016-07-28 12:30:56 +0300 |
commit | a4bb9993c45b3d63a3d88f92ffc14bf849c38906 (patch) | |
tree | 08bbe10511be0826ac26d6844d4fc5c7979b7c67 /lib/api | |
parent | 17be364d072298f42d77fd22189bf9289b7cda2e (diff) |
Add commit stats to commit api response
Diffstat (limited to 'lib/api')
-rw-r--r-- | lib/api/entities.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb index fbf0d74663f..e76e7304674 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -149,8 +149,13 @@ module API expose :safe_message, as: :message end + class RepoCommitStats < Grape::Entity + expose :additions, :deletions, :total + end + class RepoCommitDetail < RepoCommit expose :parent_ids, :committed_date, :authored_date + expose :stats, using: Entities::RepoCommitStats expose :status end |