- Notifications
You must be signed in to change notification settings - Fork2.7k
Commit7ccc6b6
Add pagination support to GraphQL-based tools (#683)
* initial pagination for `ListDiscussions`* redo category id var cast* add GraphQL pagination support for discussion comments and categories* remove pageinfo returns* fix out ref for linter* update docs* move to unified pagination for consensus on params* update docs* refactor pagination handling* update docs* linter fix* conv rest to gql params for safe lint* add nolint* add error handling for perPage value in ToGraphQLParams* refactor pagination error handling* unified params for rest andn graphql and rennamed to be uniform for golang* add 'after' for pagination* update docs* Update pkg/github/discussions.goCo-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>* Update pkg/github/discussions.goCo-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>* Update pkg/github/discussions_test.goCo-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>* update default page size const* reduce default pagination size from 100 to 30 in discussion tests* update pagination for reverse and total* update pagination to remove from discussions* updated README* improve the `ToGraphQLParams` function---------Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>1 parent7496452 commit7ccc6b6
File tree
12 files changed
+430
-201
lines changed- pkg/github
12 files changed
+430
-201
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
449 | 449 |
| |
450 | 450 |
| |
451 | 451 |
| |
| 452 | + | |
452 | 453 |
| |
453 | 454 |
| |
| 455 | + | |
454 | 456 |
| |
455 | 457 |
| |
456 | 458 |
| |
457 |
| - | |
458 |
| - | |
459 |
| - | |
460 |
| - | |
461 | 459 |
| |
462 | 460 |
| |
463 | 461 |
| |
464 | 462 |
| |
| 463 | + | |
465 | 464 |
| |
466 | 465 |
| |
| 466 | + | |
467 | 467 |
| |
468 | 468 |
| |
469 | 469 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
62 | 62 |
| |
63 | 63 |
| |
64 | 64 |
| |
65 |
| - | |
66 |
| - | |
| 65 | + | |
| 66 | + | |
67 | 67 |
| |
68 | 68 |
| |
69 | 69 |
| |
| |||
200 | 200 |
| |
201 | 201 |
| |
202 | 202 |
| |
203 |
| - | |
204 |
| - | |
| 203 | + | |
| 204 | + | |
205 | 205 |
| |
206 | 206 |
| |
207 | 207 |
| |
| |||
503 | 503 |
| |
504 | 504 |
| |
505 | 505 |
| |
506 |
| - | |
507 |
| - | |
| 506 | + | |
| 507 | + | |
508 | 508 |
| |
509 | 509 |
| |
510 | 510 |
| |
| |||
1025 | 1025 |
| |
1026 | 1026 |
| |
1027 | 1027 |
| |
1028 |
| - | |
1029 |
| - | |
| 1028 | + | |
| 1029 | + | |
1030 | 1030 |
| |
1031 | 1031 |
| |
1032 | 1032 |
| |
|
0 commit comments
Comments
(0)