Skip to content

Commit 85df1e5

Browse files
committed
Merge pull request github#487 from github/update-scope-docs-for-creating-a-repo
Update OAuth scope docs for creating a repository
2 parents 144d2c7 + 94cd856 commit 85df1e5

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

content/v3/repos.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,7 @@ Name | Type | Description
8383

8484
## Create
8585

86-
Create a new repository for the authenticated user. OAuth users must supply
87-
`repo` scope.
86+
Create a new repository for the authenticated user.
8887

8988
POST /user/repos
9089

@@ -93,6 +92,13 @@ be a member of the specified organization.
9392

9493
POST /orgs/:org/repos
9594

95+
### OAuth scope requirements
96+
97+
When using [OAuth](/v3/oauth/#scopes), authorizations must include:
98+
99+
- `public_repo` scope or `repo` scope to create a public repository
100+
- `repo` scope to create a private repository
101+
96102
### Input
97103

98104
Name | Type | Description

0 commit comments

Comments
 (0)