Skip to content

Commit efc5778

Browse files
committed
Fix perPage parameter name in actions_list schema
The schema declared per_page while the handler reads pagination through OptionalPaginationParams, which looks for perPage, so the value was always dropped and perPage fell back to the default 30.
1 parent 64a49f3 commit efc5778

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ The following sets of tools are available:
642642
- `method`: The action to perform (string, required)
643643
- `owner`: Repository owner (string, required)
644644
- `page`: Page number for pagination (default: 1) (number, optional)
645-
- `per_page`: Results per page for pagination (default: 30, max: 100) (number, optional)
645+
- `perPage`: Results per page for pagination (default: 30, max: 100) (number, optional)
646646
- `repo`: Repository name (string, required)
647647
- `resource_id`: The unique identifier of the resource. This will vary based on the "method" provided, so ensure you provide the correct ID:
648648
- Do not provide any resource ID for 'list_workflows' method.

pkg/github/__toolsnaps__/actions_list.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"minimum": 1,
2727
"type": "number"
2828
},
29-
"per_page": {
29+
"perPage": {
3030
"description": "Results per page for pagination (default: 30, max: 100)",
3131
"maximum": 100,
3232
"minimum": 1,

pkg/github/actions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ Use this tool to list workflows in a repository, or list workflow runs, jobs, an
313313
Description: "Page number for pagination (default: 1)",
314314
Minimum: jsonschema.Ptr(1.0),
315315
},
316-
"per_page": {
316+
"perPage": {
317317
Type: "number",
318318
Description: "Results per page for pagination (default: 30, max: 100)",
319319
Minimum: jsonschema.Ptr(1.0),

0 commit comments

Comments
 (0)