Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/repos/createForAuthenticatedUser.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ A URL with more information about the repository.
</td></tr>
<tr><td>private</td><td>no</td><td>

Either `true` to create a private repository or `false` to create a public one. Creating private repositories requires a paid GitHub account.
Either `true` to create a private repository or `false` to create a public one.

</td></tr>
<tr><td>visibility</td><td>no</td><td>
Expand Down
2 changes: 1 addition & 1 deletion docs/repos/createInOrg.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ A URL with more information about the repository.
</td></tr>
<tr><td>private</td><td>no</td><td>

Either `true` to create a private repository or `false` to create a public one. Creating private repositories requires a paid GitHub account.
Either `true` to create a private repository or `false` to create a public one.

</td></tr>
<tr><td>visibility</td><td>no</td><td>
Expand Down
2 changes: 0 additions & 2 deletions docs/repos/createUsingTemplate.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ When using [OAuth](https://developer.github.com/apps/building-oauth-apps/underst
- `public_repo` scope or `repo` scope to create a public repository
- `repo` scope to create a private repository

\`

```js
octokit.repos.createUsingTemplate({
template_owner,
Expand Down
2 changes: 1 addition & 1 deletion docs/repos/update.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ A URL with more information about the repository.
</td></tr>
<tr><td>private</td><td>no</td><td>

Either `true` to make the repository private or `false` to make it public. Creating private repositories requires a paid GitHub account. Default: `false`.
Either `true` to make the repository private or `false` to make it public. Default: `false`.
**Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://help.github.com/articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private. **Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://help.github.com/articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private.

</td></tr>
Expand Down
8 changes: 4 additions & 4 deletions scripts/update-endpoints/generated/endpoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -8012,7 +8012,7 @@
},
{
"name": "private",
"description": "Either `true` to create a private repository or `false` to create a public one. Creating private repositories requires a paid GitHub account.",
"description": "Either `true` to create a private repository or `false` to create a public one.",
"in": "BODY",
"type": "boolean",
"required": false,
Expand Down Expand Up @@ -12526,7 +12526,7 @@
},
{
"name": "private",
"description": "Either `true` to make the repository private or `false` to make it public. Creating private repositories requires a paid GitHub account. Default: `false`. \n**Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://help.github.com/articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private. **Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://help.github.com/articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private.",
"description": "Either `true` to make the repository private or `false` to make it public. Default: `false`. \n**Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://help.github.com/articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private. **Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://help.github.com/articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private.",
"in": "BODY",
"type": "boolean",
"required": false,
Expand Down Expand Up @@ -37263,7 +37263,7 @@
"url": "/repos/{template_owner}/{template_repo}/generate",
"isDeprecated": false,
"isLegacy": false,
"description": "Creates a new repository using a repository template. Use the `template_owner` and `template_repo` route parameters to specify the repository to use as the template. The authenticated user must own or be a member of an organization that owns the repository. To check if a repository is available to use as a template, get the repository's information using the [Get a repository](https://developer.github.com/v3/repos/#get-a-repository) endpoint and check that the `is_template` key is `true`.\n\n**OAuth scope requirements**\n\nWhen using [OAuth](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/), authorizations must include:\n\n* `public_repo` scope or `repo` scope to create a public repository\n* `repo` scope to create a private repository\n\n\\`",
"description": "Creates a new repository using a repository template. Use the `template_owner` and `template_repo` route parameters to specify the repository to use as the template. The authenticated user must own or be a member of an organization that owns the repository. To check if a repository is available to use as a template, get the repository's information using the [Get a repository](https://developer.github.com/v3/repos/#get-a-repository) endpoint and check that the `is_template` key is `true`.\n\n**OAuth scope requirements**\n\nWhen using [OAuth](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/), authorizations must include:\n\n* `public_repo` scope or `repo` scope to create a public repository\n* `repo` scope to create a private repository",
"documentationUrl": "https://developer.github.com/v3/repos/#create-a-repository-using-a-template",
"previews": [{ "name": "baptiste" }],
"headers": [
Expand Down Expand Up @@ -42851,7 +42851,7 @@
},
{
"name": "private",
"description": "Either `true` to create a private repository or `false` to create a public one. Creating private repositories requires a paid GitHub account.",
"description": "Either `true` to create a private repository or `false` to create a public one.",
"in": "BODY",
"type": "boolean",
"required": false,
Expand Down
8 changes: 3 additions & 5 deletions src/generated/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25737,7 +25737,7 @@ export type ReposCreateForAuthenticatedUserParams = {
*/
name: string;
/**
* Either `true` to create a private repository or `false` to create a public one. Creating private repositories requires a paid GitHub account.
* Either `true` to create a private repository or `false` to create a public one.
*/
private?: boolean;
/**
Expand Down Expand Up @@ -25837,7 +25837,7 @@ export type ReposCreateInOrgParams = {
name: string;
org: string;
/**
* Either `true` to create a private repository or `false` to create a public one. Creating private repositories requires a paid GitHub account.
* Either `true` to create a private repository or `false` to create a public one.
*/
private?: boolean;
/**
Expand Down Expand Up @@ -26915,7 +26915,7 @@ export type ReposUpdateParams = {
name?: string;
owner: string;
/**
* Either `true` to make the repository private or `false` to make it public. Creating private repositories requires a paid GitHub account. Default: `false`.
* Either `true` to make the repository private or `false` to make it public. Default: `false`.
* **Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://help.github.com/articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private. **Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://help.github.com/articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private.
*/
private?: boolean;
Expand Down Expand Up @@ -32701,8 +32701,6 @@ export type RestEndpointMethods = {
*
* * `public_repo` scope or `repo` scope to create a public repository
* * `repo` scope to create a private repository
*
* \`
*/
createUsingTemplate: {
(params?: RequestParameters & ReposCreateUsingTemplateParams): Promise<
Expand Down