Skip to content

Commit 90889a4

Browse files
committed
private attribute for creating repos is preferred over public for symmetry
1 parent 16914f8 commit 90889a4

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

content/v3/changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ The API is expected to be finalized in late 2011.
3232
* `master_branch` becomes `default_branch`.
3333
* `integrate_branch` on the [repo API](/v3/repos/#get) will no longer be
3434
returned.
35+
* Use the `private` attribute when creating a private repository,
36+
instead of setting `public` to false.
3537

3638
## Breaking Beta Changes
3739

content/v3/repos.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ description
5555
homepage
5656
: _Optional_ **string**
5757

58-
public
59-
: _Optional_ **boolean** - `true` to create a public repository, `false`
60-
to create a private one. Creating private repositories requires a paid
61-
GitHub account.
58+
private
59+
: _Optional_ **boolean** - `true` to create a private repository, `false`
60+
to create a public one. Creating private repositories requires a paid
61+
GitHub account. Default is `false`.
6262

6363
has\_issues
6464
: _Optional_ **boolean** - `true` to enable issues for this repository,
@@ -81,7 +81,7 @@ organization.
8181
:name => "Hello-World",
8282
:description => "This is your first repo",
8383
:homepage => "https://github.com",
84-
:public => true,
84+
:private => false,
8585
:has_issues => true,
8686
:has_wiki => true,
8787
:has_downloads => true,

0 commit comments

Comments
 (0)