Skip to content

Commit

Permalink
feat: add support for new permissions.organization_custom_roles req…
Browse files Browse the repository at this point in the history
…uest body and response attributes across many APIs (plus description tweaks) (#225)

WIP
  • Loading branch information
octokitbot committed Aug 18, 2022
1 parent c4ddcb2 commit 79f4aba
Show file tree
Hide file tree
Showing 21 changed files with 134 additions and 52 deletions.
54 changes: 30 additions & 24 deletions cache/api.github.com.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"openapi": "3.0.3",
"info": {
"version": "7.2.0",
"version": "7.3.0",
"title": "GitHub's official OpenAPI spec + Octokit extension",
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
"license": {
Expand Down Expand Up @@ -59823,6 +59823,14 @@
"write"
]
},
"organization_custom_roles": {
"type": "string",
"description": "The level of permission to grant the access token for custom roles management.",
"enum": [
"read",
"write"
]
},
"deployments": {
"type": "string",
"description": "The level of permission to grant the access token for deployments and deployment statuses.",
Expand Down Expand Up @@ -76340,8 +76348,6 @@
}
},
"dependency": {
"title": "Dependency",
"description": "A single package dependency.",
"type": "object",
"properties": {
"package_url": {
Expand Down Expand Up @@ -76383,8 +76389,6 @@
"additionalProperties": false
},
"manifest": {
"title": "manifest",
"description": "A collection of related dependencies declared in a file or representing a logical group of dependencies.",
"type": "object",
"properties": {
"name": {
Expand All @@ -76407,6 +76411,8 @@
"$ref": "#/components/schemas/metadata"
},
"resolved": {
"type": "object",
"description": "A collection of resolved package dependencies.",
"additionalProperties": {
"$ref": "#/components/schemas/dependency"
}
Expand Down Expand Up @@ -76495,7 +76501,7 @@
},
"manifests": {
"type": "object",
"description": "A collection of package manifests",
"description": "A collection of package manifests, which are a collection of related dependencies declared in a file or representing a logical group of dependencies.",
"additionalProperties": {
"$ref": "#/components/schemas/manifest"
}
Expand Down Expand Up @@ -85858,7 +85864,7 @@
"node_id"
]
},
"merge-group-checks-requested": {
"webhook-merge-group-checks-requested": {
"type": "object",
"properties": {
"action": {
Expand All @@ -85867,33 +85873,33 @@
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple"
},
"repository": {
"$ref": "#/components/schemas/repository"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"merge_group": {
"type": "object",
"required": [
"head_sha",
"head_ref",
"base_ref"
],
"properties": {
"head_sha": {
"base_ref": {
"type": "string"
},
"head_ref": {
"type": "string"
},
"base_ref": {
"head_sha": {
"type": "string"
}
}
},
"required": [
"head_sha",
"head_ref",
"base_ref"
]
},
"organization": {
"$ref": "#/components/schemas/organization-simple"
},
"repository": {
"$ref": "#/components/schemas/repository"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
}
},
"required": [
Expand Down
10 changes: 9 additions & 1 deletion cache/ghes-3.2.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"openapi": "3.0.3",
"info": {
"version": "7.2.0",
"version": "7.3.0",
"title": "GitHub's official OpenAPI spec + Octokit extension",
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
"license": {
Expand Down Expand Up @@ -51313,6 +51313,14 @@
"write"
]
},
"organization_custom_roles": {
"type": "string",
"description": "The level of permission to grant the access token for custom roles management.",
"enum": [
"read",
"write"
]
},
"deployments": {
"type": "string",
"description": "The level of permission to grant the access token for deployments and deployment statuses.",
Expand Down
10 changes: 9 additions & 1 deletion cache/ghes-3.3.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"openapi": "3.0.3",
"info": {
"version": "7.2.0",
"version": "7.3.0",
"title": "GitHub's official OpenAPI spec + Octokit extension",
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
"license": {
Expand Down Expand Up @@ -51378,6 +51378,14 @@
"write"
]
},
"organization_custom_roles": {
"type": "string",
"description": "The level of permission to grant the access token for custom roles management.",
"enum": [
"read",
"write"
]
},
"deployments": {
"type": "string",
"description": "The level of permission to grant the access token for deployments and deployment statuses.",
Expand Down
10 changes: 9 additions & 1 deletion cache/ghes-3.4.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"openapi": "3.0.3",
"info": {
"version": "7.2.0",
"version": "7.3.0",
"title": "GitHub's official OpenAPI spec + Octokit extension",
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
"license": {
Expand Down Expand Up @@ -53167,6 +53167,14 @@
"write"
]
},
"organization_custom_roles": {
"type": "string",
"description": "The level of permission to grant the access token for custom roles management.",
"enum": [
"read",
"write"
]
},
"deployments": {
"type": "string",
"description": "The level of permission to grant the access token for deployments and deployment statuses.",
Expand Down
10 changes: 9 additions & 1 deletion cache/ghes-3.5.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"openapi": "3.0.3",
"info": {
"version": "7.2.0",
"version": "7.3.0",
"title": "GitHub's official OpenAPI spec + Octokit extension",
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
"license": {
Expand Down Expand Up @@ -54324,6 +54324,14 @@
"write"
]
},
"organization_custom_roles": {
"type": "string",
"description": "The level of permission to grant the access token for custom roles management.",
"enum": [
"read",
"write"
]
},
"deployments": {
"type": "string",
"description": "The level of permission to grant the access token for deployments and deployment statuses.",
Expand Down
10 changes: 9 additions & 1 deletion cache/ghes-3.6.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"openapi": "3.0.3",
"info": {
"version": "7.2.0",
"version": "7.3.0",
"title": "GitHub's official OpenAPI spec + Octokit extension",
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
"license": {
Expand Down Expand Up @@ -58356,6 +58356,14 @@
"write"
]
},
"organization_custom_roles": {
"type": "string",
"description": "The level of permission to grant the access token for custom roles management.",
"enum": [
"read",
"write"
]
},
"deployments": {
"type": "string",
"description": "The level of permission to grant the access token for deployments and deployment statuses.",
Expand Down
10 changes: 9 additions & 1 deletion cache/github.ae.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"openapi": "3.0.3",
"info": {
"version": "7.2.0",
"version": "7.3.0",
"title": "GitHub's official OpenAPI spec + Octokit extension",
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
"license": {
Expand Down Expand Up @@ -51961,6 +51961,14 @@
"write"
]
},
"organization_custom_roles": {
"type": "string",
"description": "The level of permission to grant the access token for custom roles management.",
"enum": [
"read",
"write"
]
},
"deployments": {
"type": "string",
"description": "The level of permission to grant the access token for deployments and deployment statuses.",
Expand Down
2 changes: 1 addition & 1 deletion packages/openapi-types-ghes-3.2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"author": "Gregor Martynus (https://twitter.com/gr2m)",
"license": "MIT",
"octokit": {
"openapi-version": "7.2.0"
"openapi-version": "7.3.0"
}
}
5 changes: 5 additions & 0 deletions packages/openapi-types-ghes-3.2/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5208,6 +5208,11 @@ export interface components {
* @enum {string}
*/
contents?: "read" | "write";
/**
* @description The level of permission to grant the access token for custom roles management.
* @enum {string}
*/
organization_custom_roles?: "read" | "write";
/**
* @description The level of permission to grant the access token for deployments and deployment statuses.
* @enum {string}
Expand Down
2 changes: 1 addition & 1 deletion packages/openapi-types-ghes-3.3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"author": "Gregor Martynus (https://twitter.com/gr2m)",
"license": "MIT",
"octokit": {
"openapi-version": "7.2.0"
"openapi-version": "7.3.0"
}
}
5 changes: 5 additions & 0 deletions packages/openapi-types-ghes-3.3/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5354,6 +5354,11 @@ export interface components {
* @enum {string}
*/
contents?: "read" | "write";
/**
* @description The level of permission to grant the access token for custom roles management.
* @enum {string}
*/
organization_custom_roles?: "read" | "write";
/**
* @description The level of permission to grant the access token for deployments and deployment statuses.
* @enum {string}
Expand Down
2 changes: 1 addition & 1 deletion packages/openapi-types-ghes-3.4/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"author": "Gregor Martynus (https://twitter.com/gr2m)",
"license": "MIT",
"octokit": {
"openapi-version": "7.2.0"
"openapi-version": "7.3.0"
}
}
5 changes: 5 additions & 0 deletions packages/openapi-types-ghes-3.4/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5665,6 +5665,11 @@ export interface components {
* @enum {string}
*/
contents?: "read" | "write";
/**
* @description The level of permission to grant the access token for custom roles management.
* @enum {string}
*/
organization_custom_roles?: "read" | "write";
/**
* @description The level of permission to grant the access token for deployments and deployment statuses.
* @enum {string}
Expand Down
2 changes: 1 addition & 1 deletion packages/openapi-types-ghes-3.5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"author": "Gregor Martynus (https://twitter.com/gr2m)",
"license": "MIT",
"octokit": {
"openapi-version": "7.2.0"
"openapi-version": "7.3.0"
}
}
5 changes: 5 additions & 0 deletions packages/openapi-types-ghes-3.5/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5769,6 +5769,11 @@ export interface components {
* @enum {string}
*/
contents?: "read" | "write";
/**
* @description The level of permission to grant the access token for custom roles management.
* @enum {string}
*/
organization_custom_roles?: "read" | "write";
/**
* @description The level of permission to grant the access token for deployments and deployment statuses.
* @enum {string}
Expand Down
2 changes: 1 addition & 1 deletion packages/openapi-types-ghes-3.6/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"author": "Gregor Martynus (https://twitter.com/gr2m)",
"license": "MIT",
"octokit": {
"openapi-version": "7.2.0"
"openapi-version": "7.3.0"
}
}
5 changes: 5 additions & 0 deletions packages/openapi-types-ghes-3.6/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6390,6 +6390,11 @@ export interface components {
* @enum {string}
*/
contents?: "read" | "write";
/**
* @description The level of permission to grant the access token for custom roles management.
* @enum {string}
*/
organization_custom_roles?: "read" | "write";
/**
* @description The level of permission to grant the access token for deployments and deployment statuses.
* @enum {string}
Expand Down
2 changes: 1 addition & 1 deletion packages/openapi-types-github.ae/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"author": "Gregor Martynus (https://twitter.com/gr2m)",
"license": "MIT",
"octokit": {
"openapi-version": "7.2.0"
"openapi-version": "7.3.0"
}
}
5 changes: 5 additions & 0 deletions packages/openapi-types-github.ae/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5492,6 +5492,11 @@ export interface components {
* @enum {string}
*/
contents?: "read" | "write";
/**
* @description The level of permission to grant the access token for custom roles management.
* @enum {string}
*/
organization_custom_roles?: "read" | "write";
/**
* @description The level of permission to grant the access token for deployments and deployment statuses.
* @enum {string}
Expand Down
2 changes: 1 addition & 1 deletion packages/openapi-types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"author": "Gregor Martynus (https://twitter.com/gr2m)",
"license": "MIT",
"octokit": {
"openapi-version": "7.2.0"
"openapi-version": "7.3.0"
}
}
Loading

0 comments on commit 79f4aba

Please sign in to comment.