diff options
author | Marcus Ilgner <mail@marcusilgner.com> | 2014-04-18 17:55:06 +0200 |
---|---|---|
committer | Marcus Ilgner <mail@marcusilgner.com> | 2014-04-18 17:55:06 +0200 |
commit | b5a73b1f902c97c3289df159b1007eb4a0db9eac (patch) | |
tree | de3f8dff5a4a926390c322189158752a62d3b206 /lib/api/entities.rb | |
parent | 9b7dd8b4c04c427de22543fec7f52be26decdb22 (diff) | |
download | gitlab-ce-b5a73b1f902c97c3289df159b1007eb4a0db9eac.tar.gz |
Expose archive status of projects in API
That way clients like Gitlab CI can decide to show or hide projects
based on that information
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 abe6fceff14..c1bd6d02c68 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 |