Skip to content

Commit

Permalink
feat: add pagination support for new SSH signing keys APIs (`GET /use…
Browse files Browse the repository at this point in the history
…r/ssh_signing_keys`, `GET /users/{username}/ssh_signing_keys`) (#440)

* WIP octokit/openapi updated

* WIP octokit/openapi updated
  • Loading branch information
octokitbot committed Aug 31, 2022
1 parent 184508b commit aa8dd33
Show file tree
Hide file tree
Showing 4 changed files with 200 additions and 33 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
Expand Up @@ -25,7 +25,7 @@
],
"license": "MIT",
"dependencies": {
"@octokit/types": "^7.1.1"
"@octokit/types": "^7.2.0"
},
"peerDependencies": {
"@octokit/core": ">=4"
Expand Down
183 changes: 166 additions & 17 deletions scripts/update-endpoints/generated/endpoints.json

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions src/generated/paginating-endpoints.ts
Expand Up @@ -1647,6 +1647,14 @@ export interface PaginatingEndpoints {
response: Endpoints["GET /user/repository_invitations"]["response"];
};

/**
* @see https://docs.github.com/rest/reference/users#list-public-ssh-signing-keys-for-the-authenticated-user
*/
"GET /user/ssh_signing_keys": {
parameters: Endpoints["GET /user/ssh_signing_keys"]["parameters"];
response: Endpoints["GET /user/ssh_signing_keys"]["response"];
};

/**
* @see https://docs.github.com/rest/reference/activity#list-repositories-starred-by-the-authenticated-user
*/
Expand Down Expand Up @@ -1791,6 +1799,14 @@ export interface PaginatingEndpoints {
response: Endpoints["GET /users/{username}/repos"]["response"];
};

/**
* @see https://docs.github.com/rest/reference/users#list-ssh-signing-keys-for-a-user
*/
"GET /users/{username}/ssh_signing_keys": {
parameters: Endpoints["GET /users/{username}/ssh_signing_keys"]["parameters"];
response: Endpoints["GET /users/{username}/ssh_signing_keys"]["response"];
};

/**
* @see https://docs.github.com/rest/reference/activity#list-repositories-starred-by-a-user
*/
Expand Down Expand Up @@ -2001,6 +2017,7 @@ export const paginatingEndpoints: (keyof PaginatingEndpoints)[] = [
"GET /user/public_emails",
"GET /user/repos",
"GET /user/repository_invitations",
"GET /user/ssh_signing_keys",
"GET /user/starred",
"GET /user/subscriptions",
"GET /user/teams",
Expand All @@ -2019,6 +2036,7 @@ export const paginatingEndpoints: (keyof PaginatingEndpoints)[] = [
"GET /users/{username}/received_events",
"GET /users/{username}/received_events/public",
"GET /users/{username}/repos",
"GET /users/{username}/ssh_signing_keys",
"GET /users/{username}/starred",
"GET /users/{username}/subscriptions",
];

0 comments on commit aa8dd33

Please sign in to comment.