Skip to content

Commit

Permalink
fix: gracefully rename org_id path parameter for `GET /orgs/{org_id…
Browse files Browse the repository at this point in the history
…}/codespaces` to `org`
  • Loading branch information
timrogers committed Jul 2, 2022
1 parent e937ce6 commit 2d43e98
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
5 changes: 3 additions & 2 deletions scripts/update-endpoints/generated/endpoints.json
Expand Up @@ -4330,12 +4330,13 @@
},
{
"method": "GET",
"url": "/orgs/{org_id}/codespaces",
"url": "/orgs/{org}/codespaces",
"documentationUrl": "https://docs.github.com/rest/reference/codespaces#list-in-organization",
"parameters": [
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "per_page" },
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "page" },
{ "alias": null, "deprecated": null, "in": "PATH", "name": "org_id" }
{ "alias": null, "deprecated": null, "in": "PATH", "name": "org" },
{ "alias": "org", "deprecated": true, "in": "PATH", "name": "org_id" }
],
"previews": [],
"renamed": null
Expand Down
10 changes: 6 additions & 4 deletions src/generated/Endpoints.ts
Expand Up @@ -1469,11 +1469,9 @@ export interface Endpoints {
>;
/**
* @see https://docs.github.com/rest/reference/codespaces#list-in-organization
* @deprecated "org_id" is now "org"
*/
"GET /orgs/{org_id}/codespaces": Operation<
"/orgs/{org_id}/codespaces",
"get"
>;
"GET /orgs/{org_id}/codespaces": Operation<"/orgs/{org}/codespaces", "get">;
/**
* @see https://docs.github.com/rest/reference/orgs#get-an-organization
*/
Expand Down Expand Up @@ -1633,6 +1631,10 @@ export interface Endpoints {
"/orgs/{org}/code-scanning/alerts",
"get"
>;
/**
* @see https://docs.github.com/rest/reference/codespaces#list-in-organization
*/
"GET /orgs/{org}/codespaces": Operation<"/orgs/{org}/codespaces", "get">;
/**
* @see https://docs.github.com/rest/reference/orgs#list-saml-sso-authorizations-for-an-organization
*/
Expand Down

0 comments on commit 2d43e98

Please sign in to comment.