Skip to content

Commit 4741ef6

Browse files
authored
feat: new /orgs/{org}/actions/runners/generate-jitconfig endpoint, type description updates (#552)
1 parent dc07698 commit 4741ef6

4 files changed

Lines changed: 88 additions & 13 deletions

File tree

package-lock.json

Lines changed: 21 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
},
77
"description": "Shared TypeScript definitions for Octokit projects",
88
"dependencies": {
9-
"@octokit/openapi-types": "^17.2.0"
9+
"@octokit/openapi-types": "^18.0.0"
1010
},
1111
"scripts": {
1212
"build": "pika-pack build",
@@ -105,6 +105,6 @@
105105
]
106106
},
107107
"octokit": {
108-
"openapi-version": "11.2.0"
108+
"openapi-version": "12.0.0"
109109
}
110110
}

scripts/update-endpoints/generated/endpoints.json

Lines changed: 51 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -654,6 +654,45 @@
654654
"previews": [],
655655
"renamed": null
656656
},
657+
{
658+
"method": "POST",
659+
"url": "/orgs/{org}/actions/runners/generate-jitconfig",
660+
"documentationUrl": "https://docs.github.com/rest/actions/self-hosted-runners#create-configuration-for-a-just-in-time-runner-for-an-organization",
661+
"parameters": [
662+
{ "alias": null, "deprecated": null, "in": "PATH", "name": "org" },
663+
{ "alias": null, "deprecated": null, "in": "BODY", "name": "name" },
664+
{
665+
"alias": null,
666+
"deprecated": null,
667+
"in": "BODY",
668+
"name": "runner_group_id"
669+
},
670+
{ "alias": null, "deprecated": null, "in": "BODY", "name": "labels" },
671+
{ "alias": null, "deprecated": null, "in": "BODY", "name": "work_folder" }
672+
],
673+
"previews": [],
674+
"renamed": null
675+
},
676+
{
677+
"method": "POST",
678+
"url": "/repos/{owner}/{repo}/actions/runners/generate-jitconfig",
679+
"documentationUrl": "https://docs.github.com/rest/actions/self-hosted-runners#create-configuration-for-a-just-in-time-runner-for-a-repository",
680+
"parameters": [
681+
{ "alias": null, "deprecated": null, "in": "PATH", "name": "owner" },
682+
{ "alias": null, "deprecated": null, "in": "PATH", "name": "repo" },
683+
{ "alias": null, "deprecated": null, "in": "BODY", "name": "name" },
684+
{
685+
"alias": null,
686+
"deprecated": null,
687+
"in": "BODY",
688+
"name": "runner_group_id"
689+
},
690+
{ "alias": null, "deprecated": null, "in": "BODY", "name": "labels" },
691+
{ "alias": null, "deprecated": null, "in": "BODY", "name": "work_folder" }
692+
],
693+
"previews": [],
694+
"renamed": null
695+
},
657696
{
658697
"method": "GET",
659698
"url": "/repos/{owner}/{repo}/actions/caches",
@@ -4304,6 +4343,7 @@
43044343
},
43054344
{ "alias": null, "deprecated": null, "in": "BODY", "name": "ref" },
43064345
{ "alias": null, "deprecated": null, "in": "BODY", "name": "location" },
4346+
{ "alias": null, "deprecated": null, "in": "BODY", "name": "geo" },
43074347
{ "alias": null, "deprecated": null, "in": "BODY", "name": "client_ip" },
43084348
{ "alias": null, "deprecated": null, "in": "BODY", "name": "machine" },
43094349
{
@@ -4460,6 +4500,7 @@
44604500
"name": "pull_number"
44614501
},
44624502
{ "alias": null, "deprecated": null, "in": "BODY", "name": "location" },
4503+
{ "alias": null, "deprecated": null, "in": "BODY", "name": "geo" },
44634504
{ "alias": null, "deprecated": null, "in": "BODY", "name": "client_ip" },
44644505
{ "alias": null, "deprecated": null, "in": "BODY", "name": "machine" },
44654506
{
@@ -4511,6 +4552,7 @@
45114552
{ "alias": null, "deprecated": null, "in": "PATH", "name": "repo" },
45124553
{ "alias": null, "deprecated": null, "in": "BODY", "name": "ref" },
45134554
{ "alias": null, "deprecated": null, "in": "BODY", "name": "location" },
4555+
{ "alias": null, "deprecated": null, "in": "BODY", "name": "geo" },
45144556
{ "alias": null, "deprecated": null, "in": "BODY", "name": "client_ip" },
45154557
{ "alias": null, "deprecated": null, "in": "BODY", "name": "machine" },
45164558
{
@@ -5954,8 +5996,7 @@
59545996
{ "alias": null, "deprecated": null, "in": "PATH", "name": "owner" },
59555997
{ "alias": null, "deprecated": null, "in": "PATH", "name": "repo" },
59565998
{ "alias": null, "deprecated": null, "in": "BODY", "name": "ref" },
5957-
{ "alias": null, "deprecated": null, "in": "BODY", "name": "sha" },
5958-
{ "alias": null, "deprecated": null, "in": "BODY", "name": "key" }
5999+
{ "alias": null, "deprecated": null, "in": "BODY", "name": "sha" }
59596000
],
59606001
"previews": [],
59616002
"renamed": null
@@ -12360,7 +12401,9 @@
1236012401
"parameters": [
1236112402
{ "alias": null, "deprecated": null, "in": "PATH", "name": "owner" },
1236212403
{ "alias": null, "deprecated": null, "in": "PATH", "name": "repo" },
12363-
{ "alias": null, "deprecated": null, "in": "PATH", "name": "branch" }
12404+
{ "alias": null, "deprecated": null, "in": "PATH", "name": "branch" },
12405+
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "per_page" },
12406+
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "page" }
1236412407
],
1236512408
"previews": [],
1236612409
"renamed": null
@@ -12646,7 +12689,9 @@
1264612689
"url": "/orgs/{org}/rulesets",
1264712690
"documentationUrl": "https://docs.github.com/rest/repos/rules#get-organization-rulesets",
1264812691
"parameters": [
12649-
{ "alias": null, "deprecated": null, "in": "PATH", "name": "org" }
12692+
{ "alias": null, "deprecated": null, "in": "PATH", "name": "org" },
12693+
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "per_page" },
12694+
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "page" }
1265012695
],
1265112696
"previews": [],
1265212697
"renamed": null
@@ -12805,6 +12850,8 @@
1280512850
"parameters": [
1280612851
{ "alias": null, "deprecated": null, "in": "PATH", "name": "owner" },
1280712852
{ "alias": null, "deprecated": null, "in": "PATH", "name": "repo" },
12853+
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "per_page" },
12854+
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "page" },
1280812855
{
1280912856
"alias": null,
1281012857
"deprecated": null,

src/generated/Endpoints.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4533,6 +4533,13 @@ export interface Endpoints {
45334533
"/orgs/{org}/actions/required_workflows",
45344534
"post"
45354535
>;
4536+
/**
4537+
* @see https://docs.github.com/rest/actions/self-hosted-runners#create-configuration-for-a-just-in-time-runner-for-an-organization
4538+
*/
4539+
"POST /orgs/{org}/actions/runners/generate-jitconfig": Operation<
4540+
"/orgs/{org}/actions/runners/generate-jitconfig",
4541+
"post"
4542+
>;
45364543
/**
45374544
* @see https://docs.github.com/rest/reference/actions#create-a-registration-token-for-an-organization
45384545
*/
@@ -4701,6 +4708,13 @@ export interface Endpoints {
47014708
"/repos/{owner}/{repo}/actions/jobs/{job_id}/rerun",
47024709
"post"
47034710
>;
4711+
/**
4712+
* @see https://docs.github.com/rest/actions/self-hosted-runners#create-configuration-for-a-just-in-time-runner-for-a-repository
4713+
*/
4714+
"POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig": Operation<
4715+
"/repos/{owner}/{repo}/actions/runners/generate-jitconfig",
4716+
"post"
4717+
>;
47044718
/**
47054719
* @see https://docs.github.com/rest/reference/actions#create-a-registration-token-for-a-repository
47064720
*/

0 commit comments

Comments
 (0)