diff --git a/docs/repos/createForAuthenticatedUser.md b/docs/repos/createForAuthenticatedUser.md index 1b5fa0389..56543e909 100644 --- a/docs/repos/createForAuthenticatedUser.md +++ b/docs/repos/createForAuthenticatedUser.md @@ -43,7 +43,7 @@ A URL with more information about the repository. privateno -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. visibilityno diff --git a/docs/repos/createInOrg.md b/docs/repos/createInOrg.md index d07352b2c..791bc812b 100644 --- a/docs/repos/createInOrg.md +++ b/docs/repos/createInOrg.md @@ -49,7 +49,7 @@ A URL with more information about the repository. privateno -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. visibilityno diff --git a/docs/repos/createUsingTemplate.md b/docs/repos/createUsingTemplate.md index 2aff9ceba..d45f53f2b 100644 --- a/docs/repos/createUsingTemplate.md +++ b/docs/repos/createUsingTemplate.md @@ -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, diff --git a/docs/repos/update.md b/docs/repos/update.md index b98e200a1..d5e0a6bbd 100644 --- a/docs/repos/update.md +++ b/docs/repos/update.md @@ -47,7 +47,7 @@ A URL with more information about the repository. privateno -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. diff --git a/scripts/update-endpoints/generated/endpoints.json b/scripts/update-endpoints/generated/endpoints.json index 0edb67bc6..80e96f05f 100644 --- a/scripts/update-endpoints/generated/endpoints.json +++ b/scripts/update-endpoints/generated/endpoints.json @@ -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, @@ -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, @@ -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": [ @@ -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, diff --git a/src/generated/types.ts b/src/generated/types.ts index 109133b44..4e5eda4c0 100644 --- a/src/generated/types.ts +++ b/src/generated/types.ts @@ -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; /** @@ -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; /** @@ -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; @@ -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<