Skip to content

Commit da66054

Browse files
committed
pagination, serialization updates
1 parent 7581440 commit da66054

File tree

7 files changed

+263
-293
lines changed

7 files changed

+263
-293
lines changed

README.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -844,24 +844,30 @@ Options are:
844844
- `project_number`: The project's number. (number, required)
845845

846846
- **list_project_fields** - List project fields
847+
- `after`: Forward pagination cursor from previous pageInfo.nextCursor. (string, optional)
848+
- `before`: Backward pagination cursor from previous pageInfo.prevCursor (rare). (string, optional)
847849
- `owner`: If owner_type == user it is the handle for the GitHub user account. If owner_type == org it is the name of the organization. The name is not case sensitive. (string, required)
848850
- `owner_type`: Owner type (string, required)
849-
- `per_page`: Number of results per page (max 100, default: 30) (number, optional)
851+
- `per_page`: Results per page (max 50) (number, optional)
850852
- `project_number`: The project's number. (number, required)
851853

852854
- **list_project_items** - List project items
853-
- `fields`: Specific list of field IDs to include in the response (e.g. ["102589", "985201", "169875"]). If not provided, only the title field is included. (string[], optional)
855+
- `after`: Forward pagination cursor from previous pageInfo.nextCursor. (string, optional)
856+
- `before`: Backward pagination cursor from previous pageInfo.prevCursor (rare). (string, optional)
857+
- `fields`: Field IDs to include (e.g. ["102589", "985201"]). CRITICAL: Always provide to get field values. Without this, only titles returned. (string[], optional)
854858
- `owner`: If owner_type == user it is the handle for the GitHub user account. If owner_type == org it is the name of the organization. The name is not case sensitive. (string, required)
855859
- `owner_type`: Owner type (string, required)
856-
- `per_page`: Number of results per page (max 100, default: 30) (number, optional)
860+
- `per_page`: Results per page (max 50) (number, optional)
857861
- `project_number`: The project's number. (number, required)
858-
- `query`: Search query to filter items (string, optional)
862+
- `query`: Query string for advanced filtering of project items using GitHub's project filtering syntax. (string, optional)
859863

860864
- **list_projects** - List projects
865+
- `after`: Forward pagination cursor from previous pageInfo.nextCursor. (string, optional)
866+
- `before`: Backward pagination cursor from previous pageInfo.prevCursor (rare). (string, optional)
861867
- `owner`: If owner_type == user it is the handle for the GitHub user account. If owner_type == org it is the name of the organization. The name is not case sensitive. (string, required)
862868
- `owner_type`: Owner type (string, required)
863-
- `per_page`: Number of results per page (max 100, default: 30) (number, optional)
864-
- `query`: Filter projects by a search query (matches title and description) (string, optional)
869+
- `per_page`: Results per page (max 50) (number, optional)
870+
- `query`: Filter projects by title text and open/closed state; permitted qualifiers: is:open, is:closed; examples: "roadmap is:open", "is:open feature planning". (string, optional)
865871

866872
- **update_project_item** - Update project item
867873
- `item_id`: The unique identifier of the project item. This is not the issue or pull request ID. (number, required)

pkg/github/__toolsnaps__/list_project_fields.snap

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@
66
"description": "List Project fields for a user or org",
77
"inputSchema": {
88
"properties": {
9+
"after": {
10+
"description": "Forward pagination cursor from previous pageInfo.nextCursor.",
11+
"type": "string"
12+
},
13+
"before": {
14+
"description": "Backward pagination cursor from previous pageInfo.prevCursor (rare).",
15+
"type": "string"
16+
},
917
"owner": {
1018
"description": "If owner_type == user it is the handle for the GitHub user account. If owner_type == org it is the name of the organization. The name is not case sensitive.",
1119
"type": "string"
@@ -19,7 +27,7 @@
1927
"type": "string"
2028
},
2129
"per_page": {
22-
"description": "Number of results per page (max 100, default: 30)",
30+
"description": "Results per page (max 50)",
2331
"type": "number"
2432
},
2533
"project_number": {

pkg/github/__toolsnaps__/list_project_items.snap

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,19 @@
33
"title": "List project items",
44
"readOnlyHint": true
55
},
6-
"description": "List Project items for a user or org",
6+
"description": "Search project items with advanced filtering",
77
"inputSchema": {
88
"properties": {
9+
"after": {
10+
"description": "Forward pagination cursor from previous pageInfo.nextCursor.",
11+
"type": "string"
12+
},
13+
"before": {
14+
"description": "Backward pagination cursor from previous pageInfo.prevCursor (rare).",
15+
"type": "string"
16+
},
917
"fields": {
10-
"description": "Specific list of field IDs to include in the response (e.g. [\"102589\", \"985201\", \"169875\"]). If not provided, only the title field is included.",
18+
"description": "Field IDs to include (e.g. [\"102589\", \"985201\"]). CRITICAL: Always provide to get field values. Without this, only titles returned.",
1119
"items": {
1220
"type": "string"
1321
},
@@ -26,15 +34,15 @@
2634
"type": "string"
2735
},
2836
"per_page": {
29-
"description": "Number of results per page (max 100, default: 30)",
37+
"description": "Results per page (max 50)",
3038
"type": "number"
3139
},
3240
"project_number": {
3341
"description": "The project's number.",
3442
"type": "number"
3543
},
3644
"query": {
37-
"description": "Search query to filter items",
45+
"description": "Query string for advanced filtering of project items using GitHub's project filtering syntax.",
3846
"type": "string"
3947
}
4048
},

pkg/github/__toolsnaps__/list_projects.snap

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,17 @@
33
"title": "List projects",
44
"readOnlyHint": true
55
},
6-
"description": "List Projects for a user or org",
6+
"description": "List Projects for a user or organization",
77
"inputSchema": {
88
"properties": {
9+
"after": {
10+
"description": "Forward pagination cursor from previous pageInfo.nextCursor.",
11+
"type": "string"
12+
},
13+
"before": {
14+
"description": "Backward pagination cursor from previous pageInfo.prevCursor (rare).",
15+
"type": "string"
16+
},
917
"owner": {
1018
"description": "If owner_type == user it is the handle for the GitHub user account. If owner_type == org it is the name of the organization. The name is not case sensitive.",
1119
"type": "string"
@@ -19,11 +27,11 @@
1927
"type": "string"
2028
},
2129
"per_page": {
22-
"description": "Number of results per page (max 100, default: 30)",
30+
"description": "Results per page (max 50)",
2331
"type": "number"
2432
},
2533
"query": {
26-
"description": "Filter projects by a search query (matches title and description)",
34+
"description": "Filter projects by title text and open/closed state; permitted qualifiers: is:open, is:closed; examples: \"roadmap is:open\", \"is:open feature planning\".",
2735
"type": "string"
2836
}
2937
},

0 commit comments

Comments
 (0)