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 b3451de commit f11c732
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion src/generated/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,11 @@ const Endpoints: EndpointsDefaultsAndDecorations = {
"GET /repos/{owner}/{repo}/codespaces/devcontainers",
],
listForAuthenticatedUser: ["GET /user/codespaces"],
listInOrganization: ["GET /orgs/{org_id}/codespaces"],
listInOrganization: [
"GET /orgs/{org}/codespaces",
{},
{ renamedParameters: { org_id: "org" } },
],
listInRepositoryForAuthenticatedUser: [
"GET /repos/{owner}/{repo}/codespaces",
],
Expand Down
4 changes: 2 additions & 2 deletions src/generated/parameters-and-response-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1803,10 +1803,10 @@ export type RestEndpointMethodTypes = {
listInOrganization: {
parameters: RequestParameters &
Omit<
Endpoints["GET /orgs/{org_id}/codespaces"]["parameters"],
Endpoints["GET /orgs/{org}/codespaces"]["parameters"],
"baseUrl" | "headers" | "mediaType"
>;
response: Endpoints["GET /orgs/{org_id}/codespaces"]["response"];
response: Endpoints["GET /orgs/{org}/codespaces"]["response"];
};
listInRepositoryForAuthenticatedUser: {
parameters: RequestParameters &
Expand Down

0 comments on commit f11c732

Please sign in to comment.