Skip to content
Snippets Groups Projects
Unverified Commit b5a73b1f authored by Marcus Ilgner's avatar Marcus Ilgner
Browse files

Expose archive status of projects in API

That way clients like Gitlab CI can decide to show or hide projects
based on that information
parent 9b7dd8b4
No related branches found
No related tags found
No related merge requests found
Loading
@@ -43,6 +43,7 @@ module API
Loading
@@ -43,6 +43,7 @@ module API
class Project < Grape::Entity class Project < Grape::Entity
expose :id, :description, :default_branch expose :id, :description, :default_branch
expose :public?, as: :public expose :public?, as: :public
expose :archived?, as: :archived
expose :visibility_level, :ssh_url_to_repo, :http_url_to_repo, :web_url expose :visibility_level, :ssh_url_to_repo, :http_url_to_repo, :web_url
expose :owner, using: Entities::UserBasic, unless: ->(project, options) { project.group } expose :owner, using: Entities::UserBasic, unless: ->(project, options) { project.group }
expose :name, :name_with_namespace expose :name, :name_with_namespace
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment