Skip to content

Commit

Permalink
feat: add support for pagination in GET /orgs/{org_id}/codespaces (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
octokitbot authored Jun 28, 2022
1 parent b3fb11e commit 3e38fbf
Show file tree
Hide file tree
Showing 4 changed files with 256 additions and 22 deletions.
30 changes: 15 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
],
"license": "MIT",
"dependencies": {
"@octokit/types": "^6.37.0"
"@octokit/types": "^6.38.1"
},
"peerDependencies": {
"@octokit/core": ">=2"
Expand Down
235 changes: 229 additions & 6 deletions scripts/update-endpoints/generated/endpoints.json

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions src/generated/paginating-endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,16 @@ export interface PaginatingEndpoints {
};
};

/**
* @see https://docs.github.com/rest/reference/codespaces#list-in-organization
*/
"GET /orgs/{org_id}/codespaces": {
parameters: Endpoints["GET /orgs/{org_id}/codespaces"]["parameters"];
response: Endpoints["GET /orgs/{org_id}/codespaces"]["response"] & {
data: Endpoints["GET /orgs/{org_id}/codespaces"]["response"]["data"]["codespaces"];
};
};

/**
* @see https://docs.github.com/rest/reference/actions#list-selected-repositories-enabled-for-github-actions-in-an-organization
*/
Expand Down Expand Up @@ -1892,6 +1902,7 @@ export const paginatingEndpoints: (keyof PaginatingEndpoints)[] = [
"GET /notifications",
"GET /organizations",
"GET /organizations/{organization_id}/custom_roles",
"GET /orgs/{org_id}/codespaces",
"GET /orgs/{org}/actions/permissions/repositories",
"GET /orgs/{org}/actions/runner-groups",
"GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories",
Expand Down

0 comments on commit 3e38fbf

Please sign in to comment.