Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add support for pagination in GET /orgs/{org_id}/codespaces #397

Merged
merged 4 commits into from
Jun 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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