Skip to content

Commit 94cd856

Browse files
committed
Move OAuth requirements into their own section
1 parent 48ffa00 commit 94cd856

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

content/v3/repos.md

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

8484
## Create
8585

86-
Create a new repository for the authenticated user. (OAuth users must supply
87-
`public_repo` scope or `repo` scope to create a public repository. OAuth users
88-
must supply `repo` scope to create a private repository.)
86+
Create a new repository for the authenticated user.
8987

9088
POST /user/repos
9189

@@ -94,6 +92,13 @@ be a member of the specified organization.
9492

9593
POST /orgs/:org/repos
9694

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+
97102
### Input
98103

99104
Name | Type | Description

0 commit comments

Comments
 (0)