Skip to content

Commit

Permalink
feat: permissions.organization_custom_properties (#598)
Browse files Browse the repository at this point in the history
WIP octokit/openapi updated
  • Loading branch information
octokitbot authored Dec 4, 2023
1 parent 1397259 commit ff98468
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 26 deletions.
8 changes: 4 additions & 4 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": "^19.0.2"
"@octokit/openapi-types": "^19.1.0"
},
"scripts": {
"build": "node scripts/build.mjs && tsc -p tsconfig.json",
Expand Down Expand Up @@ -80,6 +80,6 @@
]
},
"octokit": {
"openapi-version": "13.2.0"
"openapi-version": "13.3.0"
}
}
57 changes: 45 additions & 12 deletions scripts/update-endpoints/generated/endpoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -2399,6 +2399,12 @@
"in": "BODY",
"name": "permissions.organization_custom_roles"
},
{
"alias": null,
"deprecated": null,
"in": "BODY",
"name": "permissions.organization_custom_properties"
},
{
"alias": null,
"deprecated": null,
Expand Down Expand Up @@ -2980,6 +2986,12 @@
"in": "BODY",
"name": "permissions.organization_custom_roles"
},
{
"alias": null,
"deprecated": null,
"in": "BODY",
"name": "permissions.organization_custom_properties"
},
{
"alias": null,
"deprecated": null,
Expand Down Expand Up @@ -7327,7 +7339,7 @@
{
"method": "PATCH",
"url": "/orgs/{org}/properties/schema",
"documentationUrl": "https://docs.github.com/rest/orgs/properties#create-or-update-custom-properties-for-an-organization",
"documentationUrl": "https://docs.github.com/rest/orgs/custom-properties#create-or-update-custom-properties-for-an-organization",
"parameters": [
{ "alias": null, "deprecated": null, "in": "PATH", "name": "org" },
{ "alias": null, "deprecated": null, "in": "BODY", "name": "properties" },
Expand Down Expand Up @@ -7373,7 +7385,7 @@
{
"method": "PATCH",
"url": "/orgs/{org}/properties/values",
"documentationUrl": "https://docs.github.com/rest/orgs/properties#create-or-update-custom-property-values-for-organization-repositories",
"documentationUrl": "https://docs.github.com/rest/orgs/custom-properties#create-or-update-custom-property-values-for-organization-repositories",
"parameters": [
{ "alias": null, "deprecated": null, "in": "PATH", "name": "org" },
{
Expand Down Expand Up @@ -7401,7 +7413,7 @@
{
"method": "PUT",
"url": "/orgs/{org}/properties/schema/{custom_property_name}",
"documentationUrl": "https://docs.github.com/rest/orgs/properties#create-or-update-a-custom-property-for-an-organization",
"documentationUrl": "https://docs.github.com/rest/orgs/custom-properties#create-or-update-a-custom-property-for-an-organization",
"parameters": [
{ "alias": null, "deprecated": null, "in": "PATH", "name": "org" },
{
Expand Down Expand Up @@ -7525,7 +7537,7 @@
{
"method": "GET",
"url": "/orgs/{org}/properties/schema",
"documentationUrl": "https://docs.github.com/rest/orgs/properties#get-all-custom-properties-for-an-organization",
"documentationUrl": "https://docs.github.com/rest/orgs/custom-properties#get-all-custom-properties-for-an-organization",
"parameters": [
{ "alias": null, "deprecated": null, "in": "PATH", "name": "org" }
],
Expand All @@ -7534,7 +7546,7 @@
{
"method": "GET",
"url": "/orgs/{org}/properties/schema/{custom_property_name}",
"documentationUrl": "https://docs.github.com/rest/orgs/properties#get-a-custom-property-for-an-organization",
"documentationUrl": "https://docs.github.com/rest/orgs/custom-properties#get-a-custom-property-for-an-organization",
"parameters": [
{ "alias": null, "deprecated": null, "in": "PATH", "name": "org" },
{
Expand Down Expand Up @@ -7631,11 +7643,17 @@
{
"method": "GET",
"url": "/orgs/{org}/properties/values",
"documentationUrl": "https://docs.github.com/rest/orgs/properties#list-custom-property-values-for-organization-repositories",
"documentationUrl": "https://docs.github.com/rest/orgs/custom-properties#list-custom-property-values-for-organization-repositories",
"parameters": [
{ "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" }
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "page" },
{
"alias": null,
"deprecated": null,
"in": "QUERY",
"name": "repository_query"
}
],
"renamed": null
},
Expand Down Expand Up @@ -7915,7 +7933,7 @@
{
"method": "DELETE",
"url": "/orgs/{org}/properties/schema/{custom_property_name}",
"documentationUrl": "https://docs.github.com/rest/orgs/properties#remove-a-custom-property-for-an-organization",
"documentationUrl": "https://docs.github.com/rest/orgs/custom-properties#remove-a-custom-property-for-an-organization",
"parameters": [
{ "alias": null, "deprecated": null, "in": "PATH", "name": "org" },
{
Expand Down Expand Up @@ -10808,6 +10826,18 @@
"deprecated": null,
"in": "BODY",
"name": "merge_commit_message"
},
{
"alias": null,
"deprecated": null,
"in": "BODY",
"name": "custom_properties"
},
{
"alias": null,
"deprecated": null,
"in": "BODY",
"name": "custom_properties.*"
}
],
"renamed": null
Expand Down Expand Up @@ -12214,7 +12244,7 @@
{
"method": "GET",
"url": "/repos/{owner}/{repo}/properties/values",
"documentationUrl": "https://docs.github.com/rest/repos/properties#get-all-custom-property-values-for-a-repository",
"documentationUrl": "https://docs.github.com/rest/repos/custom-properties#get-all-custom-property-values-for-a-repository",
"parameters": [
{ "alias": null, "deprecated": null, "in": "PATH", "name": "owner" },
{ "alias": null, "deprecated": null, "in": "PATH", "name": "repo" }
Expand Down Expand Up @@ -14601,7 +14631,8 @@
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "direction" },
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "per_page" },
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "before" },
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "after" }
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "after" },
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "validity" }
],
"renamed": null
},
Expand Down Expand Up @@ -14629,7 +14660,8 @@
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "page" },
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "per_page" },
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "before" },
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "after" }
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "after" },
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "validity" }
],
"renamed": null
},
Expand Down Expand Up @@ -14658,7 +14690,8 @@
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "page" },
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "per_page" },
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "before" },
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "after" }
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "after" },
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "validity" }
],
"renamed": null
},
Expand Down
16 changes: 8 additions & 8 deletions src/generated/Endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ export interface Endpoints {
"delete"
>;
/**
* @see https://docs.github.com/rest/orgs/properties#remove-a-custom-property-for-an-organization
* @see https://docs.github.com/rest/orgs/custom-properties#remove-a-custom-property-for-an-organization
*/
"DELETE /orgs/{org}/properties/schema/{custom_property_name}": Operation<
"/orgs/{org}/properties/schema/{custom_property_name}",
Expand Down Expand Up @@ -1806,21 +1806,21 @@ export interface Endpoints {
*/
"GET /orgs/{org}/projects": Operation<"/orgs/{org}/projects", "get">;
/**
* @see https://docs.github.com/rest/orgs/properties#get-all-custom-properties-for-an-organization
* @see https://docs.github.com/rest/orgs/custom-properties#get-all-custom-properties-for-an-organization
*/
"GET /orgs/{org}/properties/schema": Operation<
"/orgs/{org}/properties/schema",
"get"
>;
/**
* @see https://docs.github.com/rest/orgs/properties#get-a-custom-property-for-an-organization
* @see https://docs.github.com/rest/orgs/custom-properties#get-a-custom-property-for-an-organization
*/
"GET /orgs/{org}/properties/schema/{custom_property_name}": Operation<
"/orgs/{org}/properties/schema/{custom_property_name}",
"get"
>;
/**
* @see https://docs.github.com/rest/orgs/properties#list-custom-property-values-for-organization-repositories
* @see https://docs.github.com/rest/orgs/custom-properties#list-custom-property-values-for-organization-repositories
*/
"GET /orgs/{org}/properties/values": Operation<
"/orgs/{org}/properties/values",
Expand Down Expand Up @@ -3231,7 +3231,7 @@ export interface Endpoints {
"get"
>;
/**
* @see https://docs.github.com/rest/repos/properties#get-all-custom-property-values-for-a-repository
* @see https://docs.github.com/rest/repos/custom-properties#get-all-custom-property-values-for-a-repository
*/
"GET /repos/{owner}/{repo}/properties/values": Operation<
"/repos/{owner}/{repo}/properties/values",
Expand Down Expand Up @@ -4264,14 +4264,14 @@ export interface Endpoints {
"patch"
>;
/**
* @see https://docs.github.com/rest/orgs/properties#create-or-update-custom-properties-for-an-organization
* @see https://docs.github.com/rest/orgs/custom-properties#create-or-update-custom-properties-for-an-organization
*/
"PATCH /orgs/{org}/properties/schema": Operation<
"/orgs/{org}/properties/schema",
"patch"
>;
/**
* @see https://docs.github.com/rest/orgs/properties#create-or-update-custom-property-values-for-organization-repositories
* @see https://docs.github.com/rest/orgs/custom-properties#create-or-update-custom-property-values-for-organization-repositories
*/
"PATCH /orgs/{org}/properties/values": Operation<
"/orgs/{org}/properties/values",
Expand Down Expand Up @@ -5702,7 +5702,7 @@ export interface Endpoints {
"put"
>;
/**
* @see https://docs.github.com/rest/orgs/properties#create-or-update-a-custom-property-for-an-organization
* @see https://docs.github.com/rest/orgs/custom-properties#create-or-update-a-custom-property-for-an-organization
*/
"PUT /orgs/{org}/properties/schema/{custom_property_name}": Operation<
"/orgs/{org}/properties/schema/{custom_property_name}",
Expand Down

0 comments on commit ff98468

Please sign in to comment.