Commit 67465dc5ef885fef236b6a4e2de5e008e8e149b1
1 parent
5d72a3e1
Exists in
master
and in
4 other branches
Fix private flag for project
Showing
2 changed files
with
4 additions
and
4 deletions
Show diff stats
doc/api/projects.md
| ... | ... | @@ -21,7 +21,7 @@ GET /projects |
| 21 | 21 | "blocked": false, |
| 22 | 22 | "created_at": "2012-05-23T08:00:58Z" |
| 23 | 23 | }, |
| 24 | - "private": true, | |
| 24 | + "public": true, | |
| 25 | 25 | "path": "rails", |
| 26 | 26 | "path_with_namespace": "rails/rails", |
| 27 | 27 | "issues_enabled": false, |
| ... | ... | @@ -43,7 +43,7 @@ GET /projects |
| 43 | 43 | "blocked": false, |
| 44 | 44 | "created_at": "2012-05-23T08:00:58Z" |
| 45 | 45 | }, |
| 46 | - "private": true, | |
| 46 | + "public": true, | |
| 47 | 47 | "path": "gitlab", |
| 48 | 48 | "path_with_namespace": "randx/gitlab", |
| 49 | 49 | "issues_enabled": true, |
| ... | ... | @@ -81,7 +81,7 @@ Parameters: |
| 81 | 81 | "blocked": false, |
| 82 | 82 | "created_at": "2012-05-23T08:00:58Z" |
| 83 | 83 | }, |
| 84 | - "private": true, | |
| 84 | + "public": true, | |
| 85 | 85 | "path": "gitlab", |
| 86 | 86 | "path_with_namespace": "randx/gitlab", |
| 87 | 87 | "issues_enabled": true, | ... | ... |
lib/api/entities.rb
| ... | ... | @@ -20,7 +20,7 @@ module Gitlab |
| 20 | 20 | class Project < Grape::Entity |
| 21 | 21 | expose :id, :name, :description, :default_branch |
| 22 | 22 | expose :owner, using: Entities::UserBasic |
| 23 | - expose :public, as: :private | |
| 23 | + expose :public | |
| 24 | 24 | expose :path, :path_with_namespace |
| 25 | 25 | expose :issues_enabled, :merge_requests_enabled, :wall_enabled, :wiki_enabled, :created_at |
| 26 | 26 | expose :namespace | ... | ... |