|
10218 | 10218 | "description": "The machine size of the runner. To list available sizes, use `GET actions/hosted-runners/machine-sizes`", |
10219 | 10219 | "type": "string" |
10220 | 10220 | }, |
| 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 | + }, |
10221 | 10230 | "image_id": { |
10222 | 10231 | "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`.", |
10223 | 10232 | "type": "string" |
|
10226 | 10235 | "description": "The version of the runner image to deploy. This is relevant only for runners using custom images.", |
10227 | 10236 | "type": "string", |
10228 | 10237 | "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" |
10229 | 10242 | } |
10230 | 10243 | } |
10231 | 10244 | }, |
|
59967 | 59980 | } |
59968 | 59981 | } |
59969 | 59982 | }, |
| 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 | + }, |
59970 | 60071 | "/repos/{owner}/{repo}/pulls/{pull_number}/codespaces": { |
59971 | 60072 | "post": { |
59972 | 60073 | "summary": "Create a codespace from a pull request", |
|
0 commit comments