Skip to content

Commit ff98468

Browse files
authored
feat: permissions.organization_custom_properties (#598)
WIP octokit/openapi updated
1 parent 1397259 commit ff98468

File tree

4 files changed

+59
-26
lines changed

4 files changed

+59
-26
lines changed

package-lock.json

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-2
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": "^19.0.2"
9+
"@octokit/openapi-types": "^19.1.0"
1010
},
1111
"scripts": {
1212
"build": "node scripts/build.mjs && tsc -p tsconfig.json",
@@ -80,6 +80,6 @@
8080
]
8181
},
8282
"octokit": {
83-
"openapi-version": "13.2.0"
83+
"openapi-version": "13.3.0"
8484
}
8585
}

scripts/update-endpoints/generated/endpoints.json

+45-12
Original file line numberDiff line numberDiff line change
@@ -2399,6 +2399,12 @@
23992399
"in": "BODY",
24002400
"name": "permissions.organization_custom_roles"
24012401
},
2402+
{
2403+
"alias": null,
2404+
"deprecated": null,
2405+
"in": "BODY",
2406+
"name": "permissions.organization_custom_properties"
2407+
},
24022408
{
24032409
"alias": null,
24042410
"deprecated": null,
@@ -2980,6 +2986,12 @@
29802986
"in": "BODY",
29812987
"name": "permissions.organization_custom_roles"
29822988
},
2989+
{
2990+
"alias": null,
2991+
"deprecated": null,
2992+
"in": "BODY",
2993+
"name": "permissions.organization_custom_properties"
2994+
},
29832995
{
29842996
"alias": null,
29852997
"deprecated": null,
@@ -7327,7 +7339,7 @@
73277339
{
73287340
"method": "PATCH",
73297341
"url": "/orgs/{org}/properties/schema",
7330-
"documentationUrl": "https://docs.github.com/rest/orgs/properties#create-or-update-custom-properties-for-an-organization",
7342+
"documentationUrl": "https://docs.github.com/rest/orgs/custom-properties#create-or-update-custom-properties-for-an-organization",
73317343
"parameters": [
73327344
{ "alias": null, "deprecated": null, "in": "PATH", "name": "org" },
73337345
{ "alias": null, "deprecated": null, "in": "BODY", "name": "properties" },
@@ -7373,7 +7385,7 @@
73737385
{
73747386
"method": "PATCH",
73757387
"url": "/orgs/{org}/properties/values",
7376-
"documentationUrl": "https://docs.github.com/rest/orgs/properties#create-or-update-custom-property-values-for-organization-repositories",
7388+
"documentationUrl": "https://docs.github.com/rest/orgs/custom-properties#create-or-update-custom-property-values-for-organization-repositories",
73777389
"parameters": [
73787390
{ "alias": null, "deprecated": null, "in": "PATH", "name": "org" },
73797391
{
@@ -7401,7 +7413,7 @@
74017413
{
74027414
"method": "PUT",
74037415
"url": "/orgs/{org}/properties/schema/{custom_property_name}",
7404-
"documentationUrl": "https://docs.github.com/rest/orgs/properties#create-or-update-a-custom-property-for-an-organization",
7416+
"documentationUrl": "https://docs.github.com/rest/orgs/custom-properties#create-or-update-a-custom-property-for-an-organization",
74057417
"parameters": [
74067418
{ "alias": null, "deprecated": null, "in": "PATH", "name": "org" },
74077419
{
@@ -7525,7 +7537,7 @@
75257537
{
75267538
"method": "GET",
75277539
"url": "/orgs/{org}/properties/schema",
7528-
"documentationUrl": "https://docs.github.com/rest/orgs/properties#get-all-custom-properties-for-an-organization",
7540+
"documentationUrl": "https://docs.github.com/rest/orgs/custom-properties#get-all-custom-properties-for-an-organization",
75297541
"parameters": [
75307542
{ "alias": null, "deprecated": null, "in": "PATH", "name": "org" }
75317543
],
@@ -7534,7 +7546,7 @@
75347546
{
75357547
"method": "GET",
75367548
"url": "/orgs/{org}/properties/schema/{custom_property_name}",
7537-
"documentationUrl": "https://docs.github.com/rest/orgs/properties#get-a-custom-property-for-an-organization",
7549+
"documentationUrl": "https://docs.github.com/rest/orgs/custom-properties#get-a-custom-property-for-an-organization",
75387550
"parameters": [
75397551
{ "alias": null, "deprecated": null, "in": "PATH", "name": "org" },
75407552
{
@@ -7631,11 +7643,17 @@
76317643
{
76327644
"method": "GET",
76337645
"url": "/orgs/{org}/properties/values",
7634-
"documentationUrl": "https://docs.github.com/rest/orgs/properties#list-custom-property-values-for-organization-repositories",
7646+
"documentationUrl": "https://docs.github.com/rest/orgs/custom-properties#list-custom-property-values-for-organization-repositories",
76357647
"parameters": [
76367648
{ "alias": null, "deprecated": null, "in": "PATH", "name": "org" },
76377649
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "per_page" },
7638-
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "page" }
7650+
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "page" },
7651+
{
7652+
"alias": null,
7653+
"deprecated": null,
7654+
"in": "QUERY",
7655+
"name": "repository_query"
7656+
}
76397657
],
76407658
"renamed": null
76417659
},
@@ -7915,7 +7933,7 @@
79157933
{
79167934
"method": "DELETE",
79177935
"url": "/orgs/{org}/properties/schema/{custom_property_name}",
7918-
"documentationUrl": "https://docs.github.com/rest/orgs/properties#remove-a-custom-property-for-an-organization",
7936+
"documentationUrl": "https://docs.github.com/rest/orgs/custom-properties#remove-a-custom-property-for-an-organization",
79197937
"parameters": [
79207938
{ "alias": null, "deprecated": null, "in": "PATH", "name": "org" },
79217939
{
@@ -10808,6 +10826,18 @@
1080810826
"deprecated": null,
1080910827
"in": "BODY",
1081010828
"name": "merge_commit_message"
10829+
},
10830+
{
10831+
"alias": null,
10832+
"deprecated": null,
10833+
"in": "BODY",
10834+
"name": "custom_properties"
10835+
},
10836+
{
10837+
"alias": null,
10838+
"deprecated": null,
10839+
"in": "BODY",
10840+
"name": "custom_properties.*"
1081110841
}
1081210842
],
1081310843
"renamed": null
@@ -12214,7 +12244,7 @@
1221412244
{
1221512245
"method": "GET",
1221612246
"url": "/repos/{owner}/{repo}/properties/values",
12217-
"documentationUrl": "https://docs.github.com/rest/repos/properties#get-all-custom-property-values-for-a-repository",
12247+
"documentationUrl": "https://docs.github.com/rest/repos/custom-properties#get-all-custom-property-values-for-a-repository",
1221812248
"parameters": [
1221912249
{ "alias": null, "deprecated": null, "in": "PATH", "name": "owner" },
1222012250
{ "alias": null, "deprecated": null, "in": "PATH", "name": "repo" }
@@ -14601,7 +14631,8 @@
1460114631
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "direction" },
1460214632
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "per_page" },
1460314633
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "before" },
14604-
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "after" }
14634+
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "after" },
14635+
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "validity" }
1460514636
],
1460614637
"renamed": null
1460714638
},
@@ -14629,7 +14660,8 @@
1462914660
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "page" },
1463014661
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "per_page" },
1463114662
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "before" },
14632-
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "after" }
14663+
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "after" },
14664+
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "validity" }
1463314665
],
1463414666
"renamed": null
1463514667
},
@@ -14658,7 +14690,8 @@
1465814690
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "page" },
1465914691
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "per_page" },
1466014692
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "before" },
14661-
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "after" }
14693+
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "after" },
14694+
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "validity" }
1466214695
],
1466314696
"renamed": null
1466414697
},

src/generated/Endpoints.ts

+8-8
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ export interface Endpoints {
353353
"delete"
354354
>;
355355
/**
356-
* @see https://docs.github.com/rest/orgs/properties#remove-a-custom-property-for-an-organization
356+
* @see https://docs.github.com/rest/orgs/custom-properties#remove-a-custom-property-for-an-organization
357357
*/
358358
"DELETE /orgs/{org}/properties/schema/{custom_property_name}": Operation<
359359
"/orgs/{org}/properties/schema/{custom_property_name}",
@@ -1806,21 +1806,21 @@ export interface Endpoints {
18061806
*/
18071807
"GET /orgs/{org}/projects": Operation<"/orgs/{org}/projects", "get">;
18081808
/**
1809-
* @see https://docs.github.com/rest/orgs/properties#get-all-custom-properties-for-an-organization
1809+
* @see https://docs.github.com/rest/orgs/custom-properties#get-all-custom-properties-for-an-organization
18101810
*/
18111811
"GET /orgs/{org}/properties/schema": Operation<
18121812
"/orgs/{org}/properties/schema",
18131813
"get"
18141814
>;
18151815
/**
1816-
* @see https://docs.github.com/rest/orgs/properties#get-a-custom-property-for-an-organization
1816+
* @see https://docs.github.com/rest/orgs/custom-properties#get-a-custom-property-for-an-organization
18171817
*/
18181818
"GET /orgs/{org}/properties/schema/{custom_property_name}": Operation<
18191819
"/orgs/{org}/properties/schema/{custom_property_name}",
18201820
"get"
18211821
>;
18221822
/**
1823-
* @see https://docs.github.com/rest/orgs/properties#list-custom-property-values-for-organization-repositories
1823+
* @see https://docs.github.com/rest/orgs/custom-properties#list-custom-property-values-for-organization-repositories
18241824
*/
18251825
"GET /orgs/{org}/properties/values": Operation<
18261826
"/orgs/{org}/properties/values",
@@ -3231,7 +3231,7 @@ export interface Endpoints {
32313231
"get"
32323232
>;
32333233
/**
3234-
* @see https://docs.github.com/rest/repos/properties#get-all-custom-property-values-for-a-repository
3234+
* @see https://docs.github.com/rest/repos/custom-properties#get-all-custom-property-values-for-a-repository
32353235
*/
32363236
"GET /repos/{owner}/{repo}/properties/values": Operation<
32373237
"/repos/{owner}/{repo}/properties/values",
@@ -4264,14 +4264,14 @@ export interface Endpoints {
42644264
"patch"
42654265
>;
42664266
/**
4267-
* @see https://docs.github.com/rest/orgs/properties#create-or-update-custom-properties-for-an-organization
4267+
* @see https://docs.github.com/rest/orgs/custom-properties#create-or-update-custom-properties-for-an-organization
42684268
*/
42694269
"PATCH /orgs/{org}/properties/schema": Operation<
42704270
"/orgs/{org}/properties/schema",
42714271
"patch"
42724272
>;
42734273
/**
4274-
* @see https://docs.github.com/rest/orgs/properties#create-or-update-custom-property-values-for-organization-repositories
4274+
* @see https://docs.github.com/rest/orgs/custom-properties#create-or-update-custom-property-values-for-organization-repositories
42754275
*/
42764276
"PATCH /orgs/{org}/properties/values": Operation<
42774277
"/orgs/{org}/properties/values",
@@ -5702,7 +5702,7 @@ export interface Endpoints {
57025702
"put"
57035703
>;
57045704
/**
5705-
* @see https://docs.github.com/rest/orgs/properties#create-or-update-a-custom-property-for-an-organization
5705+
* @see https://docs.github.com/rest/orgs/custom-properties#create-or-update-a-custom-property-for-an-organization
57065706
*/
57075707
"PUT /orgs/{org}/properties/schema/{custom_property_name}": Operation<
57085708
"/orgs/{org}/properties/schema/{custom_property_name}",

0 commit comments

Comments
 (0)