Skip to content
Browse files

private attribute for creating repos is preferred over public for sym…

…metry
  • Loading branch information...
1 parent 16914f8 commit 90889a490b904a6fa0213a997cf5d3c7d62d1777 @technoweenie technoweenie committed
Showing with 7 additions and 5 deletions.
  1. +2 −0 content/v3/changelog.md
  2. +5 −5 content/v3/repos.md
View
2 content/v3/changelog.md
@@ -32,6 +32,8 @@ The API is expected to be finalized in late 2011.
* `master_branch` becomes `default_branch`.
* `integrate_branch` on the [repo API](/v3/repos/#get) will no longer be
returned.
+* Use the `private` attribute when creating a private repository,
+ instead of setting `public` to false.
## Breaking Beta Changes
View
10 content/v3/repos.md
@@ -55,10 +55,10 @@ description
homepage
: _Optional_ **string**
-public
-: _Optional_ **boolean** - `true` to create a public repository, `false`
-to create a private one. Creating private repositories requires a paid
-GitHub account.
+private
+: _Optional_ **boolean** - `true` to create a private repository, `false`
+to create a public one. Creating private repositories requires a paid
+GitHub account. Default is `false`.
has\_issues
: _Optional_ **boolean** - `true` to enable issues for this repository,
@@ -81,7 +81,7 @@ organization.
:name => "Hello-World",
:description => "This is your first repo",
:homepage => "https://github.com",
- :public => true,
+ :private => false,
:has_issues => true,
:has_wiki => true,
:has_downloads => true,

0 comments on commit 90889a4

Please sign in to comment.
Something went wrong with that request. Please try again.