Skip to content

Commit b5db502

Browse files
committed
Document auto_init
1 parent a5414d2 commit b5db502

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

content/v3/repos.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ type
5959

6060
## Create
6161

62-
Create a new repository for the authenticated user. OAuth users must supply `repo` scope.
62+
Create a new repository for the authenticated user. OAuth users must supply
63+
`repo` scope.
6364

6465
POST /user/repos
6566

@@ -101,6 +102,15 @@ team\_id
101102
to this repository. This is only valid when creating a repo in an
102103
organization.
103104

105+
auto\_init
106+
: _Optional_ **boolean** - `true` to create an initial commit with empty
107+
README. Default is `false`.
108+
109+
gitignore\_template
110+
: _Optional_ **string** - Desired language or platform [.gitignore
111+
template](https://github.com/github/gitignore) to
112+
apply. _Ignored if `auto_init` parameter is not provided._
113+
104114
<%= json \
105115
:name => "Hello-World",
106116
:description => "This is your first repo",

0 commit comments

Comments
 (0)