Skip to content

Commit 3a48524

Browse files
Update OpenAPI 3.0 Descriptions
1 parent 2b6e93c commit 3a48524

24 files changed

+3798
-0
lines changed

descriptions/api.github.com/api.github.com.2022-11-28.json

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10218,6 +10218,15 @@
1021810218
"description": "The machine size of the runner. To list available sizes, use `GET actions/hosted-runners/machine-sizes`",
1021910219
"type": "string"
1022010220
},
10221+
"image_source": {
10222+
"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`.",
10223+
"type": "string",
10224+
"enum": [
10225+
"github",
10226+
"partner",
10227+
"custom"
10228+
]
10229+
},
1022110230
"image_id": {
1022210231
"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`.",
1022310232
"type": "string"
@@ -10226,6 +10235,10 @@
1022610235
"description": "The version of the runner image to deploy. This is relevant only for runners using custom images.",
1022710236
"type": "string",
1022810237
"nullable": true
10238+
},
10239+
"image_gen": {
10240+
"description": "Whether to enable image generation for this runner pool. When enabled, the runner pool is used to build and publish custom runner images.",
10241+
"type": "boolean"
1022910242
}
1023010243
}
1023110244
},
@@ -59967,6 +59980,94 @@
5996759980
}
5996859981
}
5996959982
},
59983+
"/repos/{owner}/{repo}/pulls/{pull_number}/archive": {
59984+
"put": {
59985+
"summary": "Archive a pull request",
59986+
"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.",
59987+
"tags": [
59988+
"pulls"
59989+
],
59990+
"operationId": "pulls/archive",
59991+
"externalDocs": {
59992+
"description": "API method documentation",
59993+
"url": "https://docs.github.com/rest/pulls/pulls#archive-a-pull-request"
59994+
},
59995+
"parameters": [
59996+
{
59997+
"$ref": "#/components/parameters/owner"
59998+
},
59999+
{
60000+
"$ref": "#/components/parameters/repo"
60001+
},
60002+
{
60003+
"$ref": "#/components/parameters/pull-number"
60004+
}
60005+
],
60006+
"responses": {
60007+
"204": {
60008+
"description": "Response"
60009+
},
60010+
"403": {
60011+
"$ref": "#/components/responses/forbidden"
60012+
},
60013+
"404": {
60014+
"$ref": "#/components/responses/not_found"
60015+
},
60016+
"422": {
60017+
"$ref": "#/components/responses/validation_failed"
60018+
}
60019+
},
60020+
"x-github": {
60021+
"githubCloudOnly": false,
60022+
"enabledForGitHubApps": true,
60023+
"category": "pulls",
60024+
"subcategory": "pulls"
60025+
}
60026+
},
60027+
"delete": {
60028+
"summary": "Unarchive a pull request",
60029+
"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.",
60030+
"tags": [
60031+
"pulls"
60032+
],
60033+
"operationId": "pulls/unarchive",
60034+
"externalDocs": {
60035+
"description": "API method documentation",
60036+
"url": "https://docs.github.com/rest/pulls/pulls#unarchive-a-pull-request"
60037+
},
60038+
"parameters": [
60039+
{
60040+
"$ref": "#/components/parameters/owner"
60041+
},
60042+
{
60043+
"$ref": "#/components/parameters/repo"
60044+
},
60045+
{
60046+
"$ref": "#/components/parameters/pull-number"
60047+
}
60048+
],
60049+
"responses": {
60050+
"204": {
60051+
"description": "Response"
60052+
},
60053+
"403": {
60054+
"$ref": "#/components/responses/forbidden"
60055+
},
60056+
"404": {
60057+
"$ref": "#/components/responses/not_found"
60058+
},
60059+
"422": {
60060+
"$ref": "#/components/responses/validation_failed"
60061+
}
60062+
},
60063+
"x-github": {
60064+
"githubCloudOnly": false,
60065+
"enabledForGitHubApps": true,
60066+
"category": "pulls",
60067+
"subcategory": "pulls"
60068+
}
60069+
}
60070+
},
5997060071
"/repos/{owner}/{repo}/pulls/{pull_number}/codespaces": {
5997160072
"post": {
5997260073
"summary": "Create a codespace from a pull request",

0 commit comments

Comments
 (0)