diff options
Diffstat (limited to 'lib/api/entities.rb')
-rw-r--r-- | lib/api/entities.rb | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb index e8c9ba6fce5..054c04bbd98 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -277,16 +277,12 @@ module API end class BasicRef < Grape::Entity - expose :name - end - - class SimpleRef < Grape::Entity expose :name do |ref, options| ref end end - class Branch < BasicRef + class Branch < Grape::Entity expose :name expose :commit, using: Entities::Commit do |repo_branch, options| @@ -855,8 +851,8 @@ module API expose :description end - class Tag < BasicRef - expose :message + class Tag < Grape::Entity + expose :name, :message expose :commit, using: Entities::Commit do |repo_tag, options| options[:project].repository.commit(repo_tag.dereferenced_target) |