|
34197 | 34197 | "url": "/user/repos", |
34198 | 34198 | "isDeprecated": false, |
34199 | 34199 | "deprecationDate": null, |
34200 | | - "description": "Creates a new repository for the authenticated user.\n\n**OAuth scope requirements**\n\nWhen using [OAuth](https://docs.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", |
| 34200 | + "description": "Creates a new repository for the authenticated user.\n\n**OAuth scope requirements**\n\nWhen using [OAuth](https://docs.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. Note: For GitHub AE, use `repo` scope to create an internal repository.\n* `repo` scope to create a private repository.", |
34201 | 34201 | "documentationUrl": "https://docs.github.com/rest/reference/repos/#create-a-repository-for-the-authenticated-user", |
34202 | 34202 | "previews": [], |
34203 | 34203 | "headers": [], |
|
34243 | 34243 | }, |
34244 | 34244 | { |
34245 | 34245 | "name": "private", |
34246 | | - "description": "Whether the repository is private or public.", |
| 34246 | + "description": "Whether the repository is private.", |
34247 | 34247 | "in": "BODY", |
34248 | 34248 | "type": "boolean", |
34249 | 34249 | "required": false, |
|
34527 | 34527 | "url": "/orgs/{org}/repos", |
34528 | 34528 | "isDeprecated": false, |
34529 | 34529 | "deprecationDate": null, |
34530 | | - "description": "Creates a new repository in the specified organization. The authenticated user must be a member of the organization.\n\n**OAuth scope requirements**\n\nWhen using [OAuth](https://docs.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", |
| 34530 | + "description": "Creates a new repository in the specified organization. The authenticated user must be a member of the organization.\n\n**OAuth scope requirements**\n\nWhen using [OAuth](https://docs.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. Note: For GitHub AE, use `repo` scope to create an internal repository.\n* `repo` scope to create a private repository", |
34531 | 34531 | "documentationUrl": "https://docs.github.com/rest/reference/repos/#create-an-organization-repository", |
34532 | 34532 | "previews": [], |
34533 | 34533 | "headers": [], |
|
34586 | 34586 | }, |
34587 | 34587 | { |
34588 | 34588 | "name": "private", |
34589 | | - "description": "Either `true` to create a private repository or `false` to create a public one.", |
| 34589 | + "description": "Whether the repository is private.", |
34590 | 34590 | "in": "BODY", |
34591 | 34591 | "type": "boolean", |
34592 | 34592 | "required": false, |
|
34599 | 34599 | }, |
34600 | 34600 | { |
34601 | 34601 | "name": "visibility", |
34602 | | - "description": "Can be `public` or `private`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, `visibility` can also be `internal`. For more information, see \"[Creating an internal repository](https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-repository-visibility#about-internal-repositories)\" in the GitHub Help documentation. \nThe `visibility` parameter overrides the `private` parameter when you use both parameters with the `nebula-preview` preview header.", |
| 34602 | + "description": "Can be `public` or `private`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, `visibility` can also be `internal`. Note: For GitHub Enterprise Server and GitHub AE, this endpoint will only list repositories available to all users on the enterprise. For more information, see \"[Creating an internal repository](https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-repository-visibility#about-internal-repositories)\" in the GitHub Help documentation. \nThe `visibility` parameter overrides the `private` parameter when you use both parameters with the `nebula-preview` preview header.", |
34603 | 34603 | "in": "BODY", |
34604 | 34604 | "type": "string", |
34605 | 34605 | "required": false, |
|
35417 | 35417 | "url": "/repos/{template_owner}/{template_repo}/generate", |
35418 | 35418 | "isDeprecated": false, |
35419 | 35419 | "deprecationDate": null, |
35420 | | - "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://docs.github.com/rest/reference/repos#get-a-repository) endpoint and check that the `is_template` key is `true`.\n\n**OAuth scope requirements**\n\nWhen using [OAuth](https://docs.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", |
| 35420 | + "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://docs.github.com/rest/reference/repos#get-a-repository) endpoint and check that the `is_template` key is `true`.\n\n**OAuth scope requirements**\n\nWhen using [OAuth](https://docs.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. Note: For GitHub AE, use `repo` scope to create an internal repository.\n* `repo` scope to create a private repository", |
35421 | 35421 | "documentationUrl": "https://docs.github.com/rest/reference/repos/#create-a-repository-using-a-template", |
35422 | 35422 | "previews": [{ "name": "baptiste" }], |
35423 | 35423 | "headers": [], |
|
41033 | 41033 | "parameters": [ |
41034 | 41034 | { |
41035 | 41035 | "name": "visibility", |
41036 | | - "description": "Can be one of `all`, `public`, or `private`.", |
| 41036 | + "description": "Can be one of `all`, `public`, or `private`. Note: For GitHub AE, can be one of `all`, `internal`, or `private`.", |
41037 | 41037 | "in": "QUERY", |
41038 | 41038 | "type": "string", |
41039 | 41039 | "required": false, |
|
41059 | 41059 | }, |
41060 | 41060 | { |
41061 | 41061 | "name": "type", |
41062 | | - "description": "Can be one of `all`, `owner`, `public`, `private`, `member`. Default: `all` \n \nWill cause a `422` error if used in the same request as **visibility** or **affiliation**. Will cause a `422` error if used in the same request as **visibility** or **affiliation**.", |
| 41062 | + "description": "Can be one of `all`, `owner`, `public`, `private`, `member`. Note: For GitHub AE, can be one of `all`, `owner`, `internal`, `private`, `member`. Default: `all` \n \nWill cause a `422` error if used in the same request as **visibility** or **affiliation**. Will cause a `422` error if used in the same request as **visibility** or **affiliation**.", |
41063 | 41063 | "in": "QUERY", |
41064 | 41064 | "type": "string", |
41065 | 41065 | "required": false, |
|
41198 | 41198 | }, |
41199 | 41199 | { |
41200 | 41200 | "name": "type", |
41201 | | - "description": "Specifies the types of repositories you want returned. Can be one of `all`, `public`, `private`, `forks`, `sources`, `member`, `internal`. Default: `all`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, `type` can also be `internal`.", |
| 41201 | + "description": "Specifies the types of repositories you want returned. Can be one of `all`, `public`, `private`, `forks`, `sources`, `member`, `internal`. Note: For GitHub AE, can be one of `all`, `private`, `forks`, `sources`, `member`, `internal`. Default: `all`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, `type` can also be `internal`.", |
41202 | 41202 | "in": "QUERY", |
41203 | 41203 | "type": "string", |
41204 | 41204 | "required": false, |
|
41291 | 41291 | "url": "/users/{username}/repos", |
41292 | 41292 | "isDeprecated": false, |
41293 | 41293 | "deprecationDate": null, |
41294 | | - "description": "Lists public repositories for the specified user.", |
| 41294 | + "description": "Lists public repositories for the specified user. Note: For GitHub AE, this endpoint will list internal repositories for the specified user.", |
41295 | 41295 | "documentationUrl": "https://docs.github.com/rest/reference/repos/#list-repositories-for-a-user", |
41296 | 41296 | "previews": [], |
41297 | 41297 | "headers": [], |
|
41758 | 41758 | "url": "/repositories", |
41759 | 41759 | "isDeprecated": false, |
41760 | 41760 | "deprecationDate": null, |
41761 | | - "description": "Lists all public repositories in the order that they were created.\n\nNote: Pagination is powered exclusively by the `since` parameter. Use the [Link header](https://docs.github.com/rest/overview/resources-in-the-rest-api#link-header) to get the URL for the next page of repositories.", |
| 41761 | + "description": "Lists all public repositories in the order that they were created.\n\nNotes:\n- For GitHub Enterprise Server and GitHub AE, this endpoint will only list repositories available to all users on the enterprise.\n- Pagination is powered exclusively by the `since` parameter. Use the [Link header](https://docs.github.com/rest/overview/resources-in-the-rest-api#link-header) to get the URL for the next page of repositories.", |
41762 | 41762 | "documentationUrl": "https://docs.github.com/rest/reference/repos/#list-public-repositories", |
41763 | 41763 | "previews": [], |
41764 | 41764 | "headers": [], |
|
0 commit comments