Skip to content

Commit

Permalink
feat: new /orgs/{org}/actions/runners/generate-jitconfig endpoint, …
Browse files Browse the repository at this point in the history
…type description updates (#552)
  • Loading branch information
octokitbot authored Jun 9, 2023
1 parent dc07698 commit 4741ef6
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 13 deletions.
28 changes: 21 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
},
"description": "Shared TypeScript definitions for Octokit projects",
"dependencies": {
"@octokit/openapi-types": "^17.2.0"
"@octokit/openapi-types": "^18.0.0"
},
"scripts": {
"build": "pika-pack build",
Expand Down Expand Up @@ -105,6 +105,6 @@
]
},
"octokit": {
"openapi-version": "11.2.0"
"openapi-version": "12.0.0"
}
}
55 changes: 51 additions & 4 deletions scripts/update-endpoints/generated/endpoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,45 @@
"previews": [],
"renamed": null
},
{
"method": "POST",
"url": "/orgs/{org}/actions/runners/generate-jitconfig",
"documentationUrl": "https://docs.github.com/rest/actions/self-hosted-runners#create-configuration-for-a-just-in-time-runner-for-an-organization",
"parameters": [
{ "alias": null, "deprecated": null, "in": "PATH", "name": "org" },
{ "alias": null, "deprecated": null, "in": "BODY", "name": "name" },
{
"alias": null,
"deprecated": null,
"in": "BODY",
"name": "runner_group_id"
},
{ "alias": null, "deprecated": null, "in": "BODY", "name": "labels" },
{ "alias": null, "deprecated": null, "in": "BODY", "name": "work_folder" }
],
"previews": [],
"renamed": null
},
{
"method": "POST",
"url": "/repos/{owner}/{repo}/actions/runners/generate-jitconfig",
"documentationUrl": "https://docs.github.com/rest/actions/self-hosted-runners#create-configuration-for-a-just-in-time-runner-for-a-repository",
"parameters": [
{ "alias": null, "deprecated": null, "in": "PATH", "name": "owner" },
{ "alias": null, "deprecated": null, "in": "PATH", "name": "repo" },
{ "alias": null, "deprecated": null, "in": "BODY", "name": "name" },
{
"alias": null,
"deprecated": null,
"in": "BODY",
"name": "runner_group_id"
},
{ "alias": null, "deprecated": null, "in": "BODY", "name": "labels" },
{ "alias": null, "deprecated": null, "in": "BODY", "name": "work_folder" }
],
"previews": [],
"renamed": null
},
{
"method": "GET",
"url": "/repos/{owner}/{repo}/actions/caches",
Expand Down Expand Up @@ -4304,6 +4343,7 @@
},
{ "alias": null, "deprecated": null, "in": "BODY", "name": "ref" },
{ "alias": null, "deprecated": null, "in": "BODY", "name": "location" },
{ "alias": null, "deprecated": null, "in": "BODY", "name": "geo" },
{ "alias": null, "deprecated": null, "in": "BODY", "name": "client_ip" },
{ "alias": null, "deprecated": null, "in": "BODY", "name": "machine" },
{
Expand Down Expand Up @@ -4460,6 +4500,7 @@
"name": "pull_number"
},
{ "alias": null, "deprecated": null, "in": "BODY", "name": "location" },
{ "alias": null, "deprecated": null, "in": "BODY", "name": "geo" },
{ "alias": null, "deprecated": null, "in": "BODY", "name": "client_ip" },
{ "alias": null, "deprecated": null, "in": "BODY", "name": "machine" },
{
Expand Down Expand Up @@ -4511,6 +4552,7 @@
{ "alias": null, "deprecated": null, "in": "PATH", "name": "repo" },
{ "alias": null, "deprecated": null, "in": "BODY", "name": "ref" },
{ "alias": null, "deprecated": null, "in": "BODY", "name": "location" },
{ "alias": null, "deprecated": null, "in": "BODY", "name": "geo" },
{ "alias": null, "deprecated": null, "in": "BODY", "name": "client_ip" },
{ "alias": null, "deprecated": null, "in": "BODY", "name": "machine" },
{
Expand Down Expand Up @@ -5954,8 +5996,7 @@
{ "alias": null, "deprecated": null, "in": "PATH", "name": "owner" },
{ "alias": null, "deprecated": null, "in": "PATH", "name": "repo" },
{ "alias": null, "deprecated": null, "in": "BODY", "name": "ref" },
{ "alias": null, "deprecated": null, "in": "BODY", "name": "sha" },
{ "alias": null, "deprecated": null, "in": "BODY", "name": "key" }
{ "alias": null, "deprecated": null, "in": "BODY", "name": "sha" }
],
"previews": [],
"renamed": null
Expand Down Expand Up @@ -12360,7 +12401,9 @@
"parameters": [
{ "alias": null, "deprecated": null, "in": "PATH", "name": "owner" },
{ "alias": null, "deprecated": null, "in": "PATH", "name": "repo" },
{ "alias": null, "deprecated": null, "in": "PATH", "name": "branch" }
{ "alias": null, "deprecated": null, "in": "PATH", "name": "branch" },
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "per_page" },
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "page" }
],
"previews": [],
"renamed": null
Expand Down Expand Up @@ -12646,7 +12689,9 @@
"url": "/orgs/{org}/rulesets",
"documentationUrl": "https://docs.github.com/rest/repos/rules#get-organization-rulesets",
"parameters": [
{ "alias": null, "deprecated": null, "in": "PATH", "name": "org" }
{ "alias": null, "deprecated": null, "in": "PATH", "name": "org" },
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "per_page" },
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "page" }
],
"previews": [],
"renamed": null
Expand Down Expand Up @@ -12805,6 +12850,8 @@
"parameters": [
{ "alias": null, "deprecated": null, "in": "PATH", "name": "owner" },
{ "alias": null, "deprecated": null, "in": "PATH", "name": "repo" },
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "per_page" },
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "page" },
{
"alias": null,
"deprecated": null,
Expand Down
14 changes: 14 additions & 0 deletions src/generated/Endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4533,6 +4533,13 @@ export interface Endpoints {
"/orgs/{org}/actions/required_workflows",
"post"
>;
/**
* @see https://docs.github.com/rest/actions/self-hosted-runners#create-configuration-for-a-just-in-time-runner-for-an-organization
*/
"POST /orgs/{org}/actions/runners/generate-jitconfig": Operation<
"/orgs/{org}/actions/runners/generate-jitconfig",
"post"
>;
/**
* @see https://docs.github.com/rest/reference/actions#create-a-registration-token-for-an-organization
*/
Expand Down Expand Up @@ -4701,6 +4708,13 @@ export interface Endpoints {
"/repos/{owner}/{repo}/actions/jobs/{job_id}/rerun",
"post"
>;
/**
* @see https://docs.github.com/rest/actions/self-hosted-runners#create-configuration-for-a-just-in-time-runner-for-a-repository
*/
"POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig": Operation<
"/repos/{owner}/{repo}/actions/runners/generate-jitconfig",
"post"
>;
/**
* @see https://docs.github.com/rest/reference/actions#create-a-registration-token-for-a-repository
*/
Expand Down

0 comments on commit 4741ef6

Please sign in to comment.