Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit90889a4

Browse files
committed
private attribute for creating repos is preferred over public for symmetry
1 parent16914f8 commit90889a4

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

‎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 apublic repository,`false`
60-
to create aprivate one. Creating private repositories requires a paid
61-
GitHub account.
58+
private
59+
:_Optional_**boolean** -`true` to create aprivate repository,`false`
60+
to create apublic 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)

[8]ページ先頭

©2009-2025 Movatter.jp