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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
101 changes: 101 additions & 0 deletions descriptions-next/api.github.com/api.github.com.2022-11-28.json
Original file line number Diff line number Diff line change
Expand Up @@ -10272,6 +10272,15 @@
"description": "The machine size of the runner. To list available sizes, use `GET actions/hosted-runners/machine-sizes`",
"type": "string"
},
"image_source": {
"description": "The source type of the runner image to use. Must match the source of the image specified by `image_id`. Can be one of `github`, `partner`, or `custom`.",
"type": "string",
"enum": [
"github",
"partner",
"custom"
]
},
"image_id": {
"description": "The unique identifier of the runner image. To list available images, use `GET /actions/hosted-runners/images/github-owned`, `GET /actions/hosted-runners/images/partner`, or `GET /actions/hosted-runners/images/custom`.",
"type": "string"
Expand All @@ -10282,6 +10291,10 @@
"string",
"null"
]
},
"image_gen": {
"description": "Whether to enable image generation for this runner pool. When enabled, the runner pool is used to build and publish custom runner images.",
"type": "boolean"
}
}
},
Expand Down Expand Up @@ -60254,6 +60267,94 @@
}
}
},
"/repos/{owner}/{repo}/pulls/{pull_number}/archive": {
"put": {
"summary": "Archive a pull request",
"description": "Archives a pull request. Closes, locks, and marks the pull request as archived.\nOnly repository admins can archive pull requests.\nArchived pull requests are hidden from non-admin users.",
"tags": [
"pulls"
],
"operationId": "pulls/archive",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/rest/pulls/pulls#archive-a-pull-request"
},
"parameters": [
{
"$ref": "#/components/parameters/owner"
},
{
"$ref": "#/components/parameters/repo"
},
{
"$ref": "#/components/parameters/pull-number"
}
],
"responses": {
"204": {
"description": "Response"
},
"403": {
"$ref": "#/components/responses/forbidden"
},
"404": {
"$ref": "#/components/responses/not_found"
},
"422": {
"$ref": "#/components/responses/validation_failed"
}
},
"x-github": {
"githubCloudOnly": false,
"enabledForGitHubApps": true,
"category": "pulls",
"subcategory": "pulls"
}
},
"delete": {
"summary": "Unarchive a pull request",
"description": "Unarchives a pull request. Removes the archived flag from the pull request.\nDoes not automatically reopen or unlock the pull request.\nOnly repository admins can unarchive pull requests.",
"tags": [
"pulls"
],
"operationId": "pulls/unarchive",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/rest/pulls/pulls#unarchive-a-pull-request"
},
"parameters": [
{
"$ref": "#/components/parameters/owner"
},
{
"$ref": "#/components/parameters/repo"
},
{
"$ref": "#/components/parameters/pull-number"
}
],
"responses": {
"204": {
"description": "Response"
},
"403": {
"$ref": "#/components/responses/forbidden"
},
"404": {
"$ref": "#/components/responses/not_found"
},
"422": {
"$ref": "#/components/responses/validation_failed"
}
},
"x-github": {
"githubCloudOnly": false,
"enabledForGitHubApps": true,
"category": "pulls",
"subcategory": "pulls"
}
}
},
"/repos/{owner}/{repo}/pulls/{pull_number}/codespaces": {
"post": {
"summary": "Create a codespace from a pull request",
Expand Down
Loading