From ff9ee2f1874dacc9eabe6aa822b145c500809736 Mon Sep 17 00:00:00 2001 From: Octokit Bot Date: Fri, 1 Jul 2022 04:28:17 -0700 Subject: [PATCH] feat: update generated files with new features and fixes (release notes to be updated manually) (#190) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: mark `assignees` and request body as required in the `DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees` (i.e. remove assignees from an issue) API * fix: remove defunkt `GET /repos/{owner}/{repo}/community/code_of_conduct` API * chore: update some descriptions * fix: allow `selected_repository_ids` for `PUT /orgs/{org}/actions/secrets/{secret_name}` AND `PUT /orgs/{org}/dependabot/secrets/{secret_name}` to be integers or strings * fix: remove unused `prebuild_availability` enum values (`blob`, `pool`) for Codespaces machines * chore: rename refs to use dash-separated rather than underscore_separated names * feat: add for `is_alphanumeric` boolean response attribute to `GET /repos/{owner}/{repo}/autolinks`, `POST /repos/{owner}/{repo}/autolinks` and `GET /repos/{owner}/{repo}/autolinks/{autolink_id}` --- cache/api.github.com.json | 2557 ++++++++--------- cache/ghes-3.2.json | 54 +- cache/ghes-3.3.json | 60 +- cache/ghes-3.4.json | 74 +- cache/ghes-3.5.json | 133 +- cache/github.ae.json | 150 +- packages/openapi-types-ghes-3.2/package.json | 2 +- packages/openapi-types-ghes-3.2/types.d.ts | 46 +- packages/openapi-types-ghes-3.3/package.json | 2 +- packages/openapi-types-ghes-3.3/types.d.ts | 48 +- packages/openapi-types-ghes-3.4/package.json | 2 +- packages/openapi-types-ghes-3.4/types.d.ts | 58 +- packages/openapi-types-ghes-3.5/package.json | 2 +- packages/openapi-types-ghes-3.5/types.d.ts | 95 +- packages/openapi-types-github.ae/package.json | 2 +- packages/openapi-types-github.ae/types.d.ts | 105 +- packages/openapi-types/package.json | 2 +- packages/openapi-types/types.d.ts | 402 ++- 18 files changed, 1835 insertions(+), 1959 deletions(-) diff --git a/cache/api.github.com.json b/cache/api.github.com.json index 0d51063ce..c55846eaa 100644 --- a/cache/api.github.com.json +++ b/cache/api.github.com.json @@ -1,7 +1,7 @@ { "openapi": "3.0.3", "info": { - "version": "6.2.1", + "version": "6.3.0", "title": "GitHub's official OpenAPI spec + Octokit extension", "description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs", "license": { "name": "MIT", "url": "https://spdx.org/licenses/MIT" }, @@ -1758,7 +1758,7 @@ "url": "https://docs.github.com/rest/reference/enterprise-admin#get-github-enterprise-server-statistics" }, "parameters": [ - { "$ref": "#/components/parameters/enterprise_or_org" }, + { "$ref": "#/components/parameters/enterprise-or-org" }, { "name": "date_start", "description": "A cursor, as given in the [Link header](https://docs.github.com/rest/overview/resources-in-the-rest-api#link-header). If specified, the query only searches for events after this cursor.", @@ -1865,7 +1865,7 @@ }, "x-github": { "enabledForGitHubApps": true, - "githubCloudOnly": false, + "githubCloudOnly": true, "category": "actions", "subcategory": "oidc" }, @@ -5749,58 +5749,6 @@ "x-octokit": {} } }, - "/orgs/{org_id}/codespaces": { - "get": { - "summary": "List codespaces for the organization", - "description": "Lists the codespaces associated to a specified organization.\n\nYou must authenticate using an access token with the `admin:org` scope to use this endpoint.", - "tags": ["codespaces"], - "operationId": "codespaces/list-in-organization", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/rest/reference/codespaces#list-in-organization" - }, - "parameters": [ - { "$ref": "#/components/parameters/per-page" }, - { "$ref": "#/components/parameters/page" }, - { "$ref": "#/components/parameters/org-id" } - ], - "responses": { - "200": { - "description": "Response", - "content": { - "application/json": { - "schema": { - "type": "object", - "required": ["total_count", "codespaces"], - "properties": { - "total_count": { "type": "integer" }, - "codespaces": { - "type": "array", - "items": { "$ref": "#/components/schemas/codespace" } - } - } - }, - "examples": { - "default": { "$ref": "#/components/examples/codespaces-list" } - } - } - } - }, - "304": { "$ref": "#/components/responses/not_modified" }, - "401": { "$ref": "#/components/responses/requires_authentication" }, - "403": { "$ref": "#/components/responses/forbidden" }, - "404": { "$ref": "#/components/responses/not_found" }, - "500": { "$ref": "#/components/responses/internal_error" } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": false, - "category": "codespaces", - "subcategory": "organizations" - }, - "x-octokit": {} - } - }, "/orgs/{org}": { "get": { "summary": "Get an organization", @@ -7677,7 +7625,9 @@ "selected_repository_ids": { "type": "array", "description": "An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/rest/reference/actions#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/rest/reference/actions#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/rest/reference/actions#remove-selected-repository-from-an-organization-secret) endpoints.", - "items": { "type": "string" } + "items": { + "anyOf": [{ "type": "integer" }, { "type": "string" }] + } } }, "required": ["visibility"] @@ -7688,7 +7638,7 @@ "encrypted_value": "c2VjcmV0", "key_id": "012345678912345678", "visibility": "selected", - "selected_repository_ids": ["1296269", "1296280"] + "selected_repository_ids": [1296269, 1296280] } } } @@ -8145,6 +8095,58 @@ "x-octokit": {} } }, + "/orgs/{org}/codespaces": { + "get": { + "summary": "List codespaces for the organization", + "description": "Lists the codespaces associated to a specified organization.\n\nYou must authenticate using an access token with the `admin:org` scope to use this endpoint.", + "tags": ["codespaces"], + "operationId": "codespaces/list-in-organization", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/codespaces#list-in-organization" + }, + "parameters": [ + { "$ref": "#/components/parameters/per-page" }, + { "$ref": "#/components/parameters/page" }, + { "$ref": "#/components/parameters/org" } + ], + "responses": { + "200": { + "description": "Response", + "content": { + "application/json": { + "schema": { + "type": "object", + "required": ["total_count", "codespaces"], + "properties": { + "total_count": { "type": "integer" }, + "codespaces": { + "type": "array", + "items": { "$ref": "#/components/schemas/codespace" } + } + } + }, + "examples": { + "default": { "$ref": "#/components/examples/codespaces-list" } + } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" }, + "500": { "$ref": "#/components/responses/internal_error" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "category": "codespaces", + "subcategory": "organizations" + }, + "x-octokit": {} + } + }, "/orgs/{org}/credential-authorizations": { "get": { "summary": "List SAML SSO authorizations for an organization", @@ -8397,7 +8399,9 @@ "selected_repository_ids": { "type": "array", "description": "An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/rest/reference/dependabot#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/rest/reference/dependabot#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/rest/reference/dependabot#remove-selected-repository-from-an-organization-secret) endpoints.", - "items": { "type": "string" } + "items": { + "anyOf": [{ "type": "string" }, { "type": "integer" }] + } } }, "required": ["visibility"] @@ -17804,11 +17808,11 @@ "properties": { "key_prefix": { "type": "string", - "description": "The prefix appended by a number will generate a link any time it is found in an issue, pull request, or commit." + "description": "The prefix appended by alphanumeric characters will generate a link any time it is found in an issue, pull request, or commit." }, "url_template": { "type": "string", - "description": "The URL must contain for the reference number." + "description": "The URL must contain `` for the reference number. `` matches alphanumeric characters `A-Z` (case insensitive), `0-9`, and `-`." } }, "required": ["key_prefix", "url_template"] @@ -24731,7 +24735,7 @@ } }, "deployment_branch_policy": { - "$ref": "#/components/schemas/deployment_branch_policy" + "$ref": "#/components/schemas/deployment-branch-policy" } }, "additionalProperties": false @@ -28033,6 +28037,7 @@ { "$ref": "#/components/parameters/issue-number" } ], "requestBody": { + "required": true, "content": { "application/json": { "schema": { @@ -28043,7 +28048,8 @@ "description": "Usernames of assignees to remove from an issue. _NOTE: Only users with push access can remove assignees from an issue. Assignees are silently ignored otherwise._", "items": { "type": "string" } } - } + }, + "required": ["assignees"] }, "examples": { "default": { "value": { "assignees": ["hubot", "other_user"] } } @@ -34351,7 +34357,7 @@ "parameters": [ { "$ref": "#/components/parameters/owner" }, { "$ref": "#/components/parameters/repo" }, - { "$ref": "#/components/parameters/tag_protection_id" } + { "$ref": "#/components/parameters/tag-protection-id" } ], "responses": { "204": { "description": "Response" }, @@ -44366,52 +44372,6 @@ }, "x-octokit": {} } - }, - "/repos/{owner}/{repo}/community/code_of_conduct": { - "get": { - "summary": "Get the code of conduct for a repository", - "description": "Returns the contents of the repository's code of conduct file, if one is detected.\n\nA code of conduct is detected if there is a file named `CODE_OF_CONDUCT` in the root directory of the repository. GitHub detects which code of conduct it is using fuzzy matching.", - "tags": ["codes-of-conduct"], - "operationId": "codes-of-conduct/get-for-repo", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/rest/reference/codes-of-conduct#get-the-code-of-conduct-for-a-repository" - }, - "parameters": [ - { "$ref": "#/components/parameters/owner" }, - { "$ref": "#/components/parameters/repo" } - ], - "responses": { - "200": { - "description": "Response", - "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/code-of-conduct" }, - "examples": { - "default": { "$ref": "#/components/examples/code-of-conduct" } - } - } - } - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "previews": [ - { - "required": true, - "name": "scarlet-witch", - "note": "The Codes of Conduct API is currently available for developers to preview.\n\nTo access the API during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.scarlet-witch-preview+json\n```" - } - ], - "category": "codes-of-conduct", - "subcategory": null, - "removalDate": "2021-09-29", - "deprecationDate": "2021-09-29" - }, - "deprecated": true, - "x-octokit": {} - } } }, "components": { @@ -47520,7 +47480,7 @@ ], "nullable": true }, - "author_association": { + "author-association": { "title": "author_association", "type": "string", "example": "OWNER", @@ -47686,7 +47646,7 @@ "$ref": "#/components/schemas/nullable-integration" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, "reactions": { "$ref": "#/components/schemas/reaction-rollup" } }, @@ -47752,7 +47712,7 @@ }, "issue_url": { "type": "string", "format": "uri" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, "performed_via_github_app": { "$ref": "#/components/schemas/nullable-integration" @@ -48227,7 +48187,7 @@ "example": "2011-04-18T23:23:56Z" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" } }, "required": [ @@ -49509,266 +49469,6 @@ }, "required": ["id", "name"] }, - "nullable-codespace-machine": { - "type": "object", - "title": "Codespace machine", - "description": "A description of the machine powering a codespace.", - "properties": { - "name": { - "type": "string", - "description": "The name of the machine.", - "example": "standardLinux" - }, - "display_name": { - "type": "string", - "description": "The display name of the machine includes cores, memory, and storage.", - "example": "4 cores, 8 GB RAM, 64 GB storage" - }, - "operating_system": { - "type": "string", - "description": "The operating system of the machine.", - "example": "linux" - }, - "storage_in_bytes": { - "type": "integer", - "description": "How much storage is available to the codespace.", - "example": 68719476736 - }, - "memory_in_bytes": { - "type": "integer", - "description": "How much memory is available to the codespace.", - "example": 8589934592 - }, - "cpus": { - "type": "integer", - "description": "How many cores are available to the codespace.", - "example": 4 - }, - "prebuild_availability": { - "type": "string", - "description": "Whether a prebuild is currently available when creating a codespace for this machine and repository. If a branch was not specified as a ref, the default branch will be assumed. Value will be \"null\" if prebuilds are not supported or prebuild availability could not be determined. Value will be \"none\" if no prebuild is available. Latest values \"ready\" and \"in_progress\" indicate the prebuild availability status. Old values \"blob\" and \"pool\" will be deprecated soon.", - "example": "ready", - "enum": ["none", "blob", "pool", "ready", "in_progress"], - "nullable": true - } - }, - "required": [ - "name", - "display_name", - "operating_system", - "storage_in_bytes", - "memory_in_bytes", - "cpus", - "prebuild_availability" - ], - "nullable": true - }, - "codespace": { - "type": "object", - "title": "Codespace", - "description": "A codespace.", - "properties": { - "id": { "type": "integer", "example": 1 }, - "name": { - "description": "Automatically generated name of this codespace.", - "type": "string", - "example": "monalisa-octocat-hello-world-g4wpq6h95q" - }, - "display_name": { - "description": "Display name for this codespace.", - "type": "string", - "example": "bookish space pancake", - "nullable": true - }, - "environment_id": { - "description": "UUID identifying this codespace's environment.", - "type": "string", - "example": "26a7c758-7299-4a73-b978-5a92a7ae98a0", - "nullable": true - }, - "owner": { "$ref": "#/components/schemas/simple-user" }, - "billable_owner": { "$ref": "#/components/schemas/simple-user" }, - "repository": { "$ref": "#/components/schemas/minimal-repository" }, - "machine": { - "$ref": "#/components/schemas/nullable-codespace-machine" - }, - "devcontainer_path": { - "description": "Path to devcontainer.json from repo root used to create Codespace.", - "type": "string", - "example": ".devcontainer/example/devcontainer.json", - "nullable": true - }, - "prebuild": { - "description": "Whether the codespace was created from a prebuild.", - "type": "boolean", - "example": false, - "nullable": true - }, - "created_at": { - "type": "string", - "format": "date-time", - "example": "2011-01-26T19:01:12Z" - }, - "updated_at": { - "type": "string", - "format": "date-time", - "example": "2011-01-26T19:01:12Z" - }, - "last_used_at": { - "description": "Last known time this codespace was started.", - "type": "string", - "format": "date-time", - "example": "2011-01-26T19:01:12Z" - }, - "state": { - "description": "State of this codespace.", - "enum": [ - "Unknown", - "Created", - "Queued", - "Provisioning", - "Available", - "Awaiting", - "Unavailable", - "Deleted", - "Moved", - "Shutdown", - "Archived", - "Starting", - "ShuttingDown", - "Failed", - "Exporting", - "Updating", - "Rebuilding" - ], - "example": "Available", - "type": "string" - }, - "url": { - "description": "API URL for this codespace.", - "type": "string", - "format": "uri" - }, - "git_status": { - "description": "Details about the codespace's git repository.", - "type": "object", - "properties": { - "ahead": { - "description": "The number of commits the local repository is ahead of the remote.", - "type": "integer", - "example": 0 - }, - "behind": { - "description": "The number of commits the local repository is behind the remote.", - "type": "integer", - "example": 0 - }, - "has_unpushed_changes": { - "description": "Whether the local repository has unpushed changes.", - "type": "boolean" - }, - "has_uncommitted_changes": { - "description": "Whether the local repository has uncommitted changes.", - "type": "boolean" - }, - "ref": { - "description": "The current branch (or SHA if in detached HEAD state) of the local repository.", - "type": "string", - "example": "main" - } - } - }, - "location": { - "description": "The Azure region where this codespace is located.", - "enum": ["EastUs", "SouthEastAsia", "WestEurope", "WestUs2"], - "example": "WestUs2", - "type": "string" - }, - "idle_timeout_minutes": { - "description": "The number of minutes of inactivity after which this codespace will be automatically stopped.", - "type": "integer", - "example": 60, - "nullable": true - }, - "web_url": { - "description": "URL to access this codespace on the web.", - "type": "string", - "format": "uri" - }, - "machines_url": { - "description": "API URL to access available alternate machine types for this codespace.", - "type": "string", - "format": "uri" - }, - "start_url": { - "description": "API URL to start this codespace.", - "type": "string", - "format": "uri" - }, - "stop_url": { - "description": "API URL to stop this codespace.", - "type": "string", - "format": "uri" - }, - "pulls_url": { - "description": "API URL for the Pull Request associated with this codespace, if any.", - "type": "string", - "format": "uri", - "nullable": true - }, - "recent_folders": { "type": "array", "items": { "type": "string" } }, - "runtime_constraints": { - "type": "object", - "properties": { - "allowed_port_privacy_settings": { - "description": "The privacy settings a user can select from when forwarding a port.", - "type": "array", - "items": { "type": "string" }, - "nullable": true - } - } - }, - "pending_operation": { - "description": "Whether or not a codespace has a pending async operation. This would mean that the codespace is temporarily unavailable. The only thing that you can do with a codespace in this state is delete it.", - "type": "boolean", - "nullable": true - }, - "pending_operation_disabled_reason": { - "description": "Text to show user when codespace is disabled by a pending operation", - "type": "string", - "nullable": true - }, - "idle_timeout_notice": { - "description": "Text to show user when codespace idle timeout minutes has been overriden by an organization policy", - "type": "string", - "nullable": true - } - }, - "required": [ - "id", - "name", - "environment_id", - "owner", - "billable_owner", - "repository", - "machine", - "prebuild", - "created_at", - "updated_at", - "last_used_at", - "state", - "url", - "git_status", - "location", - "idle_timeout_minutes", - "web_url", - "machines_url", - "start_url", - "stop_url", - "pulls_url", - "recent_folders" - ] - }, "organization-full": { "title": "Organization Full", "description": "Organization Full", @@ -50360,6 +50060,266 @@ "repository" ] }, + "nullable-codespace-machine": { + "type": "object", + "title": "Codespace machine", + "description": "A description of the machine powering a codespace.", + "properties": { + "name": { + "type": "string", + "description": "The name of the machine.", + "example": "standardLinux" + }, + "display_name": { + "type": "string", + "description": "The display name of the machine includes cores, memory, and storage.", + "example": "4 cores, 8 GB RAM, 64 GB storage" + }, + "operating_system": { + "type": "string", + "description": "The operating system of the machine.", + "example": "linux" + }, + "storage_in_bytes": { + "type": "integer", + "description": "How much storage is available to the codespace.", + "example": 68719476736 + }, + "memory_in_bytes": { + "type": "integer", + "description": "How much memory is available to the codespace.", + "example": 8589934592 + }, + "cpus": { + "type": "integer", + "description": "How many cores are available to the codespace.", + "example": 4 + }, + "prebuild_availability": { + "type": "string", + "description": "Whether a prebuild is currently available when creating a codespace for this machine and repository. If a branch was not specified as a ref, the default branch will be assumed. Value will be \"null\" if prebuilds are not supported or prebuild availability could not be determined. Value will be \"none\" if no prebuild is available. Latest values \"ready\" and \"in_progress\" indicate the prebuild availability status.", + "example": "ready", + "enum": ["none", "ready", "in_progress"], + "nullable": true + } + }, + "required": [ + "name", + "display_name", + "operating_system", + "storage_in_bytes", + "memory_in_bytes", + "cpus", + "prebuild_availability" + ], + "nullable": true + }, + "codespace": { + "type": "object", + "title": "Codespace", + "description": "A codespace.", + "properties": { + "id": { "type": "integer", "example": 1 }, + "name": { + "description": "Automatically generated name of this codespace.", + "type": "string", + "example": "monalisa-octocat-hello-world-g4wpq6h95q" + }, + "display_name": { + "description": "Display name for this codespace.", + "type": "string", + "example": "bookish space pancake", + "nullable": true + }, + "environment_id": { + "description": "UUID identifying this codespace's environment.", + "type": "string", + "example": "26a7c758-7299-4a73-b978-5a92a7ae98a0", + "nullable": true + }, + "owner": { "$ref": "#/components/schemas/simple-user" }, + "billable_owner": { "$ref": "#/components/schemas/simple-user" }, + "repository": { "$ref": "#/components/schemas/minimal-repository" }, + "machine": { + "$ref": "#/components/schemas/nullable-codespace-machine" + }, + "devcontainer_path": { + "description": "Path to devcontainer.json from repo root used to create Codespace.", + "type": "string", + "example": ".devcontainer/example/devcontainer.json", + "nullable": true + }, + "prebuild": { + "description": "Whether the codespace was created from a prebuild.", + "type": "boolean", + "example": false, + "nullable": true + }, + "created_at": { + "type": "string", + "format": "date-time", + "example": "2011-01-26T19:01:12Z" + }, + "updated_at": { + "type": "string", + "format": "date-time", + "example": "2011-01-26T19:01:12Z" + }, + "last_used_at": { + "description": "Last known time this codespace was started.", + "type": "string", + "format": "date-time", + "example": "2011-01-26T19:01:12Z" + }, + "state": { + "description": "State of this codespace.", + "enum": [ + "Unknown", + "Created", + "Queued", + "Provisioning", + "Available", + "Awaiting", + "Unavailable", + "Deleted", + "Moved", + "Shutdown", + "Archived", + "Starting", + "ShuttingDown", + "Failed", + "Exporting", + "Updating", + "Rebuilding" + ], + "example": "Available", + "type": "string" + }, + "url": { + "description": "API URL for this codespace.", + "type": "string", + "format": "uri" + }, + "git_status": { + "description": "Details about the codespace's git repository.", + "type": "object", + "properties": { + "ahead": { + "description": "The number of commits the local repository is ahead of the remote.", + "type": "integer", + "example": 0 + }, + "behind": { + "description": "The number of commits the local repository is behind the remote.", + "type": "integer", + "example": 0 + }, + "has_unpushed_changes": { + "description": "Whether the local repository has unpushed changes.", + "type": "boolean" + }, + "has_uncommitted_changes": { + "description": "Whether the local repository has uncommitted changes.", + "type": "boolean" + }, + "ref": { + "description": "The current branch (or SHA if in detached HEAD state) of the local repository.", + "type": "string", + "example": "main" + } + } + }, + "location": { + "description": "The Azure region where this codespace is located.", + "enum": ["EastUs", "SouthEastAsia", "WestEurope", "WestUs2"], + "example": "WestUs2", + "type": "string" + }, + "idle_timeout_minutes": { + "description": "The number of minutes of inactivity after which this codespace will be automatically stopped.", + "type": "integer", + "example": 60, + "nullable": true + }, + "web_url": { + "description": "URL to access this codespace on the web.", + "type": "string", + "format": "uri" + }, + "machines_url": { + "description": "API URL to access available alternate machine types for this codespace.", + "type": "string", + "format": "uri" + }, + "start_url": { + "description": "API URL to start this codespace.", + "type": "string", + "format": "uri" + }, + "stop_url": { + "description": "API URL to stop this codespace.", + "type": "string", + "format": "uri" + }, + "pulls_url": { + "description": "API URL for the Pull Request associated with this codespace, if any.", + "type": "string", + "format": "uri", + "nullable": true + }, + "recent_folders": { "type": "array", "items": { "type": "string" } }, + "runtime_constraints": { + "type": "object", + "properties": { + "allowed_port_privacy_settings": { + "description": "The privacy settings a user can select from when forwarding a port.", + "type": "array", + "items": { "type": "string" }, + "nullable": true + } + } + }, + "pending_operation": { + "description": "Whether or not a codespace has a pending async operation. This would mean that the codespace is temporarily unavailable. The only thing that you can do with a codespace in this state is delete it.", + "type": "boolean", + "nullable": true + }, + "pending_operation_disabled_reason": { + "description": "Text to show user when codespace is disabled by a pending operation", + "type": "string", + "nullable": true + }, + "idle_timeout_notice": { + "description": "Text to show user when codespace idle timeout minutes has been overriden by an organization policy", + "type": "string", + "nullable": true + } + }, + "required": [ + "id", + "name", + "environment_id", + "owner", + "billable_owner", + "repository", + "machine", + "prebuild", + "created_at", + "updated_at", + "last_used_at", + "state", + "url", + "git_status", + "location", + "idle_timeout_minutes", + "web_url", + "machines_url", + "start_url", + "stop_url", + "pulls_url", + "recent_folders" + ] + }, "credential-authorization": { "title": "Credential Authorization", "description": "Credential Authorization", @@ -53323,7 +53283,7 @@ }, "required": ["access_level"] }, - "referenced_workflow": { + "referenced-workflow": { "title": "Referenced workflow", "description": "A workflow referenced/reused by the initial caller workflow", "type": "object", @@ -53471,7 +53431,7 @@ "referenced_workflows": { "type": "array", "nullable": true, - "items": { "$ref": "#/components/schemas/referenced_workflow" } + "items": { "$ref": "#/components/schemas/referenced-workflow" } }, "event": { "type": "string", "example": "push" }, "status": { @@ -54021,6 +53981,10 @@ "description": "A template for the target URL that is generated if a key was found.", "example": "https://example.com/TICKET?query=", "type": "string" + }, + "is_alphanumeric": { + "description": "Whether this autolink reference matches alphanumeric characters. If false, this autolink reference is a legacy autolink that only matches numeric characters.", + "type": "boolean" } }, "required": ["id", "key_prefix", "url_template"] @@ -55526,9 +55490,9 @@ }, "prebuild_availability": { "type": "string", - "description": "Whether a prebuild is currently available when creating a codespace for this machine and repository. If a branch was not specified as a ref, the default branch will be assumed. Value will be \"null\" if prebuilds are not supported or prebuild availability could not be determined. Value will be \"none\" if no prebuild is available. Latest values \"ready\" and \"in_progress\" indicate the prebuild availability status. Old values \"blob\" and \"pool\" will be deprecated soon.", + "description": "Whether a prebuild is currently available when creating a codespace for this machine and repository. If a branch was not specified as a ref, the default branch will be assumed. Value will be \"null\" if prebuilds are not supported or prebuild availability could not be determined. Value will be \"none\" if no prebuild is available. Latest values \"ready\" and \"in_progress\" indicate the prebuild availability status.", "example": "ready", - "enum": ["none", "blob", "pool", "ready", "in_progress"], + "enum": ["none", "ready", "in_progress"], "nullable": true } }, @@ -55882,7 +55846,7 @@ "created_at": { "type": "string", "format": "date-time" }, "updated_at": { "type": "string", "format": "date-time" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, "reactions": { "$ref": "#/components/schemas/reaction-rollup" } }, @@ -55927,7 +55891,7 @@ "properties": { "href": { "type": "string" } }, "required": ["href"] }, - "auto_merge": { + "auto-merge": { "title": "Auto merge", "description": "The status of auto merging a pull request.", "type": "object", @@ -56143,9 +56107,9 @@ ] }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, - "auto_merge": { "$ref": "#/components/schemas/auto_merge" }, + "auto_merge": { "$ref": "#/components/schemas/auto-merge" }, "draft": { "description": "Indicates whether or not the pull request is a draft.", "example": false, @@ -57180,7 +57144,7 @@ "example": 30, "description": "The amount of time to delay a job after the job is initially triggered. The time (in minutes) must be an integer between 0 and 43,200 (30 days)." }, - "deployment_branch_policy": { + "deployment-branch-policy": { "type": "object", "description": "The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`.", "properties": { @@ -57301,7 +57265,7 @@ } }, "deployment_branch_policy": { - "$ref": "#/components/schemas/deployment_branch_policy" + "$ref": "#/components/schemas/deployment-branch-policy" } }, "required": [ @@ -57925,7 +57889,7 @@ "$ref": "#/components/schemas/nullable-integration" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, "reactions": { "$ref": "#/components/schemas/reaction-rollup" } }, @@ -58055,7 +58019,7 @@ }, "rename": { "$ref": "#/components/schemas/issue-event-rename" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, "lock_reason": { "type": "string", "nullable": true }, "performed_via_github_app": { @@ -58758,7 +58722,7 @@ }, "issue_url": { "type": "string", "format": "uri" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, "performed_via_github_app": { "$ref": "#/components/schemas/nullable-integration" @@ -58973,7 +58937,7 @@ "body_html": { "type": "string" }, "body_text": { "type": "string" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" } }, "required": [ @@ -59080,7 +59044,7 @@ "example": "https://api.github.com/repos/octocat/Hello-World/pulls/1" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, "_links": { "type": "object", @@ -60621,9 +60585,9 @@ ] }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, - "auto_merge": { "$ref": "#/components/schemas/auto_merge" }, + "auto_merge": { "$ref": "#/components/schemas/auto-merge" }, "draft": { "description": "Indicates whether or not the pull request is a draft.", "example": false, @@ -60778,7 +60742,7 @@ "body_html": { "type": "string" }, "body_text": { "type": "string" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" } }, "required": [ @@ -60853,7 +60817,7 @@ "example": "https://api.github.com/repos/octocat/Hello-World/pulls/1" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, "_links": { "type": "object", @@ -61992,7 +61956,7 @@ "body": { "type": "string" }, "score": { "type": "number" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, "draft": { "type": "boolean" }, "repository": { "$ref": "#/components/schemas/repository" }, @@ -62577,18 +62541,27 @@ "type": "object", "properties": { "name": { - "description": "The name of the secret.", + "description": "The name of the secret", "example": "SECRET_NAME", "type": "string" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, + "created_at": { + "description": "Secret created at", + "type": "string", + "format": "date-time" + }, + "updated_at": { + "description": "Secret last updated at", + "type": "string", + "format": "date-time" + }, "visibility": { - "description": "Visibility of a secret", + "description": "The type of repositories in the organization that the secret is visible to", "enum": ["all", "private", "selected"], "type": "string" }, "selected_repositories_url": { + "description": "API URL at which the list of repositories this secret is vicible can be retrieved", "type": "string", "format": "uri", "example": "https://api.github.com/user/secrets/SECRET_NAME/repositories" @@ -67379,14 +67352,149 @@ ] } }, - "codespaces-list": { + "organization-full-default-response": { + "summary": "Default response", "value": { - "total_count": 3, - "codespaces": [ + "login": "github", + "id": 1, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=", + "url": "https://api.github.com/orgs/github", + "repos_url": "https://api.github.com/orgs/github/repos", + "events_url": "https://api.github.com/orgs/github/events", + "hooks_url": "https://api.github.com/orgs/github/hooks", + "issues_url": "https://api.github.com/orgs/github/issues", + "members_url": "https://api.github.com/orgs/github/members{/member}", + "public_members_url": "https://api.github.com/orgs/github/public_members{/member}", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "description": "A great organization", + "name": "github", + "company": "GitHub", + "blog": "https://github.com/blog", + "location": "San Francisco", + "email": "octocat@github.com", + "twitter_username": "github", + "is_verified": true, + "has_organization_projects": true, + "has_repository_projects": true, + "public_repos": 2, + "public_gists": 1, + "followers": 20, + "following": 0, + "html_url": "https://github.com/octocat", + "created_at": "2008-01-14T04:33:35Z", + "updated_at": "2014-03-03T18:58:10Z", + "type": "Organization", + "total_private_repos": 100, + "owned_private_repos": 100, + "private_gists": 81, + "disk_usage": 10000, + "collaborators": 8, + "billing_email": "mona@github.com", + "plan": { + "name": "Medium", + "space": 400, + "private_repos": 20, + "filled_seats": 4, + "seats": 5 + }, + "default_repository_permission": "read", + "members_can_create_repositories": true, + "two_factor_requirement_enabled": true, + "members_allowed_repository_creation_type": "all", + "members_can_create_public_repositories": false, + "members_can_create_private_repositories": false, + "members_can_create_internal_repositories": false, + "members_can_create_pages": true, + "members_can_fork_private_repositories": false + } + }, + "organization-full": { + "value": { + "login": "github", + "id": 1, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=", + "url": "https://api.github.com/orgs/github", + "repos_url": "https://api.github.com/orgs/github/repos", + "events_url": "https://api.github.com/orgs/github/events", + "hooks_url": "https://api.github.com/orgs/github/hooks", + "issues_url": "https://api.github.com/orgs/github/issues", + "members_url": "https://api.github.com/orgs/github/members{/member}", + "public_members_url": "https://api.github.com/orgs/github/public_members{/member}", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "description": "A great organization", + "name": "github", + "company": "GitHub", + "blog": "https://github.com/blog", + "location": "San Francisco", + "email": "octocat@github.com", + "twitter_username": "github", + "is_verified": true, + "has_organization_projects": true, + "has_repository_projects": true, + "public_repos": 2, + "public_gists": 1, + "followers": 20, + "following": 0, + "html_url": "https://github.com/octocat", + "created_at": "2008-01-14T04:33:35Z", + "type": "Organization", + "total_private_repos": 100, + "owned_private_repos": 100, + "private_gists": 81, + "disk_usage": 10000, + "collaborators": 8, + "billing_email": "mona@github.com", + "plan": { "name": "Medium", "space": 400, "private_repos": 20 }, + "default_repository_permission": "read", + "members_can_create_repositories": true, + "two_factor_requirement_enabled": true, + "members_allowed_repository_creation_type": "all", + "members_can_create_public_repositories": false, + "members_can_create_private_repositories": false, + "members_can_create_internal_repositories": false, + "members_can_create_pages": true, + "members_can_create_public_pages": true, + "members_can_create_private_pages": true, + "members_can_fork_private_repositories": false, + "updated_at": "2014-03-03T18:58:10Z" + } + }, + "org-actions-cache-usage-by-repo": { + "value": { + "total_count": 2, + "repository_cache_usages": [ { - "id": 1, - "name": "monalisa-octocat-hello-world-g4wpq6h95q", - "environment_id": "26a7c758-7299-4a73-b978-5a92a7ae98a0", + "full_name": "octo-org/Hello-World", + "active_caches_size_in_bytes": 2322142, + "active_caches_count": 3 + }, + { + "full_name": "octo-org/server", + "active_caches_size_in_bytes": 1022142, + "active_caches_count": 2 + } + ] + } + }, + "oidc-custom-sub": { + "value": { "include_claim_keys": ["repo", "context"] } + }, + "actions-organization-permissions": { + "value": { + "enabled_repositories": "all", + "allowed_actions": "selected", + "selected_actions_url": "https://api.github.com/organizations/42/actions/permissions/selected-actions" + } + }, + "repository-paginated": { + "value": { + "total_count": 1, + "repositories": [ + { + "id": 1296269, + "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", + "name": "Hello-World", + "full_name": "octocat/Hello-World", "owner": { "login": "octocat", "id": 1, @@ -67407,7 +67515,190 @@ "type": "User", "site_admin": false }, - "billable_owner": { + "private": false, + "html_url": "https://github.com/octocat/Hello-World", + "description": "This your first repo!", + "fork": false, + "url": "https://api.github.com/repos/octocat/Hello-World", + "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}", + "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}", + "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}", + "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}", + "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}", + "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}", + "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}", + "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}", + "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors", + "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments", + "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads", + "events_url": "https://api.github.com/repos/octocat/Hello-World/events", + "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks", + "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}", + "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}", + "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}", + "git_url": "git:github.com/octocat/Hello-World.git", + "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}", + "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}", + "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}", + "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}", + "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages", + "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges", + "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}", + "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}", + "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}", + "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}", + "ssh_url": "git@github.com:octocat/Hello-World.git", + "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers", + "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}", + "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers", + "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription", + "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags", + "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams", + "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}", + "clone_url": "https://github.com/octocat/Hello-World.git", + "mirror_url": "git:git.example.com/octocat/Hello-World", + "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks", + "svn_url": "https://svn.github.com/octocat/Hello-World", + "homepage": "https://github.com", + "language": null, + "forks_count": 9, + "stargazers_count": 80, + "watchers_count": 80, + "size": 108, + "default_branch": "master", + "open_issues_count": 0, + "is_template": true, + "topics": ["octocat", "atom", "electron", "api"], + "has_issues": true, + "has_projects": true, + "has_wiki": true, + "has_pages": false, + "has_downloads": true, + "archived": false, + "disabled": false, + "visibility": "public", + "pushed_at": "2011-01-26T19:06:43Z", + "created_at": "2011-01-26T19:01:12Z", + "updated_at": "2011-01-26T19:14:43Z", + "permissions": { "admin": false, "push": false, "pull": true }, + "allow_rebase_merge": true, + "template_repository": null, + "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O", + "allow_squash_merge": true, + "allow_auto_merge": false, + "delete_branch_on_merge": true, + "allow_merge_commit": true, + "subscribers_count": 42, + "network_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "url": "https://api.github.com/licenses/mit", + "spdx_id": "MIT", + "node_id": "MDc6TGljZW5zZW1pdA==", + "html_url": "https://github.com/licenses/mit" + }, + "forks": 1, + "open_issues": 1, + "watchers": 1 + } + ] + } + }, + "runner-groups-org": { + "value": { + "total_count": 3, + "runner_groups": [ + { + "id": 1, + "name": "Default", + "visibility": "all", + "default": true, + "runners_url": "https://api.github.com/orgs/octo-org/actions/runner_groups/1/runners", + "inherited": false, + "allows_public_repositories": true, + "restricted_to_workflows": false, + "selected_workflows": [], + "workflow_restrictions_read_only": false + }, + { + "id": 2, + "name": "octo-runner-group", + "visibility": "selected", + "default": false, + "selected_repositories_url": "https://api.github.com/orgs/octo-org/actions/runner_groups/2/repositories", + "runners_url": "https://api.github.com/orgs/octo-org/actions/runner_groups/2/runners", + "inherited": true, + "allows_public_repositories": true, + "restricted_to_workflows": true, + "selected_workflows": [ + "octo-org/octo-repo/.github/workflows/deploy.yaml@refs/heads/main" + ], + "workflow_restrictions_read_only": true + }, + { + "id": 3, + "name": "expensive-hardware", + "visibility": "private", + "default": false, + "runners_url": "https://api.github.com/orgs/octo-org/actions/runner_groups/3/runners", + "inherited": false, + "allows_public_repositories": true, + "restricted_to_workflows": false, + "selected_workflows": [ + "octo-org/octo-repo/.github/workflows/deploy.yaml@refs/heads/main" + ], + "workflow_restrictions_read_only": false + } + ] + } + }, + "runner-group": { + "value": { + "id": 2, + "name": "octo-runner-group", + "visibility": "selected", + "default": false, + "selected_repositories_url": "https://api.github.com/orgs/octo-org/actions/runner-groups/2/repositories", + "runners_url": "https://api.github.com/orgs/octo-org/actions/runner_groups/2/runners", + "inherited": false, + "allows_public_repositories": true, + "restricted_to_workflows": true, + "selected_workflows": [ + "octo-org/octo-repo/.github/workflows/deploy.yaml@refs/heads/main" + ], + "workflow_restrictions_read_only": false + } + }, + "runner-group-item": { + "value": { + "id": 2, + "name": "octo-runner-group", + "visibility": "selected", + "default": false, + "selected_repositories_url": "https://api.github.com/orgs/octo-org/actions/runner_groups/2/repositories", + "runners_url": "https://api.github.com/orgs/octo-org/actions/runner_groups/2/runners", + "inherited": false, + "allows_public_repositories": true, + "restricted_to_workflows": true, + "selected_workflows": [ + "octo-org/octo-repo/.github/workflows/deploy.yaml@refs/heads/main" + ], + "workflow_restrictions_read_only": false + } + }, + "minimal-repository-paginated": { + "value": { + "total_count": 1, + "repositories": [ + { + "id": 1296269, + "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", + "name": "Hello-World", + "full_name": "octocat/Hello-World", + "owner": { "login": "octocat", "id": 1, "node_id": "MDQ6VXNlcjE=", @@ -67427,7 +67718,75 @@ "type": "User", "site_admin": false }, - "repository": { + "private": false, + "html_url": "https://github.com/octocat/Hello-World", + "description": "This your first repo!", + "fork": false, + "url": "https://api.github.com/repos/octocat/Hello-World", + "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}", + "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}", + "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}", + "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}", + "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}", + "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}", + "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}", + "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}", + "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors", + "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments", + "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads", + "events_url": "https://api.github.com/repos/octocat/Hello-World/events", + "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks", + "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}", + "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}", + "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}", + "git_url": "git:github.com/octocat/Hello-World.git", + "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}", + "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}", + "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}", + "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}", + "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages", + "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges", + "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}", + "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}", + "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}", + "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}", + "ssh_url": "git@github.com:octocat/Hello-World.git", + "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers", + "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}", + "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers", + "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription", + "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags", + "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams", + "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}", + "clone_url": "https://github.com/octocat/Hello-World.git", + "mirror_url": "git:git.example.com/octocat/Hello-World", + "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks", + "svn_url": "https://svn.github.com/octocat/Hello-World", + "homepage": "https://github.com", + "language": null, + "forks_count": 9, + "stargazers_count": 80, + "watchers_count": 80, + "size": 108, + "default_branch": "master", + "open_issues_count": 0, + "is_template": true, + "topics": ["octocat", "atom", "electron", "api"], + "has_issues": true, + "has_projects": true, + "has_wiki": true, + "has_pages": false, + "has_downloads": true, + "archived": false, + "disabled": false, + "visibility": "public", + "pushed_at": "2011-01-26T19:06:43Z", + "created_at": "2011-01-26T19:01:12Z", + "updated_at": "2011-01-26T19:14:43Z", + "permissions": { "admin": false, "push": false, "pull": true }, + "template_repository": { "id": 1296269, "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", "name": "Hello-World", @@ -67494,42 +67853,454 @@ "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags", "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams", "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}", - "hooks_url": "http://api.github.com/repos/octocat/Hello-World/hooks" + "clone_url": "https://github.com/octocat/Hello-World.git", + "mirror_url": "git:git.example.com/octocat/Hello-World", + "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks", + "svn_url": "https://svn.github.com/octocat/Hello-World", + "homepage": "https://github.com", + "organization": null, + "language": null, + "forks": 9, + "forks_count": 9, + "stargazers_count": 80, + "watchers_count": 80, + "watchers": 80, + "size": 108, + "default_branch": "master", + "open_issues": 0, + "open_issues_count": 0, + "is_template": true, + "license": { + "key": "mit", + "name": "MIT License", + "url": "https://api.github.com/licenses/mit", + "spdx_id": "MIT", + "node_id": "MDc6TGljZW5zZW1pdA==", + "html_url": "https://api.github.com/licenses/mit" + }, + "topics": ["octocat", "atom", "electron", "api"], + "has_issues": true, + "has_projects": true, + "has_wiki": true, + "has_pages": false, + "has_downloads": true, + "archived": false, + "disabled": false, + "visibility": "public", + "pushed_at": "2011-01-26T19:06:43Z", + "created_at": "2011-01-26T19:01:12Z", + "updated_at": "2011-01-26T19:14:43Z", + "permissions": { "admin": false, "push": false, "pull": true }, + "allow_rebase_merge": true, + "template_repository": null, + "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O", + "allow_squash_merge": true, + "allow_auto_merge": false, + "delete_branch_on_merge": true, + "allow_merge_commit": true, + "subscribers_count": 42, + "network_count": 0 }, - "machine": { - "name": "standardLinux", - "display_name": "4 cores, 8 GB RAM, 64 GB storage", - "operating_system": "linux", - "storage_in_bytes": 68719476736, - "memory_in_bytes": 8589934592, - "cpus": 4 + "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O", + "delete_branch_on_merge": true, + "subscribers_count": 42, + "network_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "url": "https://api.github.com/licenses/mit", + "spdx_id": "MIT", + "node_id": "MDc6TGljZW5zZW1pdA==" }, - "prebuild": false, - "devcontainer_path": ".devcontainer/devcontainer.json", - "created_at": "2021-10-14T00:53:30-06:00", - "updated_at": "2021-10-14T00:53:32-06:00", - "last_used_at": "2021-10-14T00:53:30-06:00", - "state": "Available", - "url": "https://api.github.com/user/codespaces/monalisa-octocat-hello-world-g4wpq6h95q", - "git_status": { - "ahead": 0, - "behind": 0, - "has_unpushed_changes": false, - "has_uncommitted_changes": false, - "ref": "main" + "forks": 1, + "open_issues": 1, + "watchers": 1 + } + ] + } + }, + "organization-actions-secret-paginated": { + "value": { + "total_count": 3, + "secrets": [ + { + "name": "GIST_ID", + "created_at": "2019-08-10T14:59:22Z", + "updated_at": "2020-01-10T14:59:22Z", + "visibility": "private" + }, + { + "name": "DEPLOY_TOKEN", + "created_at": "2019-08-10T14:59:22Z", + "updated_at": "2020-01-10T14:59:22Z", + "visibility": "all" + }, + { + "name": "GH_TOKEN", + "created_at": "2019-08-10T14:59:22Z", + "updated_at": "2020-01-10T14:59:22Z", + "visibility": "selected", + "selected_repositories_url": "https://api.github.com/orgs/octo-org/actions/secrets/SUPER_SECRET/repositories" + } + ] + } + }, + "actions-public-key": { + "value": { + "key_id": "012345678912345678", + "key": "2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvv1234" + } + }, + "organization-actions-secret": { + "value": { + "name": "GH_TOKEN", + "created_at": "2019-08-10T14:59:22Z", + "updated_at": "2020-01-10T14:59:22Z", + "visibility": "selected", + "selected_repositories_url": "https://api.github.com/orgs/octo-org/actions/secrets/SUPER_SECRET/repositories" + } + }, + "public-repository-paginated": { + "value": { + "total_count": 1, + "repositories": [ + { + "id": 1296269, + "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", + "name": "Hello-World", + "full_name": "octocat/Hello-World", + "owner": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false }, - "location": "WestUs2", - "idle_timeout_minutes": 60, - "web_url": "https://monalisa-octocat-hello-world-g4wpq6h95q.github.dev", - "machines_url": "https://api.github.com/user/codespaces/monalisa-octocat-hello-world-g4wpq6h95q/machines", - "start_url": "https://api.github.com/user/codespaces/monalisa-octocat-hello-world-g4wpq6h95q/start", - "stop_url": "https://api.github.com/user/codespaces/monalisa-octocat-hello-world-g4wpq6h95q/stop", - "recent_folders": [] + "private": false, + "html_url": "https://github.com/octocat/Hello-World", + "description": "This your first repo!", + "fork": false, + "url": "https://api.github.com/repos/octocat/Hello-World", + "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}", + "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}", + "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}", + "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}", + "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}", + "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}", + "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}", + "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}", + "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors", + "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments", + "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads", + "events_url": "https://api.github.com/repos/octocat/Hello-World/events", + "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks", + "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}", + "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}", + "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}", + "git_url": "git:github.com/octocat/Hello-World.git", + "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}", + "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}", + "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}", + "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}", + "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages", + "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges", + "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}", + "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}", + "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}", + "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}", + "ssh_url": "git@github.com:octocat/Hello-World.git", + "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers", + "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}", + "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers", + "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription", + "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags", + "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams", + "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}", + "hooks_url": "http://api.github.com/repos/octocat/Hello-World/hooks" + } + ] + } + }, + "simple-user-items": { + "value": [ + { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + } + ] + }, + "code-scanning-organization-alert-items": { + "value": [ + { + "number": 4, + "created_at": "2020-02-13T12:29:18Z", + "url": "https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/4", + "html_url": "https://github.com/octocat/hello-world/code-scanning/4", + "state": "open", + "dismissed_by": null, + "dismissed_at": null, + "dismissed_reason": null, + "dismissed_comment": null, + "rule": { + "id": "js/zipslip", + "severity": "error", + "tags": ["security", "external/cwe/cwe-022"], + "description": "Arbitrary file write during zip extraction", + "name": "js/zipslip" + }, + "tool": { "name": "CodeQL", "guid": null, "version": "2.4.0" }, + "most_recent_instance": { + "ref": "refs/heads/main", + "analysis_key": ".github/workflows/codeql-analysis.yml:CodeQL-Build", + "environment": "{}", + "state": "open", + "commit_sha": "39406e42cb832f683daa691dd652a8dc36ee8930", + "message": { + "text": "This path depends on a user-provided value." + }, + "location": { + "path": "spec-main/api-session-spec.ts", + "start_line": 917, + "end_line": 917, + "start_column": 7, + "end_column": 18 + }, + "classifications": ["test"] + }, + "instances_url": "https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/4/instances", + "repository": { + "id": 1296269, + "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", + "name": "Hello-World", + "full_name": "octocat/Hello-World", + "owner": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "private": false, + "html_url": "https://github.com/octocat/Hello-World", + "description": "This your first repo!", + "fork": false, + "url": "https://api.github.com/repos/octocat/Hello-World", + "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}", + "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}", + "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}", + "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}", + "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}", + "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}", + "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}", + "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}", + "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors", + "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments", + "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads", + "events_url": "https://api.github.com/repos/octocat/Hello-World/events", + "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks", + "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}", + "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}", + "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}", + "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}", + "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}", + "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}", + "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}", + "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages", + "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges", + "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}", + "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}", + "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}", + "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}", + "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers", + "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}", + "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers", + "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription", + "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags", + "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams", + "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}", + "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks" + } + }, + { + "number": 3, + "created_at": "2020-02-13T12:29:18Z", + "url": "https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/3", + "html_url": "https://github.com/octocat/hello-world/code-scanning/3", + "state": "dismissed", + "dismissed_by": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false }, + "dismissed_at": "2020-02-14T12:29:18Z", + "dismissed_reason": "false positive", + "dismissed_comment": "This alert is not actually correct, because there's a sanitizer included in the library.", + "rule": { + "id": "js/zipslip", + "severity": "error", + "tags": ["security", "external/cwe/cwe-022"], + "description": "Arbitrary file write during zip extraction", + "name": "js/zipslip" + }, + "tool": { "name": "CodeQL", "guid": null, "version": "2.4.0" }, + "most_recent_instance": { + "ref": "refs/heads/main", + "analysis_key": ".github/workflows/codeql-analysis.yml:CodeQL-Build", + "environment": "{}", + "state": "open", + "commit_sha": "39406e42cb832f683daa691dd652a8dc36ee8930", + "message": { + "text": "This path depends on a user-provided value." + }, + "location": { + "path": "lib/ab12-gen.js", + "start_line": 917, + "end_line": 917, + "start_column": 7, + "end_column": 18 + }, + "classifications": [] + }, + "instances_url": "https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/3/instances", + "repository": { + "id": 1296269, + "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", + "name": "Hello-World", + "full_name": "octocat/Hello-World", + "owner": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "private": false, + "html_url": "https://github.com/octocat/Hello-World", + "description": "This your first repo!", + "fork": false, + "url": "https://api.github.com/repos/octocat/Hello-World", + "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}", + "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}", + "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}", + "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}", + "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}", + "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}", + "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}", + "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}", + "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors", + "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments", + "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads", + "events_url": "https://api.github.com/repos/octocat/Hello-World/events", + "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks", + "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}", + "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}", + "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}", + "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}", + "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}", + "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}", + "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}", + "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages", + "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges", + "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}", + "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}", + "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}", + "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}", + "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers", + "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}", + "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers", + "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription", + "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags", + "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams", + "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}", + "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks" + } + } + ] + }, + "codespaces-list": { + "value": { + "total_count": 3, + "codespaces": [ { "id": 1, - "name": "monalisa-octocat-hello-world-3f89ada1j3", - "environment_id": "526ce4d7-46da-494f-a4f9-cfd25b818719", + "name": "monalisa-octocat-hello-world-g4wpq6h95q", + "environment_id": "26a7c758-7299-4a73-b978-5a92a7ae98a0", "owner": { "login": "octocat", "id": 1, @@ -67648,12 +68419,12 @@ "cpus": 4 }, "prebuild": false, - "devcontainer_path": ".devcontainer/foobar/devcontainer.json", + "devcontainer_path": ".devcontainer/devcontainer.json", "created_at": "2021-10-14T00:53:30-06:00", "updated_at": "2021-10-14T00:53:32-06:00", "last_used_at": "2021-10-14T00:53:30-06:00", "state": "Available", - "url": "https://api.github.com/user/codespaces/monalisa-octocat-hello-world-3f89ada1j3", + "url": "https://api.github.com/user/codespaces/monalisa-octocat-hello-world-g4wpq6h95q", "git_status": { "ahead": 0, "behind": 0, @@ -67663,16 +68434,16 @@ }, "location": "WestUs2", "idle_timeout_minutes": 60, - "web_url": "https://monalisa-octocat-hello-world-3f89ada1j3.github.dev", - "machines_url": "https://api.github.com/user/codespaces/monalisa-octocat-hello-world-3f89ada1j3/machines", - "start_url": "https://api.github.com/user/codespaces/monalisa-octocat-hello-world-3f89ada1j3/start", - "stop_url": "https://api.github.com/user/codespaces/monalisa-octocat-hello-world-3f89ada1j3/stop", + "web_url": "https://monalisa-octocat-hello-world-g4wpq6h95q.github.dev", + "machines_url": "https://api.github.com/user/codespaces/monalisa-octocat-hello-world-g4wpq6h95q/machines", + "start_url": "https://api.github.com/user/codespaces/monalisa-octocat-hello-world-g4wpq6h95q/start", + "stop_url": "https://api.github.com/user/codespaces/monalisa-octocat-hello-world-g4wpq6h95q/stop", "recent_folders": [] }, { "id": 1, - "name": "monalisa-octocat-hello-world-f8adfad99a", - "environment_id": "6ac8cd6d-a2d0-4ae3-8cea-e135059264df", + "name": "monalisa-octocat-hello-world-3f89ada1j3", + "environment_id": "526ce4d7-46da-494f-a4f9-cfd25b818719", "owner": { "login": "octocat", "id": 1, @@ -67791,12 +68562,12 @@ "cpus": 4 }, "prebuild": false, - "devcontainer_path": ".devcontainer.json", + "devcontainer_path": ".devcontainer/foobar/devcontainer.json", "created_at": "2021-10-14T00:53:30-06:00", "updated_at": "2021-10-14T00:53:32-06:00", "last_used_at": "2021-10-14T00:53:30-06:00", "state": "Available", - "url": "https://api.github.com/user/codespaces/monalisa-octocat-hello-world-f8adfad99a", + "url": "https://api.github.com/user/codespaces/monalisa-octocat-hello-world-3f89ada1j3", "git_status": { "ahead": 0, "behind": 0, @@ -67806,158 +68577,16 @@ }, "location": "WestUs2", "idle_timeout_minutes": 60, - "web_url": "https://monalisa-octocat-hello-world-f8adfad99a.github.dev", - "machines_url": "https://api.github.com/user/codespaces/monalisa-octocat-hello-world-f8adfad99a/machines", - "start_url": "https://api.github.com/user/codespaces/monalisa-octocat-hello-world-f8adfad99a/start", - "stop_url": "https://api.github.com/user/codespaces/monalisa-octocat-hello-world-f8adfad99a/stop", + "web_url": "https://monalisa-octocat-hello-world-3f89ada1j3.github.dev", + "machines_url": "https://api.github.com/user/codespaces/monalisa-octocat-hello-world-3f89ada1j3/machines", + "start_url": "https://api.github.com/user/codespaces/monalisa-octocat-hello-world-3f89ada1j3/start", + "stop_url": "https://api.github.com/user/codespaces/monalisa-octocat-hello-world-3f89ada1j3/stop", "recent_folders": [] - } - ] - } - }, - "organization-full-default-response": { - "summary": "Default response", - "value": { - "login": "github", - "id": 1, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=", - "url": "https://api.github.com/orgs/github", - "repos_url": "https://api.github.com/orgs/github/repos", - "events_url": "https://api.github.com/orgs/github/events", - "hooks_url": "https://api.github.com/orgs/github/hooks", - "issues_url": "https://api.github.com/orgs/github/issues", - "members_url": "https://api.github.com/orgs/github/members{/member}", - "public_members_url": "https://api.github.com/orgs/github/public_members{/member}", - "avatar_url": "https://github.com/images/error/octocat_happy.gif", - "description": "A great organization", - "name": "github", - "company": "GitHub", - "blog": "https://github.com/blog", - "location": "San Francisco", - "email": "octocat@github.com", - "twitter_username": "github", - "is_verified": true, - "has_organization_projects": true, - "has_repository_projects": true, - "public_repos": 2, - "public_gists": 1, - "followers": 20, - "following": 0, - "html_url": "https://github.com/octocat", - "created_at": "2008-01-14T04:33:35Z", - "updated_at": "2014-03-03T18:58:10Z", - "type": "Organization", - "total_private_repos": 100, - "owned_private_repos": 100, - "private_gists": 81, - "disk_usage": 10000, - "collaborators": 8, - "billing_email": "mona@github.com", - "plan": { - "name": "Medium", - "space": 400, - "private_repos": 20, - "filled_seats": 4, - "seats": 5 - }, - "default_repository_permission": "read", - "members_can_create_repositories": true, - "two_factor_requirement_enabled": true, - "members_allowed_repository_creation_type": "all", - "members_can_create_public_repositories": false, - "members_can_create_private_repositories": false, - "members_can_create_internal_repositories": false, - "members_can_create_pages": true, - "members_can_fork_private_repositories": false - } - }, - "organization-full": { - "value": { - "login": "github", - "id": 1, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=", - "url": "https://api.github.com/orgs/github", - "repos_url": "https://api.github.com/orgs/github/repos", - "events_url": "https://api.github.com/orgs/github/events", - "hooks_url": "https://api.github.com/orgs/github/hooks", - "issues_url": "https://api.github.com/orgs/github/issues", - "members_url": "https://api.github.com/orgs/github/members{/member}", - "public_members_url": "https://api.github.com/orgs/github/public_members{/member}", - "avatar_url": "https://github.com/images/error/octocat_happy.gif", - "description": "A great organization", - "name": "github", - "company": "GitHub", - "blog": "https://github.com/blog", - "location": "San Francisco", - "email": "octocat@github.com", - "twitter_username": "github", - "is_verified": true, - "has_organization_projects": true, - "has_repository_projects": true, - "public_repos": 2, - "public_gists": 1, - "followers": 20, - "following": 0, - "html_url": "https://github.com/octocat", - "created_at": "2008-01-14T04:33:35Z", - "type": "Organization", - "total_private_repos": 100, - "owned_private_repos": 100, - "private_gists": 81, - "disk_usage": 10000, - "collaborators": 8, - "billing_email": "mona@github.com", - "plan": { "name": "Medium", "space": 400, "private_repos": 20 }, - "default_repository_permission": "read", - "members_can_create_repositories": true, - "two_factor_requirement_enabled": true, - "members_allowed_repository_creation_type": "all", - "members_can_create_public_repositories": false, - "members_can_create_private_repositories": false, - "members_can_create_internal_repositories": false, - "members_can_create_pages": true, - "members_can_create_public_pages": true, - "members_can_create_private_pages": true, - "members_can_fork_private_repositories": false, - "updated_at": "2014-03-03T18:58:10Z" - } - }, - "org-actions-cache-usage-by-repo": { - "value": { - "total_count": 2, - "repository_cache_usages": [ - { - "full_name": "octo-org/Hello-World", - "active_caches_size_in_bytes": 2322142, - "active_caches_count": 3 }, { - "full_name": "octo-org/server", - "active_caches_size_in_bytes": 1022142, - "active_caches_count": 2 - } - ] - } - }, - "oidc-custom-sub": { - "value": { "include_claim_keys": ["repo", "context"] } - }, - "actions-organization-permissions": { - "value": { - "enabled_repositories": "all", - "allowed_actions": "selected", - "selected_actions_url": "https://api.github.com/organizations/42/actions/permissions/selected-actions" - } - }, - "repository-paginated": { - "value": { - "total_count": 1, - "repositories": [ - { - "id": 1296269, - "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", - "name": "Hello-World", - "full_name": "octocat/Hello-World", + "id": 1, + "name": "monalisa-octocat-hello-world-f8adfad99a", + "environment_id": "6ac8cd6d-a2d0-4ae3-8cea-e135059264df", "owner": { "login": "octocat", "id": 1, @@ -67978,190 +68607,7 @@ "type": "User", "site_admin": false }, - "private": false, - "html_url": "https://github.com/octocat/Hello-World", - "description": "This your first repo!", - "fork": false, - "url": "https://api.github.com/repos/octocat/Hello-World", - "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}", - "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}", - "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}", - "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}", - "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}", - "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}", - "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}", - "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}", - "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}", - "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors", - "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments", - "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads", - "events_url": "https://api.github.com/repos/octocat/Hello-World/events", - "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks", - "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}", - "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}", - "git_url": "git:github.com/octocat/Hello-World.git", - "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}", - "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}", - "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}", - "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}", - "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}", - "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages", - "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges", - "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}", - "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}", - "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}", - "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}", - "ssh_url": "git@github.com:octocat/Hello-World.git", - "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers", - "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}", - "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers", - "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription", - "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags", - "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams", - "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}", - "clone_url": "https://github.com/octocat/Hello-World.git", - "mirror_url": "git:git.example.com/octocat/Hello-World", - "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks", - "svn_url": "https://svn.github.com/octocat/Hello-World", - "homepage": "https://github.com", - "language": null, - "forks_count": 9, - "stargazers_count": 80, - "watchers_count": 80, - "size": 108, - "default_branch": "master", - "open_issues_count": 0, - "is_template": true, - "topics": ["octocat", "atom", "electron", "api"], - "has_issues": true, - "has_projects": true, - "has_wiki": true, - "has_pages": false, - "has_downloads": true, - "archived": false, - "disabled": false, - "visibility": "public", - "pushed_at": "2011-01-26T19:06:43Z", - "created_at": "2011-01-26T19:01:12Z", - "updated_at": "2011-01-26T19:14:43Z", - "permissions": { "admin": false, "push": false, "pull": true }, - "allow_rebase_merge": true, - "template_repository": null, - "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O", - "allow_squash_merge": true, - "allow_auto_merge": false, - "delete_branch_on_merge": true, - "allow_merge_commit": true, - "subscribers_count": 42, - "network_count": 0, - "license": { - "key": "mit", - "name": "MIT License", - "url": "https://api.github.com/licenses/mit", - "spdx_id": "MIT", - "node_id": "MDc6TGljZW5zZW1pdA==", - "html_url": "https://github.com/licenses/mit" - }, - "forks": 1, - "open_issues": 1, - "watchers": 1 - } - ] - } - }, - "runner-groups-org": { - "value": { - "total_count": 3, - "runner_groups": [ - { - "id": 1, - "name": "Default", - "visibility": "all", - "default": true, - "runners_url": "https://api.github.com/orgs/octo-org/actions/runner_groups/1/runners", - "inherited": false, - "allows_public_repositories": true, - "restricted_to_workflows": false, - "selected_workflows": [], - "workflow_restrictions_read_only": false - }, - { - "id": 2, - "name": "octo-runner-group", - "visibility": "selected", - "default": false, - "selected_repositories_url": "https://api.github.com/orgs/octo-org/actions/runner_groups/2/repositories", - "runners_url": "https://api.github.com/orgs/octo-org/actions/runner_groups/2/runners", - "inherited": true, - "allows_public_repositories": true, - "restricted_to_workflows": true, - "selected_workflows": [ - "octo-org/octo-repo/.github/workflows/deploy.yaml@refs/heads/main" - ], - "workflow_restrictions_read_only": true - }, - { - "id": 3, - "name": "expensive-hardware", - "visibility": "private", - "default": false, - "runners_url": "https://api.github.com/orgs/octo-org/actions/runner_groups/3/runners", - "inherited": false, - "allows_public_repositories": true, - "restricted_to_workflows": false, - "selected_workflows": [ - "octo-org/octo-repo/.github/workflows/deploy.yaml@refs/heads/main" - ], - "workflow_restrictions_read_only": false - } - ] - } - }, - "runner-group": { - "value": { - "id": 2, - "name": "octo-runner-group", - "visibility": "selected", - "default": false, - "selected_repositories_url": "https://api.github.com/orgs/octo-org/actions/runner-groups/2/repositories", - "runners_url": "https://api.github.com/orgs/octo-org/actions/runner_groups/2/runners", - "inherited": false, - "allows_public_repositories": true, - "restricted_to_workflows": true, - "selected_workflows": [ - "octo-org/octo-repo/.github/workflows/deploy.yaml@refs/heads/main" - ], - "workflow_restrictions_read_only": false - } - }, - "runner-group-item": { - "value": { - "id": 2, - "name": "octo-runner-group", - "visibility": "selected", - "default": false, - "selected_repositories_url": "https://api.github.com/orgs/octo-org/actions/runner_groups/2/repositories", - "runners_url": "https://api.github.com/orgs/octo-org/actions/runner_groups/2/runners", - "inherited": false, - "allows_public_repositories": true, - "restricted_to_workflows": true, - "selected_workflows": [ - "octo-org/octo-repo/.github/workflows/deploy.yaml@refs/heads/main" - ], - "workflow_restrictions_read_only": false - } - }, - "minimal-repository-paginated": { - "value": { - "total_count": 1, - "repositories": [ - { - "id": 1296269, - "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", - "name": "Hello-World", - "full_name": "octocat/Hello-World", - "owner": { + "billable_owner": { "login": "octocat", "id": 1, "node_id": "MDQ6VXNlcjE=", @@ -68181,75 +68627,7 @@ "type": "User", "site_admin": false }, - "private": false, - "html_url": "https://github.com/octocat/Hello-World", - "description": "This your first repo!", - "fork": false, - "url": "https://api.github.com/repos/octocat/Hello-World", - "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}", - "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}", - "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}", - "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}", - "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}", - "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}", - "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}", - "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}", - "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}", - "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors", - "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments", - "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads", - "events_url": "https://api.github.com/repos/octocat/Hello-World/events", - "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks", - "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}", - "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}", - "git_url": "git:github.com/octocat/Hello-World.git", - "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}", - "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}", - "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}", - "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}", - "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}", - "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages", - "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges", - "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}", - "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}", - "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}", - "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}", - "ssh_url": "git@github.com:octocat/Hello-World.git", - "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers", - "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}", - "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers", - "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription", - "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags", - "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams", - "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}", - "clone_url": "https://github.com/octocat/Hello-World.git", - "mirror_url": "git:git.example.com/octocat/Hello-World", - "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks", - "svn_url": "https://svn.github.com/octocat/Hello-World", - "homepage": "https://github.com", - "language": null, - "forks_count": 9, - "stargazers_count": 80, - "watchers_count": 80, - "size": 108, - "default_branch": "master", - "open_issues_count": 0, - "is_template": true, - "topics": ["octocat", "atom", "electron", "api"], - "has_issues": true, - "has_projects": true, - "has_wiki": true, - "has_pages": false, - "has_downloads": true, - "archived": false, - "disabled": false, - "visibility": "public", - "pushed_at": "2011-01-26T19:06:43Z", - "created_at": "2011-01-26T19:01:12Z", - "updated_at": "2011-01-26T19:14:43Z", - "permissions": { "admin": false, "push": false, "pull": true }, - "template_repository": { + "repository": { "id": 1296269, "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", "name": "Hello-World", @@ -68316,446 +68694,41 @@ "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags", "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams", "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}", - "clone_url": "https://github.com/octocat/Hello-World.git", - "mirror_url": "git:git.example.com/octocat/Hello-World", - "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks", - "svn_url": "https://svn.github.com/octocat/Hello-World", - "homepage": "https://github.com", - "organization": null, - "language": null, - "forks": 9, - "forks_count": 9, - "stargazers_count": 80, - "watchers_count": 80, - "watchers": 80, - "size": 108, - "default_branch": "master", - "open_issues": 0, - "open_issues_count": 0, - "is_template": true, - "license": { - "key": "mit", - "name": "MIT License", - "url": "https://api.github.com/licenses/mit", - "spdx_id": "MIT", - "node_id": "MDc6TGljZW5zZW1pdA==", - "html_url": "https://api.github.com/licenses/mit" - }, - "topics": ["octocat", "atom", "electron", "api"], - "has_issues": true, - "has_projects": true, - "has_wiki": true, - "has_pages": false, - "has_downloads": true, - "archived": false, - "disabled": false, - "visibility": "public", - "pushed_at": "2011-01-26T19:06:43Z", - "created_at": "2011-01-26T19:01:12Z", - "updated_at": "2011-01-26T19:14:43Z", - "permissions": { "admin": false, "push": false, "pull": true }, - "allow_rebase_merge": true, - "template_repository": null, - "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O", - "allow_squash_merge": true, - "allow_auto_merge": false, - "delete_branch_on_merge": true, - "allow_merge_commit": true, - "subscribers_count": 42, - "network_count": 0 + "hooks_url": "http://api.github.com/repos/octocat/Hello-World/hooks" }, - "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O", - "delete_branch_on_merge": true, - "subscribers_count": 42, - "network_count": 0, - "license": { - "key": "mit", - "name": "MIT License", - "url": "https://api.github.com/licenses/mit", - "spdx_id": "MIT", - "node_id": "MDc6TGljZW5zZW1pdA==" + "machine": { + "name": "standardLinux", + "display_name": "4 cores, 8 GB RAM, 64 GB storage", + "operating_system": "linux", + "storage_in_bytes": 68719476736, + "memory_in_bytes": 8589934592, + "cpus": 4 }, - "forks": 1, - "open_issues": 1, - "watchers": 1 - } - ] - } - }, - "organization-actions-secret-paginated": { - "value": { - "total_count": 3, - "secrets": [ - { - "name": "GIST_ID", - "created_at": "2019-08-10T14:59:22Z", - "updated_at": "2020-01-10T14:59:22Z", - "visibility": "private" - }, - { - "name": "DEPLOY_TOKEN", - "created_at": "2019-08-10T14:59:22Z", - "updated_at": "2020-01-10T14:59:22Z", - "visibility": "all" - }, - { - "name": "GH_TOKEN", - "created_at": "2019-08-10T14:59:22Z", - "updated_at": "2020-01-10T14:59:22Z", - "visibility": "selected", - "selected_repositories_url": "https://api.github.com/orgs/octo-org/actions/secrets/SUPER_SECRET/repositories" - } - ] - } - }, - "actions-public-key": { - "value": { - "key_id": "012345678912345678", - "key": "2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvv1234" - } - }, - "organization-actions-secret": { - "value": { - "name": "GH_TOKEN", - "created_at": "2019-08-10T14:59:22Z", - "updated_at": "2020-01-10T14:59:22Z", - "visibility": "selected", - "selected_repositories_url": "https://api.github.com/orgs/octo-org/actions/secrets/SUPER_SECRET/repositories" - } - }, - "public-repository-paginated": { - "value": { - "total_count": 1, - "repositories": [ - { - "id": 1296269, - "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", - "name": "Hello-World", - "full_name": "octocat/Hello-World", - "owner": { - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https://github.com/images/error/octocat_happy.gif", - "gravatar_id": "", - "url": "https://api.github.com/users/octocat", - "html_url": "https://github.com/octocat", - "followers_url": "https://api.github.com/users/octocat/followers", - "following_url": "https://api.github.com/users/octocat/following{/other_user}", - "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", - "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", - "organizations_url": "https://api.github.com/users/octocat/orgs", - "repos_url": "https://api.github.com/users/octocat/repos", - "events_url": "https://api.github.com/users/octocat/events{/privacy}", - "received_events_url": "https://api.github.com/users/octocat/received_events", - "type": "User", - "site_admin": false + "prebuild": false, + "devcontainer_path": ".devcontainer.json", + "created_at": "2021-10-14T00:53:30-06:00", + "updated_at": "2021-10-14T00:53:32-06:00", + "last_used_at": "2021-10-14T00:53:30-06:00", + "state": "Available", + "url": "https://api.github.com/user/codespaces/monalisa-octocat-hello-world-f8adfad99a", + "git_status": { + "ahead": 0, + "behind": 0, + "has_unpushed_changes": false, + "has_uncommitted_changes": false, + "ref": "main" }, - "private": false, - "html_url": "https://github.com/octocat/Hello-World", - "description": "This your first repo!", - "fork": false, - "url": "https://api.github.com/repos/octocat/Hello-World", - "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}", - "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}", - "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}", - "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}", - "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}", - "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}", - "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}", - "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}", - "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}", - "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors", - "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments", - "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads", - "events_url": "https://api.github.com/repos/octocat/Hello-World/events", - "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks", - "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}", - "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}", - "git_url": "git:github.com/octocat/Hello-World.git", - "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}", - "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}", - "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}", - "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}", - "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}", - "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages", - "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges", - "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}", - "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}", - "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}", - "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}", - "ssh_url": "git@github.com:octocat/Hello-World.git", - "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers", - "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}", - "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers", - "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription", - "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags", - "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams", - "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}", - "hooks_url": "http://api.github.com/repos/octocat/Hello-World/hooks" + "location": "WestUs2", + "idle_timeout_minutes": 60, + "web_url": "https://monalisa-octocat-hello-world-f8adfad99a.github.dev", + "machines_url": "https://api.github.com/user/codespaces/monalisa-octocat-hello-world-f8adfad99a/machines", + "start_url": "https://api.github.com/user/codespaces/monalisa-octocat-hello-world-f8adfad99a/start", + "stop_url": "https://api.github.com/user/codespaces/monalisa-octocat-hello-world-f8adfad99a/stop", + "recent_folders": [] } ] } }, - "simple-user-items": { - "value": [ - { - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https://github.com/images/error/octocat_happy.gif", - "gravatar_id": "", - "url": "https://api.github.com/users/octocat", - "html_url": "https://github.com/octocat", - "followers_url": "https://api.github.com/users/octocat/followers", - "following_url": "https://api.github.com/users/octocat/following{/other_user}", - "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", - "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", - "organizations_url": "https://api.github.com/users/octocat/orgs", - "repos_url": "https://api.github.com/users/octocat/repos", - "events_url": "https://api.github.com/users/octocat/events{/privacy}", - "received_events_url": "https://api.github.com/users/octocat/received_events", - "type": "User", - "site_admin": false - } - ] - }, - "code-scanning-organization-alert-items": { - "value": [ - { - "number": 4, - "created_at": "2020-02-13T12:29:18Z", - "url": "https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/4", - "html_url": "https://github.com/octocat/hello-world/code-scanning/4", - "state": "open", - "dismissed_by": null, - "dismissed_at": null, - "dismissed_reason": null, - "dismissed_comment": null, - "rule": { - "id": "js/zipslip", - "severity": "error", - "tags": ["security", "external/cwe/cwe-022"], - "description": "Arbitrary file write during zip extraction", - "name": "js/zipslip" - }, - "tool": { "name": "CodeQL", "guid": null, "version": "2.4.0" }, - "most_recent_instance": { - "ref": "refs/heads/main", - "analysis_key": ".github/workflows/codeql-analysis.yml:CodeQL-Build", - "environment": "{}", - "state": "open", - "commit_sha": "39406e42cb832f683daa691dd652a8dc36ee8930", - "message": { - "text": "This path depends on a user-provided value." - }, - "location": { - "path": "spec-main/api-session-spec.ts", - "start_line": 917, - "end_line": 917, - "start_column": 7, - "end_column": 18 - }, - "classifications": ["test"] - }, - "instances_url": "https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/4/instances", - "repository": { - "id": 1296269, - "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", - "name": "Hello-World", - "full_name": "octocat/Hello-World", - "owner": { - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https://github.com/images/error/octocat_happy.gif", - "gravatar_id": "", - "url": "https://api.github.com/users/octocat", - "html_url": "https://github.com/octocat", - "followers_url": "https://api.github.com/users/octocat/followers", - "following_url": "https://api.github.com/users/octocat/following{/other_user}", - "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", - "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", - "organizations_url": "https://api.github.com/users/octocat/orgs", - "repos_url": "https://api.github.com/users/octocat/repos", - "events_url": "https://api.github.com/users/octocat/events{/privacy}", - "received_events_url": "https://api.github.com/users/octocat/received_events", - "type": "User", - "site_admin": false - }, - "private": false, - "html_url": "https://github.com/octocat/Hello-World", - "description": "This your first repo!", - "fork": false, - "url": "https://api.github.com/repos/octocat/Hello-World", - "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}", - "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}", - "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}", - "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}", - "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}", - "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}", - "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}", - "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}", - "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}", - "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors", - "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments", - "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads", - "events_url": "https://api.github.com/repos/octocat/Hello-World/events", - "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks", - "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}", - "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}", - "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}", - "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}", - "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}", - "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}", - "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}", - "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages", - "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges", - "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}", - "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}", - "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}", - "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}", - "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers", - "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}", - "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers", - "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription", - "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags", - "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams", - "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}", - "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks" - } - }, - { - "number": 3, - "created_at": "2020-02-13T12:29:18Z", - "url": "https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/3", - "html_url": "https://github.com/octocat/hello-world/code-scanning/3", - "state": "dismissed", - "dismissed_by": { - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https://github.com/images/error/octocat_happy.gif", - "gravatar_id": "", - "url": "https://api.github.com/users/octocat", - "html_url": "https://github.com/octocat", - "followers_url": "https://api.github.com/users/octocat/followers", - "following_url": "https://api.github.com/users/octocat/following{/other_user}", - "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", - "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", - "organizations_url": "https://api.github.com/users/octocat/orgs", - "repos_url": "https://api.github.com/users/octocat/repos", - "events_url": "https://api.github.com/users/octocat/events{/privacy}", - "received_events_url": "https://api.github.com/users/octocat/received_events", - "type": "User", - "site_admin": false - }, - "dismissed_at": "2020-02-14T12:29:18Z", - "dismissed_reason": "false positive", - "dismissed_comment": "This alert is not actually correct, because there's a sanitizer included in the library.", - "rule": { - "id": "js/zipslip", - "severity": "error", - "tags": ["security", "external/cwe/cwe-022"], - "description": "Arbitrary file write during zip extraction", - "name": "js/zipslip" - }, - "tool": { "name": "CodeQL", "guid": null, "version": "2.4.0" }, - "most_recent_instance": { - "ref": "refs/heads/main", - "analysis_key": ".github/workflows/codeql-analysis.yml:CodeQL-Build", - "environment": "{}", - "state": "open", - "commit_sha": "39406e42cb832f683daa691dd652a8dc36ee8930", - "message": { - "text": "This path depends on a user-provided value." - }, - "location": { - "path": "lib/ab12-gen.js", - "start_line": 917, - "end_line": 917, - "start_column": 7, - "end_column": 18 - }, - "classifications": [] - }, - "instances_url": "https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/3/instances", - "repository": { - "id": 1296269, - "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", - "name": "Hello-World", - "full_name": "octocat/Hello-World", - "owner": { - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https://github.com/images/error/octocat_happy.gif", - "gravatar_id": "", - "url": "https://api.github.com/users/octocat", - "html_url": "https://github.com/octocat", - "followers_url": "https://api.github.com/users/octocat/followers", - "following_url": "https://api.github.com/users/octocat/following{/other_user}", - "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", - "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", - "organizations_url": "https://api.github.com/users/octocat/orgs", - "repos_url": "https://api.github.com/users/octocat/repos", - "events_url": "https://api.github.com/users/octocat/events{/privacy}", - "received_events_url": "https://api.github.com/users/octocat/received_events", - "type": "User", - "site_admin": false - }, - "private": false, - "html_url": "https://github.com/octocat/Hello-World", - "description": "This your first repo!", - "fork": false, - "url": "https://api.github.com/repos/octocat/Hello-World", - "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}", - "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}", - "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}", - "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}", - "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}", - "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}", - "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}", - "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}", - "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}", - "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors", - "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments", - "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads", - "events_url": "https://api.github.com/repos/octocat/Hello-World/events", - "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks", - "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}", - "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}", - "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}", - "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}", - "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}", - "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}", - "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}", - "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages", - "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges", - "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}", - "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}", - "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}", - "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}", - "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers", - "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}", - "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers", - "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription", - "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags", - "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams", - "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}", - "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks" - } - } - ] - }, "credential-authorization-items": { "value": [ { @@ -73205,7 +73178,8 @@ { "id": 1, "key_prefix": "TICKET-", - "url_template": "https://example.com/TICKET?query=" + "url_template": "https://example.com/TICKET?query=", + "is_alphanumeric": true } ] }, @@ -73213,7 +73187,8 @@ "value": { "id": 1, "key_prefix": "TICKET-", - "url_template": "https://example.com/TICKET?query=" + "url_template": "https://example.com/TICKET?query=", + "is_alphanumeric": true } }, "short-branch-with-protection-items": { @@ -75323,12 +75298,14 @@ { "name": "GH_TOKEN", "created_at": "2019-08-10T14:59:22Z", - "updated_at": "2020-01-10T14:59:22Z" + "updated_at": "2020-01-10T14:59:22Z", + "visibility": "all" }, { "name": "GIST_ID", "created_at": "2020-01-10T10:59:22Z", - "updated_at": "2020-01-11T11:59:22Z" + "updated_at": "2020-01-11T11:59:22Z", + "visibility": "all" } ] } @@ -86104,16 +86081,16 @@ } } }, - "internal_error": { - "description": "Internal Error", + "conflict": { + "description": "Conflict", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/basic-error" } } } }, - "conflict": { - "description": "Conflict", + "internal_error": { + "description": "Internal Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/basic-error" } @@ -86274,7 +86251,7 @@ "required": true, "schema": { "type": "integer" } }, - "enterprise_or_org": { + "enterprise-or-org": { "name": "enterprise_or_org", "description": "The slug version of the enterprise name or the login of an organization.", "in": "path", @@ -86979,7 +86956,7 @@ "required": true, "schema": { "type": "integer" } }, - "tag_protection_id": { + "tag-protection-id": { "name": "tag_protection_id", "description": "The unique identifier of the tag protection.", "in": "path", diff --git a/cache/ghes-3.2.json b/cache/ghes-3.2.json index ebb02ff38..2d40b86dd 100644 --- a/cache/ghes-3.2.json +++ b/cache/ghes-3.2.json @@ -1,7 +1,7 @@ { "openapi": "3.0.3", "info": { - "version": "6.2.1", + "version": "6.3.0", "title": "GitHub's official OpenAPI spec + Octokit extension", "description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs", "license": { "name": "MIT", "url": "https://spdx.org/licenses/MIT" }, @@ -8629,7 +8629,7 @@ "selected_repository_ids": { "type": "array", "description": "An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/enterprise-server@3.2/rest/reference/actions#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/enterprise-server@3.2/rest/reference/actions#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-server@3.2/rest/reference/actions#remove-selected-repository-from-an-organization-secret) endpoints.", - "items": { "type": "string" } + "items": { "type": "integer" } } }, "required": ["visibility"] @@ -8640,7 +8640,7 @@ "encrypted_value": "c2VjcmV0", "key_id": "012345678912345678", "visibility": "selected", - "selected_repository_ids": ["1296269", "1296280"] + "selected_repository_ids": [1296269, 1296280] } } } @@ -21819,7 +21819,7 @@ } }, "deployment_branch_policy": { - "$ref": "#/components/schemas/deployment_branch_policy" + "$ref": "#/components/schemas/deployment-branch-policy" } }, "additionalProperties": false @@ -24610,7 +24610,7 @@ "operationId": "issues/remove-assignees", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.2/rest/reference/issues#remove-assignees-from-an-issue" + "url": "https://docs.github.com/rest/reference/issues#remove-assignees-from-an-issue" }, "parameters": [ { "$ref": "#/components/parameters/owner" }, @@ -24618,6 +24618,7 @@ { "$ref": "#/components/parameters/issue-number" } ], "requestBody": { + "required": true, "content": { "application/json": { "schema": { @@ -24628,7 +24629,8 @@ "description": "Usernames of assignees to remove from an issue. _NOTE: Only users with push access can remove assignees from an issue. Assignees are silently ignored otherwise._", "items": { "type": "string" } } - } + }, + "required": ["assignees"] }, "examples": { "default": { "value": { "assignees": ["hubot", "other_user"] } } @@ -40713,7 +40715,7 @@ ], "nullable": true }, - "author_association": { + "author-association": { "title": "author_association", "type": "string", "example": "OWNER", @@ -40879,7 +40881,7 @@ "$ref": "#/components/schemas/nullable-integration" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, "reactions": { "$ref": "#/components/schemas/reaction-rollup" } }, @@ -40945,7 +40947,7 @@ }, "issue_url": { "type": "string", "format": "uri" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, "performed_via_github_app": { "$ref": "#/components/schemas/nullable-integration" @@ -41420,7 +41422,7 @@ "example": "2011-04-18T23:23:56Z" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" } }, "required": [ @@ -47140,7 +47142,7 @@ "created_at": { "type": "string", "format": "date-time" }, "updated_at": { "type": "string", "format": "date-time" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, "reactions": { "$ref": "#/components/schemas/reaction-rollup" } }, @@ -47185,7 +47187,7 @@ "properties": { "href": { "type": "string" } }, "required": ["href"] }, - "auto_merge": { + "auto-merge": { "title": "Auto merge", "description": "The status of auto merging a pull request.", "type": "object", @@ -47401,9 +47403,9 @@ ] }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, - "auto_merge": { "$ref": "#/components/schemas/auto_merge" }, + "auto_merge": { "$ref": "#/components/schemas/auto-merge" }, "draft": { "description": "Indicates whether or not the pull request is a draft.", "example": false, @@ -48127,7 +48129,7 @@ "example": 30, "description": "The amount of time to delay a job after the job is initially triggered. The time (in minutes) must be an integer between 0 and 43,200 (30 days)." }, - "deployment_branch_policy": { + "deployment-branch-policy": { "type": "object", "description": "The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`.", "properties": { @@ -48248,7 +48250,7 @@ } }, "deployment_branch_policy": { - "$ref": "#/components/schemas/deployment_branch_policy" + "$ref": "#/components/schemas/deployment-branch-policy" } }, "required": [ @@ -48765,7 +48767,7 @@ "$ref": "#/components/schemas/nullable-integration" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, "reactions": { "$ref": "#/components/schemas/reaction-rollup" } }, @@ -48895,7 +48897,7 @@ }, "rename": { "$ref": "#/components/schemas/issue-event-rename" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, "lock_reason": { "type": "string", "nullable": true }, "performed_via_github_app": { @@ -49598,7 +49600,7 @@ }, "issue_url": { "type": "string", "format": "uri" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, "performed_via_github_app": { "$ref": "#/components/schemas/nullable-integration" @@ -49813,7 +49815,7 @@ "body_html": { "type": "string" }, "body_text": { "type": "string" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" } }, "required": [ @@ -49920,7 +49922,7 @@ "example": "https://api.github.com/repos/octocat/Hello-World/pulls/1" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, "_links": { "type": "object", @@ -51359,9 +51361,9 @@ ] }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, - "auto_merge": { "$ref": "#/components/schemas/auto_merge" }, + "auto_merge": { "$ref": "#/components/schemas/auto-merge" }, "draft": { "description": "Indicates whether or not the pull request is a draft.", "example": false, @@ -51516,7 +51518,7 @@ "body_html": { "type": "string" }, "body_text": { "type": "string" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" } }, "required": [ @@ -51591,7 +51593,7 @@ "example": "https://api.github.com/repos/octocat/Hello-World/pulls/1" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, "_links": { "type": "object", @@ -52199,7 +52201,7 @@ "body": { "type": "string" }, "score": { "type": "number" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, "draft": { "type": "boolean" }, "repository": { "$ref": "#/components/schemas/repository" }, diff --git a/cache/ghes-3.3.json b/cache/ghes-3.3.json index 4363861fc..58b380064 100644 --- a/cache/ghes-3.3.json +++ b/cache/ghes-3.3.json @@ -1,7 +1,7 @@ { "openapi": "3.0.3", "info": { - "version": "6.2.1", + "version": "6.3.0", "title": "GitHub's official OpenAPI spec + Octokit extension", "description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs", "license": { "name": "MIT", "url": "https://spdx.org/licenses/MIT" }, @@ -8483,7 +8483,7 @@ "selected_repository_ids": { "type": "array", "description": "An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/enterprise-server@3.3/rest/reference/actions#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/enterprise-server@3.3/rest/reference/actions#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-server@3.3/rest/reference/actions#remove-selected-repository-from-an-organization-secret) endpoints.", - "items": { "type": "string" } + "items": { "type": "integer" } } }, "required": ["visibility"] @@ -8494,7 +8494,7 @@ "encrypted_value": "c2VjcmV0", "key_id": "012345678912345678", "visibility": "selected", - "selected_repository_ids": ["1296269", "1296280"] + "selected_repository_ids": [1296269, 1296280] } } } @@ -8519,7 +8519,7 @@ "category": "actions", "subcategory": "secrets" }, - "x-octokit": {} + "x-octokit": { "diff": { "ghes-3.4.json": { "type": "changed" } } } }, "delete": { "summary": "Delete an organization secret", @@ -15548,7 +15548,7 @@ }, "url_template": { "type": "string", - "description": "The URL must contain for the reference number." + "description": "The URL must contain `` for the reference number." } }, "required": ["key_prefix", "url_template"] @@ -21521,7 +21521,7 @@ } }, "deployment_branch_policy": { - "$ref": "#/components/schemas/deployment_branch_policy" + "$ref": "#/components/schemas/deployment-branch-policy" } }, "additionalProperties": false @@ -24244,7 +24244,7 @@ "operationId": "issues/remove-assignees", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.3/rest/reference/issues#remove-assignees-from-an-issue" + "url": "https://docs.github.com/rest/reference/issues#remove-assignees-from-an-issue" }, "parameters": [ { "$ref": "#/components/parameters/owner" }, @@ -24252,6 +24252,7 @@ { "$ref": "#/components/parameters/issue-number" } ], "requestBody": { + "required": true, "content": { "application/json": { "schema": { @@ -24262,7 +24263,8 @@ "description": "Usernames of assignees to remove from an issue. _NOTE: Only users with push access can remove assignees from an issue. Assignees are silently ignored otherwise._", "items": { "type": "string" } } - } + }, + "required": ["assignees"] }, "examples": { "default": { "value": { "assignees": ["hubot", "other_user"] } } @@ -37425,7 +37427,7 @@ "operationId": "dependabot/create-or-update-org-secret", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.4/rest/reference/dependabot#create-or-update-an-organization-secret" + "url": "https://docs.github.com/rest/reference/dependabot#create-or-update-an-organization-secret" }, "x-octokit": { "ghes-3.4.json": "removed" }, "responses": { "501": { "description": "Not Implemented" } } @@ -40688,7 +40690,7 @@ ], "nullable": true }, - "author_association": { + "author-association": { "title": "author_association", "type": "string", "example": "OWNER", @@ -40854,7 +40856,7 @@ "$ref": "#/components/schemas/nullable-integration" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, "reactions": { "$ref": "#/components/schemas/reaction-rollup" } }, @@ -40920,7 +40922,7 @@ }, "issue_url": { "type": "string", "format": "uri" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, "performed_via_github_app": { "$ref": "#/components/schemas/nullable-integration" @@ -41395,7 +41397,7 @@ "example": "2011-04-18T23:23:56Z" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" } }, "required": [ @@ -47526,7 +47528,7 @@ "created_at": { "type": "string", "format": "date-time" }, "updated_at": { "type": "string", "format": "date-time" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, "reactions": { "$ref": "#/components/schemas/reaction-rollup" } }, @@ -47571,7 +47573,7 @@ "properties": { "href": { "type": "string" } }, "required": ["href"] }, - "auto_merge": { + "auto-merge": { "title": "Auto merge", "description": "The status of auto merging a pull request.", "type": "object", @@ -47787,9 +47789,9 @@ ] }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, - "auto_merge": { "$ref": "#/components/schemas/auto_merge" }, + "auto_merge": { "$ref": "#/components/schemas/auto-merge" }, "draft": { "description": "Indicates whether or not the pull request is a draft.", "example": false, @@ -48513,7 +48515,7 @@ "example": 30, "description": "The amount of time to delay a job after the job is initially triggered. The time (in minutes) must be an integer between 0 and 43,200 (30 days)." }, - "deployment_branch_policy": { + "deployment-branch-policy": { "type": "object", "description": "The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`.", "properties": { @@ -48634,7 +48636,7 @@ } }, "deployment_branch_policy": { - "$ref": "#/components/schemas/deployment_branch_policy" + "$ref": "#/components/schemas/deployment-branch-policy" } }, "required": [ @@ -49151,7 +49153,7 @@ "$ref": "#/components/schemas/nullable-integration" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, "reactions": { "$ref": "#/components/schemas/reaction-rollup" } }, @@ -49281,7 +49283,7 @@ }, "rename": { "$ref": "#/components/schemas/issue-event-rename" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, "lock_reason": { "type": "string", "nullable": true }, "performed_via_github_app": { @@ -49984,7 +49986,7 @@ }, "issue_url": { "type": "string", "format": "uri" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, "performed_via_github_app": { "$ref": "#/components/schemas/nullable-integration" @@ -50199,7 +50201,7 @@ "body_html": { "type": "string" }, "body_text": { "type": "string" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" } }, "required": [ @@ -50306,7 +50308,7 @@ "example": "https://api.github.com/repos/octocat/Hello-World/pulls/1" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, "_links": { "type": "object", @@ -51758,9 +51760,9 @@ ] }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, - "auto_merge": { "$ref": "#/components/schemas/auto_merge" }, + "auto_merge": { "$ref": "#/components/schemas/auto-merge" }, "draft": { "description": "Indicates whether or not the pull request is a draft.", "example": false, @@ -51915,7 +51917,7 @@ "body_html": { "type": "string" }, "body_text": { "type": "string" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" } }, "required": [ @@ -51990,7 +51992,7 @@ "example": "https://api.github.com/repos/octocat/Hello-World/pulls/1" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, "_links": { "type": "object", @@ -52677,7 +52679,7 @@ "body": { "type": "string" }, "score": { "type": "number" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, "draft": { "type": "boolean" }, "repository": { "$ref": "#/components/schemas/repository" }, diff --git a/cache/ghes-3.4.json b/cache/ghes-3.4.json index 6835774cb..0f53414e3 100644 --- a/cache/ghes-3.4.json +++ b/cache/ghes-3.4.json @@ -1,7 +1,7 @@ { "openapi": "3.0.3", "info": { - "version": "6.2.1", + "version": "6.3.0", "title": "GitHub's official OpenAPI spec + Octokit extension", "description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs", "license": { "name": "MIT", "url": "https://spdx.org/licenses/MIT" }, @@ -8842,7 +8842,7 @@ "operationId": "actions/create-or-update-org-secret", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.4/rest/reference/actions#create-or-update-an-organization-secret" + "url": "https://docs.github.com/rest/reference/actions#create-or-update-an-organization-secret" }, "parameters": [ { "$ref": "#/components/parameters/org" }, @@ -8857,7 +8857,7 @@ "properties": { "encrypted_value": { "type": "string", - "description": "Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/enterprise-server@3.4/rest/reference/actions#get-an-organization-public-key) endpoint.", + "description": "Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/rest/reference/actions#get-an-organization-public-key) endpoint.", "pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$" }, "key_id": { @@ -8871,8 +8871,10 @@ }, "selected_repository_ids": { "type": "array", - "description": "An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/enterprise-server@3.4/rest/reference/actions#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/enterprise-server@3.4/rest/reference/actions#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-server@3.4/rest/reference/actions#remove-selected-repository-from-an-organization-secret) endpoints.", - "items": { "type": "string" } + "description": "An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/rest/reference/actions#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/rest/reference/actions#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/rest/reference/actions#remove-selected-repository-from-an-organization-secret) endpoints.", + "items": { + "anyOf": [{ "type": "integer" }, { "type": "string" }] + } } }, "required": ["visibility"] @@ -8883,7 +8885,7 @@ "encrypted_value": "c2VjcmV0", "key_id": "012345678912345678", "visibility": "selected", - "selected_repository_ids": ["1296269", "1296280"] + "selected_repository_ids": [1296269, 1296280] } } } @@ -9282,7 +9284,7 @@ "operationId": "dependabot/create-or-update-org-secret", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.4/rest/reference/dependabot#create-or-update-an-organization-secret" + "url": "https://docs.github.com/rest/reference/dependabot#create-or-update-an-organization-secret" }, "parameters": [ { "$ref": "#/components/parameters/org" }, @@ -9297,7 +9299,7 @@ "properties": { "encrypted_value": { "type": "string", - "description": "Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/enterprise-server@3.4/rest/reference/dependabot#get-an-organization-public-key) endpoint.", + "description": "Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/rest/reference/dependabot#get-an-organization-public-key) endpoint.", "pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$" }, "key_id": { @@ -9311,8 +9313,10 @@ }, "selected_repository_ids": { "type": "array", - "description": "An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/enterprise-server@3.4/rest/reference/dependabot#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/enterprise-server@3.4/rest/reference/dependabot#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-server@3.4/rest/reference/dependabot#remove-selected-repository-from-an-organization-secret) endpoints.", - "items": { "type": "string" } + "description": "An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/rest/reference/dependabot#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/rest/reference/dependabot#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/rest/reference/dependabot#remove-selected-repository-from-an-organization-secret) endpoints.", + "items": { + "anyOf": [{ "type": "string" }, { "type": "integer" }] + } } }, "required": ["visibility"] @@ -16778,7 +16782,7 @@ }, "url_template": { "type": "string", - "description": "The URL must contain for the reference number." + "description": "The URL must contain `` for the reference number." } }, "required": ["key_prefix", "url_template"] @@ -22935,7 +22939,7 @@ } }, "deployment_branch_policy": { - "$ref": "#/components/schemas/deployment_branch_policy" + "$ref": "#/components/schemas/deployment-branch-policy" } }, "additionalProperties": false @@ -25658,7 +25662,7 @@ "operationId": "issues/remove-assignees", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.4/rest/reference/issues#remove-assignees-from-an-issue" + "url": "https://docs.github.com/rest/reference/issues#remove-assignees-from-an-issue" }, "parameters": [ { "$ref": "#/components/parameters/owner" }, @@ -25666,6 +25670,7 @@ { "$ref": "#/components/parameters/issue-number" } ], "requestBody": { + "required": true, "content": { "application/json": { "schema": { @@ -25676,7 +25681,8 @@ "description": "Usernames of assignees to remove from an issue. _NOTE: Only users with push access can remove assignees from an issue. Assignees are silently ignored otherwise._", "items": { "type": "string" } } - } + }, + "required": ["assignees"] }, "examples": { "default": { "value": { "assignees": ["hubot", "other_user"] } } @@ -42413,7 +42419,7 @@ ], "nullable": true }, - "author_association": { + "author-association": { "title": "author_association", "type": "string", "example": "OWNER", @@ -42579,7 +42585,7 @@ "$ref": "#/components/schemas/nullable-integration" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, "reactions": { "$ref": "#/components/schemas/reaction-rollup" } }, @@ -42645,7 +42651,7 @@ }, "issue_url": { "type": "string", "format": "uri" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, "performed_via_github_app": { "$ref": "#/components/schemas/nullable-integration" @@ -43120,7 +43126,7 @@ "example": "2011-04-18T23:23:56Z" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" } }, "required": [ @@ -49091,7 +49097,7 @@ "created_at": { "type": "string", "format": "date-time" }, "updated_at": { "type": "string", "format": "date-time" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, "reactions": { "$ref": "#/components/schemas/reaction-rollup" } }, @@ -49136,7 +49142,7 @@ "properties": { "href": { "type": "string" } }, "required": ["href"] }, - "auto_merge": { + "auto-merge": { "title": "Auto merge", "description": "The status of auto merging a pull request.", "type": "object", @@ -49352,9 +49358,9 @@ ] }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, - "auto_merge": { "$ref": "#/components/schemas/auto_merge" }, + "auto_merge": { "$ref": "#/components/schemas/auto-merge" }, "draft": { "description": "Indicates whether or not the pull request is a draft.", "example": false, @@ -50063,7 +50069,7 @@ "example": 30, "description": "The amount of time to delay a job after the job is initially triggered. The time (in minutes) must be an integer between 0 and 43,200 (30 days)." }, - "deployment_branch_policy": { + "deployment-branch-policy": { "type": "object", "description": "The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`.", "properties": { @@ -50184,7 +50190,7 @@ } }, "deployment_branch_policy": { - "$ref": "#/components/schemas/deployment_branch_policy" + "$ref": "#/components/schemas/deployment-branch-policy" } }, "required": [ @@ -50701,7 +50707,7 @@ "$ref": "#/components/schemas/nullable-integration" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, "reactions": { "$ref": "#/components/schemas/reaction-rollup" } }, @@ -50831,7 +50837,7 @@ }, "rename": { "$ref": "#/components/schemas/issue-event-rename" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, "lock_reason": { "type": "string", "nullable": true }, "performed_via_github_app": { @@ -51534,7 +51540,7 @@ }, "issue_url": { "type": "string", "format": "uri" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, "performed_via_github_app": { "$ref": "#/components/schemas/nullable-integration" @@ -51749,7 +51755,7 @@ "body_html": { "type": "string" }, "body_text": { "type": "string" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" } }, "required": [ @@ -51856,7 +51862,7 @@ "example": "https://api.github.com/repos/octocat/Hello-World/pulls/1" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, "_links": { "type": "object", @@ -53308,9 +53314,9 @@ ] }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, - "auto_merge": { "$ref": "#/components/schemas/auto_merge" }, + "auto_merge": { "$ref": "#/components/schemas/auto-merge" }, "draft": { "description": "Indicates whether or not the pull request is a draft.", "example": false, @@ -53465,7 +53471,7 @@ "body_html": { "type": "string" }, "body_text": { "type": "string" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" } }, "required": [ @@ -53540,7 +53546,7 @@ "example": "https://api.github.com/repos/octocat/Hello-World/pulls/1" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, "_links": { "type": "object", @@ -54221,7 +54227,7 @@ "body": { "type": "string" }, "score": { "type": "number" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, "draft": { "type": "boolean" }, "repository": { "$ref": "#/components/schemas/repository" }, diff --git a/cache/ghes-3.5.json b/cache/ghes-3.5.json index 7e04b5aa1..92723820b 100644 --- a/cache/ghes-3.5.json +++ b/cache/ghes-3.5.json @@ -1,7 +1,7 @@ { "openapi": "3.0.3", "info": { - "version": "6.2.1", + "version": "6.3.0", "title": "GitHub's official OpenAPI spec + Octokit extension", "description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs", "license": { "name": "MIT", "url": "https://spdx.org/licenses/MIT" }, @@ -9218,7 +9218,7 @@ "operationId": "actions/create-or-update-org-secret", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.5/rest/reference/actions#create-or-update-an-organization-secret" + "url": "https://docs.github.com/rest/reference/actions#create-or-update-an-organization-secret" }, "parameters": [ { "$ref": "#/components/parameters/org" }, @@ -9233,7 +9233,7 @@ "properties": { "encrypted_value": { "type": "string", - "description": "Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/enterprise-server@3.5/rest/reference/actions#get-an-organization-public-key) endpoint.", + "description": "Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/rest/reference/actions#get-an-organization-public-key) endpoint.", "pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$" }, "key_id": { @@ -9247,8 +9247,10 @@ }, "selected_repository_ids": { "type": "array", - "description": "An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/enterprise-server@3.5/rest/reference/actions#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/enterprise-server@3.5/rest/reference/actions#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-server@3.5/rest/reference/actions#remove-selected-repository-from-an-organization-secret) endpoints.", - "items": { "type": "string" } + "description": "An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/rest/reference/actions#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/rest/reference/actions#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/rest/reference/actions#remove-selected-repository-from-an-organization-secret) endpoints.", + "items": { + "anyOf": [{ "type": "integer" }, { "type": "string" }] + } } }, "required": ["visibility"] @@ -9259,7 +9261,7 @@ "encrypted_value": "c2VjcmV0", "key_id": "012345678912345678", "visibility": "selected", - "selected_repository_ids": ["1296269", "1296280"] + "selected_repository_ids": [1296269, 1296280] } } } @@ -9739,7 +9741,7 @@ "operationId": "dependabot/create-or-update-org-secret", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.5/rest/reference/dependabot#create-or-update-an-organization-secret" + "url": "https://docs.github.com/rest/reference/dependabot#create-or-update-an-organization-secret" }, "parameters": [ { "$ref": "#/components/parameters/org" }, @@ -9754,7 +9756,7 @@ "properties": { "encrypted_value": { "type": "string", - "description": "Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/enterprise-server@3.5/rest/reference/dependabot#get-an-organization-public-key) endpoint.", + "description": "Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/rest/reference/dependabot#get-an-organization-public-key) endpoint.", "pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$" }, "key_id": { @@ -9768,8 +9770,10 @@ }, "selected_repository_ids": { "type": "array", - "description": "An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/enterprise-server@3.5/rest/reference/dependabot#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/enterprise-server@3.5/rest/reference/dependabot#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-server@3.5/rest/reference/dependabot#remove-selected-repository-from-an-organization-secret) endpoints.", - "items": { "type": "string" } + "description": "An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/rest/reference/dependabot#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/rest/reference/dependabot#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/rest/reference/dependabot#remove-selected-repository-from-an-organization-secret) endpoints.", + "items": { + "anyOf": [{ "type": "string" }, { "type": "integer" }] + } } }, "required": ["visibility"] @@ -17639,7 +17643,9 @@ "category": "repos", "subcategory": "autolinks" }, - "x-octokit": {} + "x-octokit": { + "diff": { "api.github.com.json": { "type": "changed" } } + } }, "post": { "summary": "Create an autolink reference for a repository", @@ -17667,7 +17673,7 @@ }, "url_template": { "type": "string", - "description": "The URL must contain for the reference number." + "description": "The URL must contain `` for the reference number." } }, "required": ["key_prefix", "url_template"] @@ -17709,7 +17715,9 @@ "category": "repos", "subcategory": "autolinks" }, - "x-octokit": {} + "x-octokit": { + "diff": { "api.github.com.json": { "type": "changed" } } + } } }, "/repos/{owner}/{repo}/autolinks/{autolink_id}": { @@ -17747,7 +17755,9 @@ "category": "repos", "subcategory": "autolinks" }, - "x-octokit": {} + "x-octokit": { + "diff": { "api.github.com.json": { "type": "changed" } } + } }, "delete": { "summary": "Delete an autolink reference from a repository", @@ -23894,7 +23904,7 @@ } }, "deployment_branch_policy": { - "$ref": "#/components/schemas/deployment_branch_policy" + "$ref": "#/components/schemas/deployment-branch-policy" } }, "additionalProperties": false @@ -26641,7 +26651,7 @@ "operationId": "issues/remove-assignees", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.5/rest/reference/issues#remove-assignees-from-an-issue" + "url": "https://docs.github.com/rest/reference/issues#remove-assignees-from-an-issue" }, "parameters": [ { "$ref": "#/components/parameters/owner" }, @@ -26649,6 +26659,7 @@ { "$ref": "#/components/parameters/issue-number" } ], "requestBody": { + "required": true, "content": { "application/json": { "schema": { @@ -26659,7 +26670,8 @@ "description": "Usernames of assignees to remove from an issue. _NOTE: Only users with push access can remove assignees from an issue. Assignees are silently ignored otherwise._", "items": { "type": "string" } } - } + }, + "required": ["assignees"] }, "examples": { "default": { "value": { "assignees": ["hubot", "other_user"] } } @@ -33088,7 +33100,7 @@ "parameters": [ { "$ref": "#/components/parameters/owner" }, { "$ref": "#/components/parameters/repo" }, - { "$ref": "#/components/parameters/tag_protection_id" } + { "$ref": "#/components/parameters/tag-protection-id" } ], "responses": { "204": { "description": "Response" }, @@ -40182,20 +40194,6 @@ "responses": { "501": { "description": "Not Implemented" } } } }, - "/orgs/{org_id}/codespaces": { - "get": { - "summary": "List codespaces for the organization", - "description": "This endpoint does not exist ghes-3.5.json. It was added in api.github.com.json", - "tags": ["codespaces"], - "operationId": "codespaces/list-in-organization", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/rest/reference/codespaces#list-in-organization" - }, - "x-octokit": { "api.github.com.json": "removed" }, - "responses": { "501": { "description": "Not Implemented" } } - } - }, "/orgs/{org}/actions/oidc/customization/sub": { "get": { "summary": "Get the customization template for an OIDC subject claim for an organization", @@ -40274,6 +40272,20 @@ "responses": { "501": { "description": "Not Implemented" } } } }, + "/orgs/{org}/codespaces": { + "get": { + "summary": "List codespaces for the organization", + "description": "This endpoint does not exist ghes-3.5.json. It was added in api.github.com.json", + "tags": ["codespaces"], + "operationId": "codespaces/list-in-organization", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/codespaces#list-in-organization" + }, + "x-octokit": { "api.github.com.json": "removed" }, + "responses": { "501": { "description": "Not Implemented" } } + } + }, "/orgs/{org}/credential-authorizations": { "get": { "summary": "List SAML SSO authorizations for an organization", @@ -41040,21 +41052,6 @@ "responses": { "501": { "description": "Not Implemented" } } } }, - "/repos/{owner}/{repo}/community/code_of_conduct": { - "get": { - "summary": "Get the code of conduct for a repository", - "description": "This endpoint does not exist ghes-3.5.json. It was added in api.github.com.json", - "tags": ["codes-of-conduct"], - "operationId": "codes-of-conduct/get-for-repo", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/rest/reference/codes-of-conduct#get-the-code-of-conduct-for-a-repository" - }, - "deprecated": true, - "x-octokit": { "api.github.com.json": "removed" }, - "responses": { "501": { "description": "Not Implemented" } } - } - }, "/repos/{owner}/{repo}/community/profile": { "get": { "summary": "Get community profile metrics", @@ -45652,7 +45649,7 @@ ], "nullable": true }, - "author_association": { + "author-association": { "title": "author_association", "type": "string", "example": "OWNER", @@ -45818,7 +45815,7 @@ "$ref": "#/components/schemas/nullable-integration" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, "reactions": { "$ref": "#/components/schemas/reaction-rollup" } }, @@ -45884,7 +45881,7 @@ }, "issue_url": { "type": "string", "format": "uri" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, "performed_via_github_app": { "$ref": "#/components/schemas/nullable-integration" @@ -46359,7 +46356,7 @@ "example": "2011-04-18T23:23:56Z" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" } }, "required": [ @@ -52560,7 +52557,7 @@ "created_at": { "type": "string", "format": "date-time" }, "updated_at": { "type": "string", "format": "date-time" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, "reactions": { "$ref": "#/components/schemas/reaction-rollup" } }, @@ -52605,7 +52602,7 @@ "properties": { "href": { "type": "string" } }, "required": ["href"] }, - "auto_merge": { + "auto-merge": { "title": "Auto merge", "description": "The status of auto merging a pull request.", "type": "object", @@ -52821,9 +52818,9 @@ ] }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, - "auto_merge": { "$ref": "#/components/schemas/auto_merge" }, + "auto_merge": { "$ref": "#/components/schemas/auto-merge" }, "draft": { "description": "Indicates whether or not the pull request is a draft.", "example": false, @@ -53532,7 +53529,7 @@ "example": 30, "description": "The amount of time to delay a job after the job is initially triggered. The time (in minutes) must be an integer between 0 and 43,200 (30 days)." }, - "deployment_branch_policy": { + "deployment-branch-policy": { "type": "object", "description": "The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`.", "properties": { @@ -53653,7 +53650,7 @@ } }, "deployment_branch_policy": { - "$ref": "#/components/schemas/deployment_branch_policy" + "$ref": "#/components/schemas/deployment-branch-policy" } }, "required": [ @@ -54170,7 +54167,7 @@ "$ref": "#/components/schemas/nullable-integration" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, "reactions": { "$ref": "#/components/schemas/reaction-rollup" } }, @@ -54300,7 +54297,7 @@ }, "rename": { "$ref": "#/components/schemas/issue-event-rename" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, "lock_reason": { "type": "string", "nullable": true }, "performed_via_github_app": { @@ -55003,7 +55000,7 @@ }, "issue_url": { "type": "string", "format": "uri" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, "performed_via_github_app": { "$ref": "#/components/schemas/nullable-integration" @@ -55218,7 +55215,7 @@ "body_html": { "type": "string" }, "body_text": { "type": "string" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" } }, "required": [ @@ -55325,7 +55322,7 @@ "example": "https://api.github.com/repos/octocat/Hello-World/pulls/1" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, "_links": { "type": "object", @@ -56777,9 +56774,9 @@ ] }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, - "auto_merge": { "$ref": "#/components/schemas/auto_merge" }, + "auto_merge": { "$ref": "#/components/schemas/auto-merge" }, "draft": { "description": "Indicates whether or not the pull request is a draft.", "example": false, @@ -56934,7 +56931,7 @@ "body_html": { "type": "string" }, "body_text": { "type": "string" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" } }, "required": [ @@ -57009,7 +57006,7 @@ "example": "https://api.github.com/repos/octocat/Hello-World/pulls/1" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, "_links": { "type": "object", @@ -57707,7 +57704,7 @@ "body": { "type": "string" }, "score": { "type": "number" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, "draft": { "type": "boolean" }, "repository": { "$ref": "#/components/schemas/repository" }, @@ -80126,7 +80123,7 @@ "required": true, "schema": { "type": "integer" } }, - "tag_protection_id": { + "tag-protection-id": { "name": "tag_protection_id", "description": "The unique identifier of the tag protection.", "in": "path", diff --git a/cache/github.ae.json b/cache/github.ae.json index 82e4b7b1c..299817fba 100644 --- a/cache/github.ae.json +++ b/cache/github.ae.json @@ -1,7 +1,7 @@ { "openapi": "3.0.3", "info": { - "version": "6.2.1", + "version": "6.3.0", "title": "GitHub's official OpenAPI spec + Octokit extension", "description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs", "license": { "name": "MIT", "url": "https://spdx.org/licenses/MIT" }, @@ -6635,7 +6635,7 @@ "selected_repository_ids": { "type": "array", "description": "An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/github-ae@latest/rest/reference/actions#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/github-ae@latest/rest/reference/actions#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/github-ae@latest/rest/reference/actions#remove-selected-repository-from-an-organization-secret) endpoints.", - "items": { "type": "string" } + "items": { "type": "integer" } } }, "required": ["visibility"] @@ -6646,7 +6646,7 @@ "encrypted_value": "c2VjcmV0", "key_id": "012345678912345678", "visibility": "selected", - "selected_repository_ids": ["1296269", "1296280"] + "selected_repository_ids": [1296269, 1296280] } } } @@ -6671,7 +6671,9 @@ "category": "actions", "subcategory": "secrets" }, - "x-octokit": {} + "x-octokit": { + "diff": { "api.github.com.json": { "type": "changed" } } + } }, "delete": { "summary": "Delete an organization secret", @@ -13728,7 +13730,9 @@ "category": "repos", "subcategory": "autolinks" }, - "x-octokit": {} + "x-octokit": { + "diff": { "api.github.com.json": { "type": "changed" } } + } }, "post": { "summary": "Create an autolink reference for a repository", @@ -13756,7 +13760,7 @@ }, "url_template": { "type": "string", - "description": "The URL must contain for the reference number." + "description": "The URL must contain `` for the reference number." } }, "required": ["key_prefix", "url_template"] @@ -13798,7 +13802,9 @@ "category": "repos", "subcategory": "autolinks" }, - "x-octokit": {} + "x-octokit": { + "diff": { "api.github.com.json": { "type": "changed" } } + } } }, "/repos/{owner}/{repo}/autolinks/{autolink_id}": { @@ -13836,7 +13842,9 @@ "category": "repos", "subcategory": "autolinks" }, - "x-octokit": {} + "x-octokit": { + "diff": { "api.github.com.json": { "type": "changed" } } + } }, "delete": { "summary": "Delete an autolink reference from a repository", @@ -19705,7 +19713,7 @@ } }, "deployment_branch_policy": { - "$ref": "#/components/schemas/deployment_branch_policy" + "$ref": "#/components/schemas/deployment-branch-policy" } }, "additionalProperties": false @@ -22470,7 +22478,7 @@ "operationId": "issues/remove-assignees", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/github-ae@latest/rest/reference/issues#remove-assignees-from-an-issue" + "url": "https://docs.github.com/rest/reference/issues#remove-assignees-from-an-issue" }, "parameters": [ { "$ref": "#/components/parameters/owner" }, @@ -22478,6 +22486,7 @@ { "$ref": "#/components/parameters/issue-number" } ], "requestBody": { + "required": true, "content": { "application/json": { "schema": { @@ -22488,7 +22497,8 @@ "description": "Usernames of assignees to remove from an issue. _NOTE: Only users with push access can remove assignees from an issue. Assignees are silently ignored otherwise._", "items": { "type": "string" } } - } + }, + "required": ["assignees"] }, "examples": { "default": { "value": { "assignees": ["hubot", "other_user"] } } @@ -34124,52 +34134,6 @@ "x-octokit": {} } }, - "/repos/{owner}/{repo}/community/code_of_conduct": { - "get": { - "summary": "Get the code of conduct for a repository", - "description": "Returns the contents of the repository's code of conduct file, if one is detected.\n\nA code of conduct is detected if there is a file named `CODE_OF_CONDUCT` in the root directory of the repository. GitHub detects which code of conduct it is using fuzzy matching.", - "tags": ["codes-of-conduct"], - "operationId": "codes-of-conduct/get-for-repo", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/rest/reference/codes-of-conduct#get-the-code-of-conduct-for-a-repository" - }, - "parameters": [ - { "$ref": "#/components/parameters/owner" }, - { "$ref": "#/components/parameters/repo" } - ], - "responses": { - "200": { - "description": "Response", - "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/code-of-conduct" }, - "examples": { - "default": { "$ref": "#/components/examples/code-of-conduct" } - } - } - } - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "previews": [ - { - "required": true, - "name": "scarlet-witch", - "note": "The Codes of Conduct API is currently available for developers to preview.\n\nTo access the API during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.scarlet-witch-preview+json\n```" - } - ], - "category": "codes-of-conduct", - "subcategory": null, - "removalDate": "2021-09-29", - "deprecationDate": "2021-09-29" - }, - "deprecated": true, - "x-octokit": {} - } - }, "/applications/grants": { "get": { "summary": "List your grants", @@ -34706,20 +34670,6 @@ "responses": { "501": { "description": "Not Implemented" } } } }, - "/orgs/{org_id}/codespaces": { - "get": { - "summary": "List codespaces for the organization", - "description": "This endpoint does not exist github.ae.json. It was added in api.github.com.json", - "tags": ["codespaces"], - "operationId": "codespaces/list-in-organization", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/rest/reference/codespaces#list-in-organization" - }, - "x-octokit": { "api.github.com.json": "removed" }, - "responses": { "501": { "description": "Not Implemented" } } - } - }, "/orgs/{org}/actions/cache/usage": { "get": { "summary": "Get GitHub Actions cache usage for an organization", @@ -35008,6 +34958,20 @@ "responses": { "501": { "description": "Not Implemented" } } } }, + "/orgs/{org}/codespaces": { + "get": { + "summary": "List codespaces for the organization", + "description": "This endpoint does not exist github.ae.json. It was added in api.github.com.json", + "tags": ["codespaces"], + "operationId": "codespaces/list-in-organization", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/codespaces#list-in-organization" + }, + "x-octokit": { "api.github.com.json": "removed" }, + "responses": { "501": { "description": "Not Implemented" } } + } + }, "/orgs/{org}/credential-authorizations": { "get": { "summary": "List SAML SSO authorizations for an organization", @@ -40357,7 +40321,7 @@ "truncated": { "type": "boolean" } } }, - "author_association": { + "author-association": { "title": "author_association", "type": "string", "example": "OWNER", @@ -40406,7 +40370,7 @@ "example": "2011-04-18T23:23:56Z" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" } }, "required": [ @@ -40814,7 +40778,7 @@ "$ref": "#/components/schemas/nullable-integration" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, "reactions": { "$ref": "#/components/schemas/reaction-rollup" } }, @@ -44442,7 +44406,7 @@ }, "required": ["enabled"] }, - "referenced_workflow": { + "referenced-workflow": { "title": "Referenced workflow", "description": "A workflow referenced/reused by the initial caller workflow", "type": "object", @@ -44590,7 +44554,7 @@ "referenced_workflows": { "type": "array", "nullable": true, - "items": { "$ref": "#/components/schemas/referenced_workflow" } + "items": { "$ref": "#/components/schemas/referenced-workflow" } }, "event": { "type": "string", "example": "push" }, "status": { @@ -46824,7 +46788,7 @@ "created_at": { "type": "string", "format": "date-time" }, "updated_at": { "type": "string", "format": "date-time" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, "reactions": { "$ref": "#/components/schemas/reaction-rollup" } }, @@ -46869,7 +46833,7 @@ "properties": { "href": { "type": "string" } }, "required": ["href"] }, - "auto_merge": { + "auto-merge": { "title": "Auto merge", "description": "The status of auto merging a pull request.", "type": "object", @@ -47085,9 +47049,9 @@ ] }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, - "auto_merge": { "$ref": "#/components/schemas/auto_merge" }, + "auto_merge": { "$ref": "#/components/schemas/auto-merge" }, "draft": { "description": "Indicates whether or not the pull request is a draft.", "example": false, @@ -47886,7 +47850,7 @@ "enum": ["User", "Team"], "example": "User" }, - "deployment_branch_policy": { + "deployment-branch-policy": { "type": "object", "description": "The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`.", "properties": { @@ -48007,7 +47971,7 @@ } }, "deployment_branch_policy": { - "$ref": "#/components/schemas/deployment_branch_policy" + "$ref": "#/components/schemas/deployment-branch-policy" } }, "required": [ @@ -48072,7 +48036,7 @@ }, "issue_url": { "type": "string", "format": "uri" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, "performed_via_github_app": { "$ref": "#/components/schemas/nullable-integration" @@ -48652,7 +48616,7 @@ "$ref": "#/components/schemas/nullable-integration" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, "reactions": { "$ref": "#/components/schemas/reaction-rollup" } }, @@ -48782,7 +48746,7 @@ }, "rename": { "$ref": "#/components/schemas/issue-event-rename" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, "lock_reason": { "type": "string", "nullable": true }, "performed_via_github_app": { @@ -49485,7 +49449,7 @@ }, "issue_url": { "type": "string", "format": "uri" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, "performed_via_github_app": { "$ref": "#/components/schemas/nullable-integration" @@ -49700,7 +49664,7 @@ "body_html": { "type": "string" }, "body_text": { "type": "string" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" } }, "required": [ @@ -49807,7 +49771,7 @@ "example": "https://api.github.com/repos/octocat/Hello-World/pulls/1" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, "_links": { "type": "object", @@ -51250,9 +51214,9 @@ ] }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, - "auto_merge": { "$ref": "#/components/schemas/auto_merge" }, + "auto_merge": { "$ref": "#/components/schemas/auto-merge" }, "draft": { "description": "Indicates whether or not the pull request is a draft.", "example": false, @@ -51407,7 +51371,7 @@ "body_html": { "type": "string" }, "body_text": { "type": "string" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" } }, "required": [ @@ -51482,7 +51446,7 @@ "example": "https://api.github.com/repos/octocat/Hello-World/pulls/1" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, "_links": { "type": "object", @@ -52174,7 +52138,7 @@ "body": { "type": "string" }, "score": { "type": "number" }, "author_association": { - "$ref": "#/components/schemas/author_association" + "$ref": "#/components/schemas/author-association" }, "draft": { "type": "boolean" }, "repository": { "$ref": "#/components/schemas/repository" }, diff --git a/packages/openapi-types-ghes-3.2/package.json b/packages/openapi-types-ghes-3.2/package.json index 0f6269d69..7a0d5e8bf 100644 --- a/packages/openapi-types-ghes-3.2/package.json +++ b/packages/openapi-types-ghes-3.2/package.json @@ -12,5 +12,5 @@ "types": "types.d.ts", "author": "Gregor Martynus (https://twitter.com/gr2m)", "license": "MIT", - "octokit": { "openapi-version": "6.2.1" } + "octokit": { "openapi-version": "6.3.0" } } diff --git a/packages/openapi-types-ghes-3.2/types.d.ts b/packages/openapi-types-ghes-3.2/types.d.ts index ffe7aa840..6b4d9a006 100644 --- a/packages/openapi-types-ghes-3.2/types.d.ts +++ b/packages/openapi-types-ghes-3.2/types.d.ts @@ -5783,7 +5783,7 @@ export interface components { pem?: string; } | null; /** How the author is associated with the repository. */ - author_association: + "author-association": | "COLLABORATOR" | "CONTRIBUTOR" | "FIRST_TIMER" @@ -5862,7 +5862,7 @@ export interface components { timeline_url?: string; repository?: components["schemas"]["repository"]; performed_via_github_app?: components["schemas"]["nullable-integration"]; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; reactions?: components["schemas"]["reaction-rollup"]; }; /** Comments provide a way for people to collaborate on an issue. */ @@ -5881,7 +5881,7 @@ export interface components { created_at: string; updated_at: string; issue_url: string; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; performed_via_github_app?: components["schemas"]["nullable-integration"]; reactions?: components["schemas"]["reaction-rollup"]; }; @@ -6110,7 +6110,7 @@ export interface components { user: components["schemas"]["nullable-simple-user"]; created_at: string; updated_at: string; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; }; /** Gist Commit */ "gist-commit": { @@ -8092,7 +8092,7 @@ export interface components { user: components["schemas"]["nullable-simple-user"]; created_at: string; updated_at: string; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; reactions?: components["schemas"]["reaction-rollup"]; }; /** Branch Short */ @@ -8109,7 +8109,7 @@ export interface components { href: string; }; /** The status of auto merging a pull request. */ - auto_merge: { + "auto-merge": { enabled_by: components["schemas"]["simple-user"]; /** The merge method to use. */ merge_method: "merge" | "squash" | "rebase"; @@ -8182,8 +8182,8 @@ export interface components { review_comment: components["schemas"]["link"]; self: components["schemas"]["link"]; }; - author_association: components["schemas"]["author_association"]; - auto_merge: components["schemas"]["auto_merge"]; + author_association: components["schemas"]["author-association"]; + auto_merge: components["schemas"]["auto-merge"]; /** Indicates whether or not the pull request is a draft. */ draft?: boolean; }; @@ -8472,7 +8472,7 @@ export interface components { /** The amount of time to delay a job after the job is initially triggered. The time (in minutes) must be an integer between 0 and 43,200 (30 days). */ "wait-timer": number; /** The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`. */ - deployment_branch_policy: { + "deployment-branch-policy": { /** Whether only branches with branch protection rules can deploy to this environment. If `protected_branches` is `true`, `custom_branch_policies` must be `false`; if `protected_branches` is `false`, `custom_branch_policies` must be `true`. */ protected_branches: boolean; /** Whether only branches that match the specified name patterns can deploy to this environment. If `custom_branch_policies` is `true`, `protected_branches` must be `false`; if `custom_branch_policies` is `false`, `protected_branches` must be `true`. */ @@ -8513,7 +8513,7 @@ export interface components { node_id: string; type: string; }>)[]; - deployment_branch_policy?: components["schemas"]["deployment_branch_policy"]; + deployment_branch_policy?: components["schemas"]["deployment-branch-policy"]; }; /** Short Blob */ "short-blob": { @@ -8718,7 +8718,7 @@ export interface components { timeline_url?: string; repository?: components["schemas"]["repository"]; performed_via_github_app?: components["schemas"]["nullable-integration"]; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; reactions?: components["schemas"]["reaction-rollup"]; } | null; /** Issue Event Label */ @@ -8771,7 +8771,7 @@ export interface components { milestone?: components["schemas"]["issue-event-milestone"]; project_card?: components["schemas"]["issue-event-project-card"]; rename?: components["schemas"]["issue-event-rename"]; - author_association?: components["schemas"]["author_association"]; + author_association?: components["schemas"]["author-association"]; lock_reason?: string | null; performed_via_github_app?: components["schemas"]["nullable-integration"]; }; @@ -9071,7 +9071,7 @@ export interface components { created_at: string; updated_at: string; issue_url: string; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; performed_via_github_app?: components["schemas"]["nullable-integration"]; reactions?: components["schemas"]["reaction-rollup"]; }; @@ -9157,7 +9157,7 @@ export interface components { commit_id: string; body_html?: string; body_text?: string; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; }; /** Pull Request Review Comments are comments on a portion of the Pull Request's diff. */ "pull-request-review-comment": { @@ -9192,7 +9192,7 @@ export interface components { html_url: string; /** URL for the pull request that the review comment belongs to. */ pull_request_url: string; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; _links: { self: { href: string; @@ -9776,8 +9776,8 @@ export interface components { review_comment: components["schemas"]["link"]; self: components["schemas"]["link"]; }; - author_association: components["schemas"]["author_association"]; - auto_merge: components["schemas"]["auto_merge"]; + author_association: components["schemas"]["author-association"]; + auto_merge: components["schemas"]["auto-merge"]; /** Indicates whether or not the pull request is a draft. */ draft?: boolean; merged: boolean; @@ -9829,7 +9829,7 @@ export interface components { commit_id: string; body_html?: string; body_text?: string; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; }; /** Legacy Review Comment */ "review-comment": { @@ -9850,7 +9850,7 @@ export interface components { updated_at: string; html_url: string; pull_request_url: string; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; _links: { self: components["schemas"]["link"]; html: components["schemas"]["link"]; @@ -10102,7 +10102,7 @@ export interface components { }; body?: string; score: number; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; draft?: boolean; repository?: components["schemas"]["repository"]; body_html?: string; @@ -15318,7 +15318,7 @@ export interface operations { /** Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret. */ visibility: "all" | "private" | "selected"; /** An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/enterprise-server@3.2/rest/reference/actions#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/enterprise-server@3.2/rest/reference/actions#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-server@3.2/rest/reference/actions#remove-selected-repository-from-an-organization-secret) endpoints. */ - selected_repository_ids?: string[]; + selected_repository_ids?: number[]; }; }; }; @@ -22946,7 +22946,7 @@ export interface operations { id?: number; }[] | null; - deployment_branch_policy?: components["schemas"]["deployment_branch_policy"]; + deployment_branch_policy?: components["schemas"]["deployment-branch-policy"]; } | null; }; }; @@ -24554,7 +24554,7 @@ export interface operations { content: { "application/json": { /** Usernames of assignees to remove from an issue. _NOTE: Only users with push access can remove assignees from an issue. Assignees are silently ignored otherwise._ */ - assignees?: string[]; + assignees: string[]; }; }; }; diff --git a/packages/openapi-types-ghes-3.3/package.json b/packages/openapi-types-ghes-3.3/package.json index 82ce14c6a..c6abca73e 100644 --- a/packages/openapi-types-ghes-3.3/package.json +++ b/packages/openapi-types-ghes-3.3/package.json @@ -12,5 +12,5 @@ "types": "types.d.ts", "author": "Gregor Martynus (https://twitter.com/gr2m)", "license": "MIT", - "octokit": { "openapi-version": "6.2.1" } + "octokit": { "openapi-version": "6.3.0" } } diff --git a/packages/openapi-types-ghes-3.3/types.d.ts b/packages/openapi-types-ghes-3.3/types.d.ts index 58d11352f..59fe9b3b7 100644 --- a/packages/openapi-types-ghes-3.3/types.d.ts +++ b/packages/openapi-types-ghes-3.3/types.d.ts @@ -5986,7 +5986,7 @@ export interface components { pem?: string; } | null; /** How the author is associated with the repository. */ - author_association: + "author-association": | "COLLABORATOR" | "CONTRIBUTOR" | "FIRST_TIMER" @@ -6065,7 +6065,7 @@ export interface components { timeline_url?: string; repository?: components["schemas"]["repository"]; performed_via_github_app?: components["schemas"]["nullable-integration"]; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; reactions?: components["schemas"]["reaction-rollup"]; }; /** Comments provide a way for people to collaborate on an issue. */ @@ -6084,7 +6084,7 @@ export interface components { created_at: string; updated_at: string; issue_url: string; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; performed_via_github_app?: components["schemas"]["nullable-integration"]; reactions?: components["schemas"]["reaction-rollup"]; }; @@ -6313,7 +6313,7 @@ export interface components { user: components["schemas"]["nullable-simple-user"]; created_at: string; updated_at: string; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; }; /** Gist Commit */ "gist-commit": { @@ -8434,7 +8434,7 @@ export interface components { user: components["schemas"]["nullable-simple-user"]; created_at: string; updated_at: string; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; reactions?: components["schemas"]["reaction-rollup"]; }; /** Branch Short */ @@ -8451,7 +8451,7 @@ export interface components { href: string; }; /** The status of auto merging a pull request. */ - auto_merge: { + "auto-merge": { enabled_by: components["schemas"]["simple-user"]; /** The merge method to use. */ merge_method: "merge" | "squash" | "rebase"; @@ -8524,8 +8524,8 @@ export interface components { review_comment: components["schemas"]["link"]; self: components["schemas"]["link"]; }; - author_association: components["schemas"]["author_association"]; - auto_merge: components["schemas"]["auto_merge"]; + author_association: components["schemas"]["author-association"]; + auto_merge: components["schemas"]["auto-merge"]; /** Indicates whether or not the pull request is a draft. */ draft?: boolean; }; @@ -8814,7 +8814,7 @@ export interface components { /** The amount of time to delay a job after the job is initially triggered. The time (in minutes) must be an integer between 0 and 43,200 (30 days). */ "wait-timer": number; /** The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`. */ - deployment_branch_policy: { + "deployment-branch-policy": { /** Whether only branches with branch protection rules can deploy to this environment. If `protected_branches` is `true`, `custom_branch_policies` must be `false`; if `protected_branches` is `false`, `custom_branch_policies` must be `true`. */ protected_branches: boolean; /** Whether only branches that match the specified name patterns can deploy to this environment. If `custom_branch_policies` is `true`, `protected_branches` must be `false`; if `custom_branch_policies` is `false`, `protected_branches` must be `true`. */ @@ -8855,7 +8855,7 @@ export interface components { node_id: string; type: string; }>)[]; - deployment_branch_policy?: components["schemas"]["deployment_branch_policy"]; + deployment_branch_policy?: components["schemas"]["deployment-branch-policy"]; }; /** Short Blob */ "short-blob": { @@ -9060,7 +9060,7 @@ export interface components { timeline_url?: string; repository?: components["schemas"]["repository"]; performed_via_github_app?: components["schemas"]["nullable-integration"]; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; reactions?: components["schemas"]["reaction-rollup"]; } | null; /** Issue Event Label */ @@ -9113,7 +9113,7 @@ export interface components { milestone?: components["schemas"]["issue-event-milestone"]; project_card?: components["schemas"]["issue-event-project-card"]; rename?: components["schemas"]["issue-event-rename"]; - author_association?: components["schemas"]["author_association"]; + author_association?: components["schemas"]["author-association"]; lock_reason?: string | null; performed_via_github_app?: components["schemas"]["nullable-integration"]; }; @@ -9413,7 +9413,7 @@ export interface components { created_at: string; updated_at: string; issue_url: string; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; performed_via_github_app?: components["schemas"]["nullable-integration"]; reactions?: components["schemas"]["reaction-rollup"]; }; @@ -9499,7 +9499,7 @@ export interface components { commit_id: string; body_html?: string; body_text?: string; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; }; /** Pull Request Review Comments are comments on a portion of the Pull Request's diff. */ "pull-request-review-comment": { @@ -9534,7 +9534,7 @@ export interface components { html_url: string; /** URL for the pull request that the review comment belongs to. */ pull_request_url: string; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; _links: { self: { href: string; @@ -10124,8 +10124,8 @@ export interface components { review_comment: components["schemas"]["link"]; self: components["schemas"]["link"]; }; - author_association: components["schemas"]["author_association"]; - auto_merge: components["schemas"]["auto_merge"]; + author_association: components["schemas"]["author-association"]; + auto_merge: components["schemas"]["auto-merge"]; /** Indicates whether or not the pull request is a draft. */ draft?: boolean; merged: boolean; @@ -10177,7 +10177,7 @@ export interface components { commit_id: string; body_html?: string; body_text?: string; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; }; /** Legacy Review Comment */ "review-comment": { @@ -10198,7 +10198,7 @@ export interface components { updated_at: string; html_url: string; pull_request_url: string; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; _links: { self: components["schemas"]["link"]; html: components["schemas"]["link"]; @@ -10477,7 +10477,7 @@ export interface components { }; body?: string; score: number; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; draft?: boolean; repository?: components["schemas"]["repository"]; body_html?: string; @@ -15724,7 +15724,7 @@ export interface operations { /** Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret. */ visibility: "all" | "private" | "selected"; /** An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/enterprise-server@3.3/rest/reference/actions#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/enterprise-server@3.3/rest/reference/actions#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-server@3.3/rest/reference/actions#remove-selected-repository-from-an-organization-secret) endpoints. */ - selected_repository_ids?: string[]; + selected_repository_ids?: number[]; }; }; }; @@ -19938,7 +19938,7 @@ export interface operations { "application/json": { /** The prefix appended by a number will generate a link any time it is found in an issue, pull request, or commit. */ key_prefix: string; - /** The URL must contain for the reference number. */ + /** The URL must contain `` for the reference number. */ url_template: string; }; }; @@ -23559,7 +23559,7 @@ export interface operations { id?: number; }[] | null; - deployment_branch_policy?: components["schemas"]["deployment_branch_policy"]; + deployment_branch_policy?: components["schemas"]["deployment-branch-policy"]; } | null; }; }; @@ -25167,7 +25167,7 @@ export interface operations { content: { "application/json": { /** Usernames of assignees to remove from an issue. _NOTE: Only users with push access can remove assignees from an issue. Assignees are silently ignored otherwise._ */ - assignees?: string[]; + assignees: string[]; }; }; }; diff --git a/packages/openapi-types-ghes-3.4/package.json b/packages/openapi-types-ghes-3.4/package.json index 15fe51c8e..152aabbf3 100644 --- a/packages/openapi-types-ghes-3.4/package.json +++ b/packages/openapi-types-ghes-3.4/package.json @@ -12,5 +12,5 @@ "types": "types.d.ts", "author": "Gregor Martynus (https://twitter.com/gr2m)", "license": "MIT", - "octokit": { "openapi-version": "6.2.1" } + "octokit": { "openapi-version": "6.3.0" } } diff --git a/packages/openapi-types-ghes-3.4/types.d.ts b/packages/openapi-types-ghes-3.4/types.d.ts index 439d3e0cd..c45d927d4 100644 --- a/packages/openapi-types-ghes-3.4/types.d.ts +++ b/packages/openapi-types-ghes-3.4/types.d.ts @@ -6408,7 +6408,7 @@ export interface components { pem?: string; } | null; /** How the author is associated with the repository. */ - author_association: + "author-association": | "COLLABORATOR" | "CONTRIBUTOR" | "FIRST_TIMER" @@ -6487,7 +6487,7 @@ export interface components { timeline_url?: string; repository?: components["schemas"]["repository"]; performed_via_github_app?: components["schemas"]["nullable-integration"]; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; reactions?: components["schemas"]["reaction-rollup"]; }; /** Comments provide a way for people to collaborate on an issue. */ @@ -6506,7 +6506,7 @@ export interface components { created_at: string; updated_at: string; issue_url: string; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; performed_via_github_app?: components["schemas"]["nullable-integration"]; reactions?: components["schemas"]["reaction-rollup"]; }; @@ -6735,7 +6735,7 @@ export interface components { user: components["schemas"]["nullable-simple-user"]; created_at: string; updated_at: string; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; }; /** Gist Commit */ "gist-commit": { @@ -8805,7 +8805,7 @@ export interface components { user: components["schemas"]["nullable-simple-user"]; created_at: string; updated_at: string; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; reactions?: components["schemas"]["reaction-rollup"]; }; /** Branch Short */ @@ -8822,7 +8822,7 @@ export interface components { href: string; }; /** The status of auto merging a pull request. */ - auto_merge: { + "auto-merge": { enabled_by: components["schemas"]["simple-user"]; /** The merge method to use. */ merge_method: "merge" | "squash" | "rebase"; @@ -8895,8 +8895,8 @@ export interface components { review_comment: components["schemas"]["link"]; self: components["schemas"]["link"]; }; - author_association: components["schemas"]["author_association"]; - auto_merge: components["schemas"]["auto_merge"]; + author_association: components["schemas"]["author-association"]; + auto_merge: components["schemas"]["auto-merge"]; /** Indicates whether or not the pull request is a draft. */ draft?: boolean; }; @@ -9181,7 +9181,7 @@ export interface components { /** The amount of time to delay a job after the job is initially triggered. The time (in minutes) must be an integer between 0 and 43,200 (30 days). */ "wait-timer": number; /** The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`. */ - deployment_branch_policy: { + "deployment-branch-policy": { /** Whether only branches with branch protection rules can deploy to this environment. If `protected_branches` is `true`, `custom_branch_policies` must be `false`; if `protected_branches` is `false`, `custom_branch_policies` must be `true`. */ protected_branches: boolean; /** Whether only branches that match the specified name patterns can deploy to this environment. If `custom_branch_policies` is `true`, `protected_branches` must be `false`; if `custom_branch_policies` is `false`, `protected_branches` must be `true`. */ @@ -9222,7 +9222,7 @@ export interface components { node_id: string; type: string; }>)[]; - deployment_branch_policy?: components["schemas"]["deployment_branch_policy"]; + deployment_branch_policy?: components["schemas"]["deployment-branch-policy"]; }; /** Short Blob */ "short-blob": { @@ -9427,7 +9427,7 @@ export interface components { timeline_url?: string; repository?: components["schemas"]["repository"]; performed_via_github_app?: components["schemas"]["nullable-integration"]; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; reactions?: components["schemas"]["reaction-rollup"]; } | null; /** Issue Event Label */ @@ -9480,7 +9480,7 @@ export interface components { milestone?: components["schemas"]["issue-event-milestone"]; project_card?: components["schemas"]["issue-event-project-card"]; rename?: components["schemas"]["issue-event-rename"]; - author_association?: components["schemas"]["author_association"]; + author_association?: components["schemas"]["author-association"]; lock_reason?: string | null; performed_via_github_app?: components["schemas"]["nullable-integration"]; }; @@ -9780,7 +9780,7 @@ export interface components { created_at: string; updated_at: string; issue_url: string; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; performed_via_github_app?: components["schemas"]["nullable-integration"]; reactions?: components["schemas"]["reaction-rollup"]; }; @@ -9866,7 +9866,7 @@ export interface components { commit_id: string; body_html?: string; body_text?: string; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; }; /** Pull Request Review Comments are comments on a portion of the Pull Request's diff. */ "pull-request-review-comment": { @@ -9901,7 +9901,7 @@ export interface components { html_url: string; /** URL for the pull request that the review comment belongs to. */ pull_request_url: string; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; _links: { self: { href: string; @@ -10491,8 +10491,8 @@ export interface components { review_comment: components["schemas"]["link"]; self: components["schemas"]["link"]; }; - author_association: components["schemas"]["author_association"]; - auto_merge: components["schemas"]["auto_merge"]; + author_association: components["schemas"]["author-association"]; + auto_merge: components["schemas"]["auto-merge"]; /** Indicates whether or not the pull request is a draft. */ draft?: boolean; merged: boolean; @@ -10544,7 +10544,7 @@ export interface components { commit_id: string; body_html?: string; body_text?: string; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; }; /** Legacy Review Comment */ "review-comment": { @@ -10565,7 +10565,7 @@ export interface components { updated_at: string; html_url: string; pull_request_url: string; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; _links: { self: components["schemas"]["link"]; html: components["schemas"]["link"]; @@ -10842,7 +10842,7 @@ export interface components { }; body?: string; score: number; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; draft?: boolean; repository?: components["schemas"]["repository"]; body_html?: string; @@ -16375,14 +16375,14 @@ export interface operations { requestBody: { content: { "application/json": { - /** Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/enterprise-server@3.4/rest/reference/actions#get-an-organization-public-key) endpoint. */ + /** Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/rest/reference/actions#get-an-organization-public-key) endpoint. */ encrypted_value?: string; /** ID of the key you used to encrypt the secret. */ key_id?: string; /** Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret. */ visibility: "all" | "private" | "selected"; - /** An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/enterprise-server@3.4/rest/reference/actions#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/enterprise-server@3.4/rest/reference/actions#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-server@3.4/rest/reference/actions#remove-selected-repository-from-an-organization-secret) endpoints. */ - selected_repository_ids?: string[]; + /** An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/rest/reference/actions#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/rest/reference/actions#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/rest/reference/actions#remove-selected-repository-from-an-organization-secret) endpoints. */ + selected_repository_ids?: (Partial & Partial)[]; }; }; }; @@ -16704,14 +16704,14 @@ export interface operations { requestBody: { content: { "application/json": { - /** Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/enterprise-server@3.4/rest/reference/dependabot#get-an-organization-public-key) endpoint. */ + /** Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/rest/reference/dependabot#get-an-organization-public-key) endpoint. */ encrypted_value?: string; /** ID of the key you used to encrypt the secret. */ key_id?: string; /** Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret. */ visibility: "all" | "private" | "selected"; - /** An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/enterprise-server@3.4/rest/reference/dependabot#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/enterprise-server@3.4/rest/reference/dependabot#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-server@3.4/rest/reference/dependabot#remove-selected-repository-from-an-organization-secret) endpoints. */ - selected_repository_ids?: string[]; + /** An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/rest/reference/dependabot#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/rest/reference/dependabot#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/rest/reference/dependabot#remove-selected-repository-from-an-organization-secret) endpoints. */ + selected_repository_ids?: (Partial & Partial)[]; }; }; }; @@ -21153,7 +21153,7 @@ export interface operations { "application/json": { /** The prefix appended by a number will generate a link any time it is found in an issue, pull request, or commit. */ key_prefix: string; - /** The URL must contain for the reference number. */ + /** The URL must contain `` for the reference number. */ url_template: string; }; }; @@ -24958,7 +24958,7 @@ export interface operations { id?: number; }[] | null; - deployment_branch_policy?: components["schemas"]["deployment_branch_policy"]; + deployment_branch_policy?: components["schemas"]["deployment-branch-policy"]; } | null; }; }; @@ -26566,7 +26566,7 @@ export interface operations { content: { "application/json": { /** Usernames of assignees to remove from an issue. _NOTE: Only users with push access can remove assignees from an issue. Assignees are silently ignored otherwise._ */ - assignees?: string[]; + assignees: string[]; }; }; }; diff --git a/packages/openapi-types-ghes-3.5/package.json b/packages/openapi-types-ghes-3.5/package.json index d261fbbf5..11abad7b5 100644 --- a/packages/openapi-types-ghes-3.5/package.json +++ b/packages/openapi-types-ghes-3.5/package.json @@ -12,5 +12,5 @@ "types": "types.d.ts", "author": "Gregor Martynus (https://twitter.com/gr2m)", "license": "MIT", - "octokit": { "openapi-version": "6.2.1" } + "octokit": { "openapi-version": "6.3.0" } } diff --git a/packages/openapi-types-ghes-3.5/types.d.ts b/packages/openapi-types-ghes-3.5/types.d.ts index dbbac359a..a2ea76dc7 100644 --- a/packages/openapi-types-ghes-3.5/types.d.ts +++ b/packages/openapi-types-ghes-3.5/types.d.ts @@ -5306,10 +5306,6 @@ export interface paths { /** This endpoint does not exist ghes-3.5.json. It was added in api.github.com.json */ get: operations["apps/list-accounts-for-plan-stubbed"]; }; - "/orgs/{org_id}/codespaces": { - /** This endpoint does not exist ghes-3.5.json. It was added in api.github.com.json */ - get: operations["codespaces/list-in-organization"]; - }; "/orgs/{org}/actions/oidc/customization/sub": { /** This endpoint does not exist ghes-3.5.json. It was added in api.github.com.json */ get: operations["oidc/get-oidc-custom-sub-template-for-org"]; @@ -5328,6 +5324,10 @@ export interface paths { /** This endpoint does not exist ghes-3.5.json. It was added in api.github.com.json */ delete: operations["orgs/unblock-user"]; }; + "/orgs/{org}/codespaces": { + /** This endpoint does not exist ghes-3.5.json. It was added in api.github.com.json */ + get: operations["codespaces/list-in-organization"]; + }; "/orgs/{org}/credential-authorizations": { /** This endpoint does not exist ghes-3.5.json. It was added in api.github.com.json */ get: operations["orgs/list-saml-sso-authorizations"]; @@ -5524,10 +5524,6 @@ export interface paths { /** This endpoint does not exist ghes-3.5.json. It was added in api.github.com.json */ delete: operations["codespaces/delete-repo-secret"]; }; - "/repos/{owner}/{repo}/community/code_of_conduct": { - /** This endpoint does not exist ghes-3.5.json. It was added in api.github.com.json */ - get: operations["codes-of-conduct/get-for-repo"]; - }; "/repos/{owner}/{repo}/community/profile": { /** This endpoint does not exist ghes-3.5.json. It was added in api.github.com.json */ get: operations["repos/get-community-profile-metrics"]; @@ -7098,7 +7094,7 @@ export interface components { pem?: string; } | null; /** How the author is associated with the repository. */ - author_association: + "author-association": | "COLLABORATOR" | "CONTRIBUTOR" | "FIRST_TIMER" @@ -7177,7 +7173,7 @@ export interface components { timeline_url?: string; repository?: components["schemas"]["repository"]; performed_via_github_app?: components["schemas"]["nullable-integration"]; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; reactions?: components["schemas"]["reaction-rollup"]; }; /** Comments provide a way for people to collaborate on an issue. */ @@ -7196,7 +7192,7 @@ export interface components { created_at: string; updated_at: string; issue_url: string; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; performed_via_github_app?: components["schemas"]["nullable-integration"]; reactions?: components["schemas"]["reaction-rollup"]; }; @@ -7425,7 +7421,7 @@ export interface components { user: components["schemas"]["nullable-simple-user"]; created_at: string; updated_at: string; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; }; /** Gist Commit */ "gist-commit": { @@ -9583,7 +9579,7 @@ export interface components { user: components["schemas"]["nullable-simple-user"]; created_at: string; updated_at: string; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; reactions?: components["schemas"]["reaction-rollup"]; }; /** Branch Short */ @@ -9600,7 +9596,7 @@ export interface components { href: string; }; /** The status of auto merging a pull request. */ - auto_merge: { + "auto-merge": { enabled_by: components["schemas"]["simple-user"]; /** The merge method to use. */ merge_method: "merge" | "squash" | "rebase"; @@ -9673,8 +9669,8 @@ export interface components { review_comment: components["schemas"]["link"]; self: components["schemas"]["link"]; }; - author_association: components["schemas"]["author_association"]; - auto_merge: components["schemas"]["auto_merge"]; + author_association: components["schemas"]["author-association"]; + auto_merge: components["schemas"]["auto-merge"]; /** Indicates whether or not the pull request is a draft. */ draft?: boolean; }; @@ -9959,7 +9955,7 @@ export interface components { /** The amount of time to delay a job after the job is initially triggered. The time (in minutes) must be an integer between 0 and 43,200 (30 days). */ "wait-timer": number; /** The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`. */ - deployment_branch_policy: { + "deployment-branch-policy": { /** Whether only branches with branch protection rules can deploy to this environment. If `protected_branches` is `true`, `custom_branch_policies` must be `false`; if `protected_branches` is `false`, `custom_branch_policies` must be `true`. */ protected_branches: boolean; /** Whether only branches that match the specified name patterns can deploy to this environment. If `custom_branch_policies` is `true`, `protected_branches` must be `false`; if `custom_branch_policies` is `false`, `protected_branches` must be `true`. */ @@ -10000,7 +9996,7 @@ export interface components { node_id: string; type: string; }>)[]; - deployment_branch_policy?: components["schemas"]["deployment_branch_policy"]; + deployment_branch_policy?: components["schemas"]["deployment-branch-policy"]; }; /** Short Blob */ "short-blob": { @@ -10205,7 +10201,7 @@ export interface components { timeline_url?: string; repository?: components["schemas"]["repository"]; performed_via_github_app?: components["schemas"]["nullable-integration"]; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; reactions?: components["schemas"]["reaction-rollup"]; } | null; /** Issue Event Label */ @@ -10258,7 +10254,7 @@ export interface components { milestone?: components["schemas"]["issue-event-milestone"]; project_card?: components["schemas"]["issue-event-project-card"]; rename?: components["schemas"]["issue-event-rename"]; - author_association?: components["schemas"]["author_association"]; + author_association?: components["schemas"]["author-association"]; lock_reason?: string | null; performed_via_github_app?: components["schemas"]["nullable-integration"]; }; @@ -10558,7 +10554,7 @@ export interface components { created_at: string; updated_at: string; issue_url: string; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; performed_via_github_app?: components["schemas"]["nullable-integration"]; reactions?: components["schemas"]["reaction-rollup"]; }; @@ -10644,7 +10640,7 @@ export interface components { commit_id: string; body_html?: string; body_text?: string; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; }; /** Pull Request Review Comments are comments on a portion of the Pull Request's diff. */ "pull-request-review-comment": { @@ -10679,7 +10675,7 @@ export interface components { html_url: string; /** URL for the pull request that the review comment belongs to. */ pull_request_url: string; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; _links: { self: { href: string; @@ -11269,8 +11265,8 @@ export interface components { review_comment: components["schemas"]["link"]; self: components["schemas"]["link"]; }; - author_association: components["schemas"]["author_association"]; - auto_merge: components["schemas"]["auto_merge"]; + author_association: components["schemas"]["author-association"]; + auto_merge: components["schemas"]["auto-merge"]; /** Indicates whether or not the pull request is a draft. */ draft?: boolean; merged: boolean; @@ -11322,7 +11318,7 @@ export interface components { commit_id: string; body_html?: string; body_text?: string; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; }; /** Legacy Review Comment */ "review-comment": { @@ -11343,7 +11339,7 @@ export interface components { updated_at: string; html_url: string; pull_request_url: string; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; _links: { self: components["schemas"]["link"]; html: components["schemas"]["link"]; @@ -11633,7 +11629,7 @@ export interface components { }; body?: string; score: number; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; draft?: boolean; repository?: components["schemas"]["repository"]; body_html?: string; @@ -12441,7 +12437,7 @@ export interface components { /** The unique identifier of the release. */ "release-id": number; /** The unique identifier of the tag protection. */ - tag_protection_id: number; + "tag-protection-id": number; /** A repository ID. Only return repositories with an ID greater than this ID. */ "since-repo": number; /** Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`. */ @@ -17356,14 +17352,14 @@ export interface operations { requestBody: { content: { "application/json": { - /** Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/enterprise-server@3.5/rest/reference/actions#get-an-organization-public-key) endpoint. */ + /** Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/rest/reference/actions#get-an-organization-public-key) endpoint. */ encrypted_value?: string; /** ID of the key you used to encrypt the secret. */ key_id?: string; /** Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret. */ visibility: "all" | "private" | "selected"; - /** An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/enterprise-server@3.5/rest/reference/actions#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/enterprise-server@3.5/rest/reference/actions#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-server@3.5/rest/reference/actions#remove-selected-repository-from-an-organization-secret) endpoints. */ - selected_repository_ids?: string[]; + /** An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/rest/reference/actions#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/rest/reference/actions#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/rest/reference/actions#remove-selected-repository-from-an-organization-secret) endpoints. */ + selected_repository_ids?: (Partial & Partial)[]; }; }; }; @@ -17732,14 +17728,14 @@ export interface operations { requestBody: { content: { "application/json": { - /** Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/enterprise-server@3.5/rest/reference/dependabot#get-an-organization-public-key) endpoint. */ + /** Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/rest/reference/dependabot#get-an-organization-public-key) endpoint. */ encrypted_value?: string; /** ID of the key you used to encrypt the secret. */ key_id?: string; /** Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret. */ visibility: "all" | "private" | "selected"; - /** An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/enterprise-server@3.5/rest/reference/dependabot#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/enterprise-server@3.5/rest/reference/dependabot#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-server@3.5/rest/reference/dependabot#remove-selected-repository-from-an-organization-secret) endpoints. */ - selected_repository_ids?: string[]; + /** An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/rest/reference/dependabot#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/rest/reference/dependabot#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/rest/reference/dependabot#remove-selected-repository-from-an-organization-secret) endpoints. */ + selected_repository_ids?: (Partial & Partial)[]; }; }; }; @@ -22428,7 +22424,7 @@ export interface operations { "application/json": { /** The prefix appended by a number will generate a link any time it is found in an issue, pull request, or commit. */ key_prefix: string; - /** The URL must contain for the reference number. */ + /** The URL must contain `` for the reference number. */ url_template: string; }; }; @@ -26264,7 +26260,7 @@ export interface operations { id?: number; }[] | null; - deployment_branch_policy?: components["schemas"]["deployment_branch_policy"]; + deployment_branch_policy?: components["schemas"]["deployment-branch-policy"]; } | null; }; }; @@ -27872,7 +27868,7 @@ export interface operations { content: { "application/json": { /** Usernames of assignees to remove from an issue. _NOTE: Only users with push access can remove assignees from an issue. Assignees are silently ignored otherwise._ */ - assignees?: string[]; + assignees: string[]; }; }; }; @@ -31417,7 +31413,7 @@ export interface operations { /** The name of the repository. The name is not case sensitive. */ repo: components["parameters"]["repo"]; /** The unique identifier of the tag protection. */ - tag_protection_id: components["parameters"]["tag_protection_id"]; + tag_protection_id: components["parameters"]["tag-protection-id"]; }; }; responses: { @@ -35277,13 +35273,6 @@ export interface operations { }; }; /** This endpoint does not exist ghes-3.5.json. It was added in api.github.com.json */ - "codespaces/list-in-organization": { - responses: { - /** Not Implemented */ - 501: unknown; - }; - }; - /** This endpoint does not exist ghes-3.5.json. It was added in api.github.com.json */ "oidc/get-oidc-custom-sub-template-for-org": { responses: { /** Not Implemented */ @@ -35326,6 +35315,13 @@ export interface operations { }; }; /** This endpoint does not exist ghes-3.5.json. It was added in api.github.com.json */ + "codespaces/list-in-organization": { + responses: { + /** Not Implemented */ + 501: unknown; + }; + }; + /** This endpoint does not exist ghes-3.5.json. It was added in api.github.com.json */ "orgs/list-saml-sso-authorizations": { responses: { /** Not Implemented */ @@ -35725,13 +35721,6 @@ export interface operations { }; }; /** This endpoint does not exist ghes-3.5.json. It was added in api.github.com.json */ - "codes-of-conduct/get-for-repo": { - responses: { - /** Not Implemented */ - 501: unknown; - }; - }; - /** This endpoint does not exist ghes-3.5.json. It was added in api.github.com.json */ "repos/get-community-profile-metrics": { responses: { /** Not Implemented */ diff --git a/packages/openapi-types-github.ae/package.json b/packages/openapi-types-github.ae/package.json index 650e71b89..3cd696d7b 100644 --- a/packages/openapi-types-github.ae/package.json +++ b/packages/openapi-types-github.ae/package.json @@ -12,5 +12,5 @@ "types": "types.d.ts", "author": "Gregor Martynus (https://twitter.com/gr2m)", "license": "MIT", - "octokit": { "openapi-version": "6.2.1" } + "octokit": { "openapi-version": "6.3.0" } } diff --git a/packages/openapi-types-github.ae/types.d.ts b/packages/openapi-types-github.ae/types.d.ts index e528790ca..8b4ae9f9f 100644 --- a/packages/openapi-types-github.ae/types.d.ts +++ b/packages/openapi-types-github.ae/types.d.ts @@ -4313,14 +4313,6 @@ export interface paths { */ get: operations["repos/compare-commits"]; }; - "/repos/{owner}/{repo}/community/code_of_conduct": { - /** - * Returns the contents of the repository's code of conduct file, if one is detected. - * - * A code of conduct is detected if there is a file named `CODE_OF_CONDUCT` in the root directory of the repository. GitHub detects which code of conduct it is using fuzzy matching. - */ - get: operations["codes-of-conduct/get-for-repo"]; - }; "/applications/grants": { /** This endpoint does not exist github.ae.json. It was added in api.github.com.json */ get: operations["oauth-authorizations/list-grants"]; @@ -4457,10 +4449,6 @@ export interface paths { /** This endpoint does not exist github.ae.json. It was added in api.github.com.json */ get: operations["orgs/list-custom-roles"]; }; - "/orgs/{org_id}/codespaces": { - /** This endpoint does not exist github.ae.json. It was added in api.github.com.json */ - get: operations["codespaces/list-in-organization"]; - }; "/orgs/{org}/actions/cache/usage": { /** This endpoint does not exist github.ae.json. It was added in api.github.com.json */ get: operations["actions/get-actions-cache-usage-for-org"]; @@ -4529,6 +4517,10 @@ export interface paths { /** This endpoint does not exist github.ae.json. It was added in api.github.com.json */ get: operations["code-scanning/list-alerts-for-org"]; }; + "/orgs/{org}/codespaces": { + /** This endpoint does not exist github.ae.json. It was added in api.github.com.json */ + get: operations["codespaces/list-in-organization"]; + }; "/orgs/{org}/credential-authorizations": { /** This endpoint does not exist github.ae.json. It was added in api.github.com.json */ get: operations["orgs/list-saml-sso-authorizations"]; @@ -6295,7 +6287,7 @@ export interface components { truncated?: boolean; }; /** How the author is associated with the repository. */ - author_association: + "author-association": | "COLLABORATOR" | "CONTRIBUTOR" | "FIRST_TIMER" @@ -6314,7 +6306,7 @@ export interface components { user: components["schemas"]["nullable-simple-user"]; created_at: string; updated_at: string; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; }; /** Gist Commit */ "gist-commit": { @@ -6457,7 +6449,7 @@ export interface components { timeline_url?: string; repository?: components["schemas"]["repository"]; performed_via_github_app?: components["schemas"]["nullable-integration"]; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; reactions?: components["schemas"]["reaction-rollup"]; }; /** License Simple */ @@ -7620,7 +7612,7 @@ export interface components { selected_actions_url?: components["schemas"]["selected-actions-url"]; }; /** A workflow referenced/reused by the initial caller workflow */ - referenced_workflow: { + "referenced-workflow": { path: string; sha: string; ref?: string; @@ -7684,7 +7676,7 @@ export interface components { /** Attempt number of the run, 1 for first attempt and higher if the workflow was re-run. */ run_attempt?: number; referenced_workflows?: - | components["schemas"]["referenced_workflow"][] + | components["schemas"]["referenced-workflow"][] | null; event: string; status: string | null; @@ -8542,7 +8534,7 @@ export interface components { user: components["schemas"]["nullable-simple-user"]; created_at: string; updated_at: string; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; reactions?: components["schemas"]["reaction-rollup"]; }; /** Branch Short */ @@ -8559,7 +8551,7 @@ export interface components { href: string; }; /** The status of auto merging a pull request. */ - auto_merge: { + "auto-merge": { enabled_by: components["schemas"]["simple-user"]; /** The merge method to use. */ merge_method: "merge" | "squash" | "rebase"; @@ -8632,8 +8624,8 @@ export interface components { review_comment: components["schemas"]["link"]; self: components["schemas"]["link"]; }; - author_association: components["schemas"]["author_association"]; - auto_merge: components["schemas"]["auto_merge"]; + author_association: components["schemas"]["author-association"]; + auto_merge: components["schemas"]["auto-merge"]; /** Indicates whether or not the pull request is a draft. */ draft?: boolean; }; @@ -8940,7 +8932,7 @@ export interface components { /** The type of reviewer. */ "deployment-reviewer-type": "User" | "Team"; /** The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`. */ - deployment_branch_policy: { + "deployment-branch-policy": { /** Whether only branches with branch protection rules can deploy to this environment. If `protected_branches` is `true`, `custom_branch_policies` must be `false`; if `protected_branches` is `false`, `custom_branch_policies` must be `true`. */ protected_branches: boolean; /** Whether only branches that match the specified name patterns can deploy to this environment. If `custom_branch_policies` is `true`, `protected_branches` must be `false`; if `custom_branch_policies` is `false`, `protected_branches` must be `true`. */ @@ -8981,7 +8973,7 @@ export interface components { node_id: string; type: string; }>)[]; - deployment_branch_policy?: components["schemas"]["deployment_branch_policy"]; + deployment_branch_policy?: components["schemas"]["deployment-branch-policy"]; }; /** Actor */ actor: { @@ -9008,7 +9000,7 @@ export interface components { created_at: string; updated_at: string; issue_url: string; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; performed_via_github_app?: components["schemas"]["nullable-integration"]; reactions?: components["schemas"]["reaction-rollup"]; }; @@ -9242,7 +9234,7 @@ export interface components { timeline_url?: string; repository?: components["schemas"]["repository"]; performed_via_github_app?: components["schemas"]["nullable-integration"]; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; reactions?: components["schemas"]["reaction-rollup"]; } | null; /** Issue Event Label */ @@ -9295,7 +9287,7 @@ export interface components { milestone?: components["schemas"]["issue-event-milestone"]; project_card?: components["schemas"]["issue-event-project-card"]; rename?: components["schemas"]["issue-event-rename"]; - author_association?: components["schemas"]["author_association"]; + author_association?: components["schemas"]["author-association"]; lock_reason?: string | null; performed_via_github_app?: components["schemas"]["nullable-integration"]; }; @@ -9595,7 +9587,7 @@ export interface components { created_at: string; updated_at: string; issue_url: string; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; performed_via_github_app?: components["schemas"]["nullable-integration"]; reactions?: components["schemas"]["reaction-rollup"]; }; @@ -9681,7 +9673,7 @@ export interface components { commit_id: string; body_html?: string; body_text?: string; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; }; /** Pull Request Review Comments are comments on a portion of the Pull Request's diff. */ "pull-request-review-comment": { @@ -9716,7 +9708,7 @@ export interface components { html_url: string; /** URL for the pull request that the review comment belongs to. */ pull_request_url: string; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; _links: { self: { href: string; @@ -10300,8 +10292,8 @@ export interface components { review_comment: components["schemas"]["link"]; self: components["schemas"]["link"]; }; - author_association: components["schemas"]["author_association"]; - auto_merge: components["schemas"]["auto_merge"]; + author_association: components["schemas"]["author-association"]; + auto_merge: components["schemas"]["auto-merge"]; /** Indicates whether or not the pull request is a draft. */ draft?: boolean; merged: boolean; @@ -10353,7 +10345,7 @@ export interface components { commit_id: string; body_html?: string; body_text?: string; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; }; /** Legacy Review Comment */ "review-comment": { @@ -10374,7 +10366,7 @@ export interface components { updated_at: string; html_url: string; pull_request_url: string; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; _links: { self: components["schemas"]["link"]; html: components["schemas"]["link"]; @@ -10668,7 +10660,7 @@ export interface components { }; body?: string; score: number; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; draft?: boolean; repository?: components["schemas"]["repository"]; body_html?: string; @@ -14748,7 +14740,7 @@ export interface operations { /** Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret. */ visibility: "all" | "private" | "selected"; /** An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/github-ae@latest/rest/reference/actions#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/github-ae@latest/rest/reference/actions#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/github-ae@latest/rest/reference/actions#remove-selected-repository-from-an-organization-secret) endpoints. */ - selected_repository_ids?: string[]; + selected_repository_ids?: number[]; }; }; }; @@ -18971,7 +18963,7 @@ export interface operations { "application/json": { /** The prefix appended by a number will generate a link any time it is found in an issue, pull request, or commit. */ key_prefix: string; - /** The URL must contain for the reference number. */ + /** The URL must contain `` for the reference number. */ url_template: string; }; }; @@ -22551,7 +22543,7 @@ export interface operations { id?: number; }[] | null; - deployment_branch_policy?: components["schemas"]["deployment_branch_policy"]; + deployment_branch_policy?: components["schemas"]["deployment-branch-policy"]; } | null; }; }; @@ -24159,7 +24151,7 @@ export interface operations { content: { "application/json": { /** Usernames of assignees to remove from an issue. _NOTE: Only users with push access can remove assignees from an issue. Assignees are silently ignored otherwise._ */ - assignees?: string[]; + assignees: string[]; }; }; }; @@ -30578,29 +30570,6 @@ export interface operations { 500: components["responses"]["internal_error"]; }; }; - /** - * Returns the contents of the repository's code of conduct file, if one is detected. - * - * A code of conduct is detected if there is a file named `CODE_OF_CONDUCT` in the root directory of the repository. GitHub detects which code of conduct it is using fuzzy matching. - */ - "codes-of-conduct/get-for-repo": { - parameters: { - path: { - /** The account owner of the repository. The name is not case sensitive. */ - owner: components["parameters"]["owner"]; - /** The name of the repository. The name is not case sensitive. */ - repo: components["parameters"]["repo"]; - }; - }; - responses: { - /** Response */ - 200: { - content: { - "application/json": components["schemas"]["code-of-conduct"]; - }; - }; - }; - }; /** This endpoint does not exist github.ae.json. It was added in api.github.com.json */ "oauth-authorizations/list-grants": { responses: { @@ -30875,13 +30844,6 @@ export interface operations { }; }; /** This endpoint does not exist github.ae.json. It was added in api.github.com.json */ - "codespaces/list-in-organization": { - responses: { - /** Not Implemented */ - 501: unknown; - }; - }; - /** This endpoint does not exist github.ae.json. It was added in api.github.com.json */ "actions/get-actions-cache-usage-for-org": { responses: { /** Not Implemented */ @@ -31036,6 +30998,13 @@ export interface operations { }; }; /** This endpoint does not exist github.ae.json. It was added in api.github.com.json */ + "codespaces/list-in-organization": { + responses: { + /** Not Implemented */ + 501: unknown; + }; + }; + /** This endpoint does not exist github.ae.json. It was added in api.github.com.json */ "orgs/list-saml-sso-authorizations": { responses: { /** Not Implemented */ diff --git a/packages/openapi-types/package.json b/packages/openapi-types/package.json index c0c9598fc..0845efc20 100644 --- a/packages/openapi-types/package.json +++ b/packages/openapi-types/package.json @@ -12,5 +12,5 @@ "types": "types.d.ts", "author": "Gregor Martynus (https://twitter.com/gr2m)", "license": "MIT", - "octokit": { "openapi-version": "6.2.1" } + "octokit": { "openapi-version": "6.3.0" } } diff --git a/packages/openapi-types/types.d.ts b/packages/openapi-types/types.d.ts index cc8dd6dbd..7369d4af4 100644 --- a/packages/openapi-types/types.d.ts +++ b/packages/openapi-types/types.d.ts @@ -801,14 +801,6 @@ export interface paths { */ get: operations["orgs/list-custom-roles"]; }; - "/orgs/{org_id}/codespaces": { - /** - * Lists the codespaces associated to a specified organization. - * - * You must authenticate using an access token with the `admin:org` scope to use this endpoint. - */ - get: operations["codespaces/list-in-organization"]; - }; "/orgs/{org}": { /** * To see many of the organization response values, you need to be an authenticated organization owner with the `admin:org` scope. When the value of `two_factor_requirement_enabled` is `true`, the organization requires all members, billing managers, and outside collaborators to enable [two-factor authentication](https://docs.github.com/articles/securing-your-account-with-two-factor-authentication-2fa/). @@ -1293,6 +1285,14 @@ export interface paths { */ get: operations["code-scanning/list-alerts-for-org"]; }; + "/orgs/{org}/codespaces": { + /** + * Lists the codespaces associated to a specified organization. + * + * You must authenticate using an access token with the `admin:org` scope to use this endpoint. + */ + get: operations["codespaces/list-in-organization"]; + }; "/orgs/{org}/credential-authorizations": { /** * Listing and deleting credential authorizations is available to organizations with GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products). @@ -6433,14 +6433,6 @@ export interface paths { */ get: operations["repos/compare-commits"]; }; - "/repos/{owner}/{repo}/community/code_of_conduct": { - /** - * Returns the contents of the repository's code of conduct file, if one is detected. - * - * A code of conduct is detected if there is a file named `CODE_OF_CONDUCT` in the root directory of the repository. GitHub detects which code of conduct it is using fuzzy matching. - */ - get: operations["codes-of-conduct/get-for-repo"]; - }; } export interface components { @@ -7605,7 +7597,7 @@ export interface components { pem?: string; } | null; /** How the author is associated with the repository. */ - author_association: + "author-association": | "COLLABORATOR" | "CONTRIBUTOR" | "FIRST_TIMER" @@ -7684,7 +7676,7 @@ export interface components { timeline_url?: string; repository?: components["schemas"]["repository"]; performed_via_github_app?: components["schemas"]["nullable-integration"]; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; reactions?: components["schemas"]["reaction-rollup"]; }; /** Comments provide a way for people to collaborate on an issue. */ @@ -7703,7 +7695,7 @@ export interface components { created_at: string; updated_at: string; issue_url: string; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; performed_via_github_app?: components["schemas"]["nullable-integration"]; reactions?: components["schemas"]["reaction-rollup"]; }; @@ -7932,7 +7924,7 @@ export interface components { user: components["schemas"]["nullable-simple-user"]; created_at: string; updated_at: string; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; }; /** Gist Commit */ "gist-commit": { @@ -8400,106 +8392,6 @@ export interface components { id: number; name: string; }; - /** A description of the machine powering a codespace. */ - "nullable-codespace-machine": { - /** The name of the machine. */ - name: string; - /** The display name of the machine includes cores, memory, and storage. */ - display_name: string; - /** The operating system of the machine. */ - operating_system: string; - /** How much storage is available to the codespace. */ - storage_in_bytes: number; - /** How much memory is available to the codespace. */ - memory_in_bytes: number; - /** How many cores are available to the codespace. */ - cpus: number; - /** Whether a prebuild is currently available when creating a codespace for this machine and repository. If a branch was not specified as a ref, the default branch will be assumed. Value will be "null" if prebuilds are not supported or prebuild availability could not be determined. Value will be "none" if no prebuild is available. Latest values "ready" and "in_progress" indicate the prebuild availability status. Old values "blob" and "pool" will be deprecated soon. */ - prebuild_availability: - | ("none" | "blob" | "pool" | "ready" | "in_progress") - | null; - } | null; - /** A codespace. */ - codespace: { - id: number; - /** Automatically generated name of this codespace. */ - name: string; - /** Display name for this codespace. */ - display_name?: string | null; - /** UUID identifying this codespace's environment. */ - environment_id: string | null; - owner: components["schemas"]["simple-user"]; - billable_owner: components["schemas"]["simple-user"]; - repository: components["schemas"]["minimal-repository"]; - machine: components["schemas"]["nullable-codespace-machine"]; - /** Path to devcontainer.json from repo root used to create Codespace. */ - devcontainer_path?: string | null; - /** Whether the codespace was created from a prebuild. */ - prebuild: boolean | null; - created_at: string; - updated_at: string; - /** Last known time this codespace was started. */ - last_used_at: string; - /** State of this codespace. */ - state: - | "Unknown" - | "Created" - | "Queued" - | "Provisioning" - | "Available" - | "Awaiting" - | "Unavailable" - | "Deleted" - | "Moved" - | "Shutdown" - | "Archived" - | "Starting" - | "ShuttingDown" - | "Failed" - | "Exporting" - | "Updating" - | "Rebuilding"; - /** API URL for this codespace. */ - url: string; - /** Details about the codespace's git repository. */ - git_status: { - /** The number of commits the local repository is ahead of the remote. */ - ahead?: number; - /** The number of commits the local repository is behind the remote. */ - behind?: number; - /** Whether the local repository has unpushed changes. */ - has_unpushed_changes?: boolean; - /** Whether the local repository has uncommitted changes. */ - has_uncommitted_changes?: boolean; - /** The current branch (or SHA if in detached HEAD state) of the local repository. */ - ref?: string; - }; - /** The Azure region where this codespace is located. */ - location: "EastUs" | "SouthEastAsia" | "WestEurope" | "WestUs2"; - /** The number of minutes of inactivity after which this codespace will be automatically stopped. */ - idle_timeout_minutes: number | null; - /** URL to access this codespace on the web. */ - web_url: string; - /** API URL to access available alternate machine types for this codespace. */ - machines_url: string; - /** API URL to start this codespace. */ - start_url: string; - /** API URL to stop this codespace. */ - stop_url: string; - /** API URL for the Pull Request associated with this codespace, if any. */ - pulls_url: string | null; - recent_folders: string[]; - runtime_constraints?: { - /** The privacy settings a user can select from when forwarding a port. */ - allowed_port_privacy_settings?: string[] | null; - }; - /** Whether or not a codespace has a pending async operation. This would mean that the codespace is temporarily unavailable. The only thing that you can do with a codespace in this state is delete it. */ - pending_operation?: boolean | null; - /** Text to show user when codespace is disabled by a pending operation */ - pending_operation_disabled_reason?: string | null; - /** Text to show user when codespace idle timeout minutes has been overriden by an organization policy */ - idle_timeout_notice?: string | null; - }; /** Organization Full */ "organization-full": { login: string; @@ -8723,6 +8615,104 @@ export interface components { most_recent_instance: components["schemas"]["code-scanning-alert-instance"]; repository: components["schemas"]["simple-repository"]; }; + /** A description of the machine powering a codespace. */ + "nullable-codespace-machine": { + /** The name of the machine. */ + name: string; + /** The display name of the machine includes cores, memory, and storage. */ + display_name: string; + /** The operating system of the machine. */ + operating_system: string; + /** How much storage is available to the codespace. */ + storage_in_bytes: number; + /** How much memory is available to the codespace. */ + memory_in_bytes: number; + /** How many cores are available to the codespace. */ + cpus: number; + /** Whether a prebuild is currently available when creating a codespace for this machine and repository. If a branch was not specified as a ref, the default branch will be assumed. Value will be "null" if prebuilds are not supported or prebuild availability could not be determined. Value will be "none" if no prebuild is available. Latest values "ready" and "in_progress" indicate the prebuild availability status. */ + prebuild_availability: ("none" | "ready" | "in_progress") | null; + } | null; + /** A codespace. */ + codespace: { + id: number; + /** Automatically generated name of this codespace. */ + name: string; + /** Display name for this codespace. */ + display_name?: string | null; + /** UUID identifying this codespace's environment. */ + environment_id: string | null; + owner: components["schemas"]["simple-user"]; + billable_owner: components["schemas"]["simple-user"]; + repository: components["schemas"]["minimal-repository"]; + machine: components["schemas"]["nullable-codespace-machine"]; + /** Path to devcontainer.json from repo root used to create Codespace. */ + devcontainer_path?: string | null; + /** Whether the codespace was created from a prebuild. */ + prebuild: boolean | null; + created_at: string; + updated_at: string; + /** Last known time this codespace was started. */ + last_used_at: string; + /** State of this codespace. */ + state: + | "Unknown" + | "Created" + | "Queued" + | "Provisioning" + | "Available" + | "Awaiting" + | "Unavailable" + | "Deleted" + | "Moved" + | "Shutdown" + | "Archived" + | "Starting" + | "ShuttingDown" + | "Failed" + | "Exporting" + | "Updating" + | "Rebuilding"; + /** API URL for this codespace. */ + url: string; + /** Details about the codespace's git repository. */ + git_status: { + /** The number of commits the local repository is ahead of the remote. */ + ahead?: number; + /** The number of commits the local repository is behind the remote. */ + behind?: number; + /** Whether the local repository has unpushed changes. */ + has_unpushed_changes?: boolean; + /** Whether the local repository has uncommitted changes. */ + has_uncommitted_changes?: boolean; + /** The current branch (or SHA if in detached HEAD state) of the local repository. */ + ref?: string; + }; + /** The Azure region where this codespace is located. */ + location: "EastUs" | "SouthEastAsia" | "WestEurope" | "WestUs2"; + /** The number of minutes of inactivity after which this codespace will be automatically stopped. */ + idle_timeout_minutes: number | null; + /** URL to access this codespace on the web. */ + web_url: string; + /** API URL to access available alternate machine types for this codespace. */ + machines_url: string; + /** API URL to start this codespace. */ + start_url: string; + /** API URL to stop this codespace. */ + stop_url: string; + /** API URL for the Pull Request associated with this codespace, if any. */ + pulls_url: string | null; + recent_folders: string[]; + runtime_constraints?: { + /** The privacy settings a user can select from when forwarding a port. */ + allowed_port_privacy_settings?: string[] | null; + }; + /** Whether or not a codespace has a pending async operation. This would mean that the codespace is temporarily unavailable. The only thing that you can do with a codespace in this state is delete it. */ + pending_operation?: boolean | null; + /** Text to show user when codespace is disabled by a pending operation */ + pending_operation_disabled_reason?: string | null; + /** Text to show user when codespace idle timeout minutes has been overriden by an organization policy */ + idle_timeout_notice?: string | null; + }; /** Credential Authorization */ "credential-authorization": { /** User login that owns the underlying credential. */ @@ -9662,7 +9652,7 @@ export interface components { access_level: "none" | "organization" | "enterprise"; }; /** A workflow referenced/reused by the initial caller workflow */ - referenced_workflow: { + "referenced-workflow": { path: string; sha: string; ref?: string; @@ -9726,7 +9716,7 @@ export interface components { /** Attempt number of the run, 1 for first attempt and higher if the workflow was re-run. */ run_attempt?: number; referenced_workflows?: - | components["schemas"]["referenced_workflow"][] + | components["schemas"]["referenced-workflow"][] | null; event: string; status: string | null; @@ -9916,6 +9906,8 @@ export interface components { key_prefix: string; /** A template for the target URL that is generated if a key was found. */ url_template: string; + /** Whether this autolink reference matches alphanumeric characters. If false, this autolink reference is a legacy autolink that only matches numeric characters. */ + is_alphanumeric?: boolean; }; /** Protected Branch Required Status Check */ "protected-branch-required-status-check": { @@ -10494,10 +10486,8 @@ export interface components { memory_in_bytes: number; /** How many cores are available to the codespace. */ cpus: number; - /** Whether a prebuild is currently available when creating a codespace for this machine and repository. If a branch was not specified as a ref, the default branch will be assumed. Value will be "null" if prebuilds are not supported or prebuild availability could not be determined. Value will be "none" if no prebuild is available. Latest values "ready" and "in_progress" indicate the prebuild availability status. Old values "blob" and "pool" will be deprecated soon. */ - prebuild_availability: - | ("none" | "blob" | "pool" | "ready" | "in_progress") - | null; + /** Whether a prebuild is currently available when creating a codespace for this machine and repository. If a branch was not specified as a ref, the default branch will be assumed. Value will be "null" if prebuilds are not supported or prebuild availability could not be determined. Value will be "none" if no prebuild is available. Latest values "ready" and "in_progress" indicate the prebuild availability status. */ + prebuild_availability: ("none" | "ready" | "in_progress") | null; }; /** Set repository secrets for GitHub Codespaces. */ "repo-codespaces-secret": { @@ -10616,7 +10606,7 @@ export interface components { user: components["schemas"]["nullable-simple-user"]; created_at: string; updated_at: string; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; reactions?: components["schemas"]["reaction-rollup"]; }; /** Branch Short */ @@ -10633,7 +10623,7 @@ export interface components { href: string; }; /** The status of auto merging a pull request. */ - auto_merge: { + "auto-merge": { enabled_by: components["schemas"]["simple-user"]; /** The merge method to use. */ merge_method: "merge" | "squash" | "rebase"; @@ -10706,8 +10696,8 @@ export interface components { review_comment: components["schemas"]["link"]; self: components["schemas"]["link"]; }; - author_association: components["schemas"]["author_association"]; - auto_merge: components["schemas"]["auto_merge"]; + author_association: components["schemas"]["author-association"]; + auto_merge: components["schemas"]["auto-merge"]; /** Indicates whether or not the pull request is a draft. */ draft?: boolean; }; @@ -11095,7 +11085,7 @@ export interface components { /** The amount of time to delay a job after the job is initially triggered. The time (in minutes) must be an integer between 0 and 43,200 (30 days). */ "wait-timer": number; /** The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`. */ - deployment_branch_policy: { + "deployment-branch-policy": { /** Whether only branches with branch protection rules can deploy to this environment. If `protected_branches` is `true`, `custom_branch_policies` must be `false`; if `protected_branches` is `false`, `custom_branch_policies` must be `true`. */ protected_branches: boolean; /** Whether only branches that match the specified name patterns can deploy to this environment. If `custom_branch_policies` is `true`, `protected_branches` must be `false`; if `custom_branch_policies` is `false`, `protected_branches` must be `true`. */ @@ -11136,7 +11126,7 @@ export interface components { node_id: string; type: string; }>)[]; - deployment_branch_policy?: components["schemas"]["deployment_branch_policy"]; + deployment_branch_policy?: components["schemas"]["deployment-branch-policy"]; }; /** Short Blob */ "short-blob": { @@ -11405,7 +11395,7 @@ export interface components { timeline_url?: string; repository?: components["schemas"]["repository"]; performed_via_github_app?: components["schemas"]["nullable-integration"]; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; reactions?: components["schemas"]["reaction-rollup"]; } | null; /** Issue Event Label */ @@ -11458,7 +11448,7 @@ export interface components { milestone?: components["schemas"]["issue-event-milestone"]; project_card?: components["schemas"]["issue-event-project-card"]; rename?: components["schemas"]["issue-event-rename"]; - author_association?: components["schemas"]["author_association"]; + author_association?: components["schemas"]["author-association"]; lock_reason?: string | null; performed_via_github_app?: components["schemas"]["nullable-integration"]; }; @@ -11758,7 +11748,7 @@ export interface components { created_at: string; updated_at: string; issue_url: string; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; performed_via_github_app?: components["schemas"]["nullable-integration"]; reactions?: components["schemas"]["reaction-rollup"]; }; @@ -11844,7 +11834,7 @@ export interface components { commit_id: string; body_html?: string; body_text?: string; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; }; /** Pull Request Review Comments are comments on a portion of the Pull Request's diff. */ "pull-request-review-comment": { @@ -11879,7 +11869,7 @@ export interface components { html_url: string; /** URL for the pull request that the review comment belongs to. */ pull_request_url: string; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; _links: { self: { href: string; @@ -12526,8 +12516,8 @@ export interface components { review_comment: components["schemas"]["link"]; self: components["schemas"]["link"]; }; - author_association: components["schemas"]["author_association"]; - auto_merge: components["schemas"]["auto_merge"]; + author_association: components["schemas"]["author-association"]; + auto_merge: components["schemas"]["auto-merge"]; /** Indicates whether or not the pull request is a draft. */ draft?: boolean; merged: boolean; @@ -12579,7 +12569,7 @@ export interface components { commit_id: string; body_html?: string; body_text?: string; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; }; /** Legacy Review Comment */ "review-comment": { @@ -12600,7 +12590,7 @@ export interface components { updated_at: string; html_url: string; pull_request_url: string; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; _links: { self: components["schemas"]["link"]; html: components["schemas"]["link"]; @@ -13076,7 +13066,7 @@ export interface components { }; body?: string; score: number; - author_association: components["schemas"]["author_association"]; + author_association: components["schemas"]["author-association"]; draft?: boolean; repository?: components["schemas"]["repository"]; body_html?: string; @@ -13321,12 +13311,15 @@ export interface components { }; /** Secrets for a GitHub Codespace. */ "codespaces-secret": { - /** The name of the secret. */ + /** The name of the secret */ name: string; + /** Secret created at */ created_at: string; + /** Secret last updated at */ updated_at: string; - /** Visibility of a secret */ + /** The type of repositories in the organization that the secret is visible to */ visibility: "all" | "private" | "selected"; + /** API URL at which the list of repositories this secret is vicible can be retrieved */ selected_repositories_url: string; }; /** The public key used for setting user Codespaces' Secrets. */ @@ -13550,14 +13543,14 @@ export interface components { "application/json": components["schemas"]["basic-error"]; }; }; - /** Internal Error */ - internal_error: { + /** Conflict */ + conflict: { content: { "application/json": components["schemas"]["basic-error"]; }; }; - /** Conflict */ - conflict: { + /** Internal Error */ + internal_error: { content: { "application/json": components["schemas"]["basic-error"]; }; @@ -13641,7 +13634,7 @@ export interface components { /** The unique identifier of the authorization. */ "authorization-id": number; /** The slug version of the enterprise name or the login of an organization. */ - enterprise_or_org: string; + "enterprise-or-org": string; /** The slug version of the enterprise name. You can also substitute this value with the enterprise id. */ enterprise: string; /** The unique identifier of the organization. */ @@ -13867,7 +13860,7 @@ export interface components { /** The unique identifier of the release. */ "release-id": number; /** The unique identifier of the tag protection. */ - tag_protection_id: number; + "tag-protection-id": number; /** The time frame to display results for. */ per: "" | "day" | "week"; /** A repository ID. Only return repositories with an ID greater than this ID. */ @@ -14750,7 +14743,7 @@ export interface operations { parameters: { path: { /** The slug version of the enterprise name or the login of an organization. */ - enterprise_or_org: components["parameters"]["enterprise_or_org"]; + enterprise_or_org: components["parameters"]["enterprise-or-org"]; }; query: { /** A cursor, as given in the [Link header](https://docs.github.com/rest/overview/resources-in-the-rest-api#link-header). If specified, the query only searches for events after this cursor. */ @@ -17030,41 +17023,6 @@ export interface operations { }; }; }; - /** - * Lists the codespaces associated to a specified organization. - * - * You must authenticate using an access token with the `admin:org` scope to use this endpoint. - */ - "codespaces/list-in-organization": { - parameters: { - query: { - /** The number of results per page (max 100). */ - per_page?: components["parameters"]["per-page"]; - /** Page number of the results to fetch. */ - page?: components["parameters"]["page"]; - }; - path: { - /** The unique identifier of the organization. */ - org_id: components["parameters"]["org-id"]; - }; - }; - responses: { - /** Response */ - 200: { - content: { - "application/json": { - total_count: number; - codespaces: components["schemas"]["codespace"][]; - }; - }; - }; - 304: components["responses"]["not_modified"]; - 401: components["responses"]["requires_authentication"]; - 403: components["responses"]["forbidden"]; - 404: components["responses"]["not_found"]; - 500: components["responses"]["internal_error"]; - }; - }; /** * To see many of the organization response values, you need to be an authenticated organization owner with the `admin:org` scope. When the value of `two_factor_requirement_enabled` is `true`, the organization requires all members, billing managers, and outside collaborators to enable [two-factor authentication](https://docs.github.com/articles/securing-your-account-with-two-factor-authentication-2fa/). * @@ -18337,7 +18295,7 @@ export interface operations { /** Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret. */ visibility: "all" | "private" | "selected"; /** An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/rest/reference/actions#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/rest/reference/actions#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/rest/reference/actions#remove-selected-repository-from-an-organization-secret) endpoints. */ - selected_repository_ids?: string[]; + selected_repository_ids?: (Partial & Partial)[]; }; }; }; @@ -18608,6 +18566,41 @@ export interface operations { 503: components["responses"]["service_unavailable"]; }; }; + /** + * Lists the codespaces associated to a specified organization. + * + * You must authenticate using an access token with the `admin:org` scope to use this endpoint. + */ + "codespaces/list-in-organization": { + parameters: { + query: { + /** The number of results per page (max 100). */ + per_page?: components["parameters"]["per-page"]; + /** Page number of the results to fetch. */ + page?: components["parameters"]["page"]; + }; + path: { + /** The organization name. The name is not case sensitive. */ + org: components["parameters"]["org"]; + }; + }; + responses: { + /** Response */ + 200: { + content: { + "application/json": { + total_count: number; + codespaces: components["schemas"]["codespace"][]; + }; + }; + }; + 304: components["responses"]["not_modified"]; + 401: components["responses"]["requires_authentication"]; + 403: components["responses"]["forbidden"]; + 404: components["responses"]["not_found"]; + 500: components["responses"]["internal_error"]; + }; + }; /** * Listing and deleting credential authorizations is available to organizations with GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products). * @@ -18825,7 +18818,7 @@ export interface operations { /** Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret. */ visibility: "all" | "private" | "selected"; /** An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/rest/reference/dependabot#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/rest/reference/dependabot#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/rest/reference/dependabot#remove-selected-repository-from-an-organization-secret) endpoints. */ - selected_repository_ids?: string[]; + selected_repository_ids?: (Partial & Partial)[]; }; }; }; @@ -24563,9 +24556,9 @@ export interface operations { requestBody: { content: { "application/json": { - /** The prefix appended by a number will generate a link any time it is found in an issue, pull request, or commit. */ + /** The prefix appended by alphanumeric characters will generate a link any time it is found in an issue, pull request, or commit. */ key_prefix: string; - /** The URL must contain for the reference number. */ + /** The URL must contain `` for the reference number. `` matches alphanumeric characters `A-Z` (case insensitive), `0-9`, and `-`. */ url_template: string; }; }; @@ -28907,7 +28900,7 @@ export interface operations { id?: number; }[] | null; - deployment_branch_policy?: components["schemas"]["deployment_branch_policy"]; + deployment_branch_policy?: components["schemas"]["deployment-branch-policy"]; } | null; }; }; @@ -30837,7 +30830,7 @@ export interface operations { content: { "application/json": { /** Usernames of assignees to remove from an issue. _NOTE: Only users with push access can remove assignees from an issue. Assignees are silently ignored otherwise._ */ - assignees?: string[]; + assignees: string[]; }; }; }; @@ -34365,7 +34358,7 @@ export interface operations { /** The name of the repository. The name is not case sensitive. */ repo: components["parameters"]["repo"]; /** The unique identifier of the tag protection. */ - tag_protection_id: components["parameters"]["tag_protection_id"]; + tag_protection_id: components["parameters"]["tag-protection-id"]; }; }; responses: { @@ -40197,29 +40190,6 @@ export interface operations { 500: components["responses"]["internal_error"]; }; }; - /** - * Returns the contents of the repository's code of conduct file, if one is detected. - * - * A code of conduct is detected if there is a file named `CODE_OF_CONDUCT` in the root directory of the repository. GitHub detects which code of conduct it is using fuzzy matching. - */ - "codes-of-conduct/get-for-repo": { - parameters: { - path: { - /** The account owner of the repository. The name is not case sensitive. */ - owner: components["parameters"]["owner"]; - /** The name of the repository. The name is not case sensitive. */ - repo: components["parameters"]["repo"]; - }; - }; - responses: { - /** Response */ - 200: { - content: { - "application/json": components["schemas"]["code-of-conduct"]; - }; - }; - }; - }; } export interface external {}