From b5a73b1f902c97c3289df159b1007eb4a0db9eac Mon Sep 17 00:00:00 2001 From: Marcus Ilgner Date: Fri, 18 Apr 2014 17:55:06 +0200 Subject: [PATCH] Expose archive status of projects in API --- lib/api/entities.rb | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) diff --git a/lib/api/entities.rb b/lib/api/entities.rb index abe6fce..c1bd6d0 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -43,6 +43,7 @@ module API class Project < Grape::Entity expose :id, :description, :default_branch expose :public?, as: :public + expose :archived?, as: :archived expose :visibility_level, :ssh_url_to_repo, :http_url_to_repo, :web_url expose :owner, using: Entities::UserBasic, unless: ->(project, options) { project.group } expose :name, :name_with_namespace -- libgit2 0.21.2