Skip to content

Migrate list_issues tool from REST to GraphQL API #833

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

Merged
merged 14 commits into from
Aug 8, 2025
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
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -539,15 +539,15 @@ The following sets of tools are available (all are on by default):
- `repo`: Repository name (string, required)

- **list_issues** - List issues
- `direction`: Sort direction (string, optional)
- `after`: Cursor for pagination. Use the endCursor from the previous page's PageInfo for GraphQL APIs. (string, optional)
- `direction`: Order direction. If provided, the 'orderBy' also needs to be provided. (string, optional)
- `labels`: Filter by labels (string[], optional)
- `orderBy`: Order issues by field. If provided, the 'direction' also needs to be provided. (string, optional)
- `owner`: Repository owner (string, required)
- `page`: Page number for pagination (min 1) (number, optional)
- `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
- `repo`: Repository name (string, required)
- `since`: Filter by date (ISO 8601 timestamp) (string, optional)
- `sort`: Sort order (string, optional)
- `state`: Filter by state (string, optional)
- `state`: Filter by state, by default both open and closed issues are returned when not provided (string, optional)

- **list_sub_issues** - List sub-issues
- `issue_number`: Issue number (number, required)
Expand Down
41 changes: 19 additions & 22 deletions pkg/github/__toolsnaps__/list_issues.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,18 @@
"title": "List issues",
"readOnlyHint": true
},
"description": "List issues in a GitHub repository.",
"description": "List issues in a GitHub repository. For pagination, use the 'endCursor' from the previous response's 'pageInfo' in the 'after' parameter.",
"inputSchema": {
"properties": {
"after": {
"description": "Cursor for pagination. Use the endCursor from the previous page's PageInfo for GraphQL APIs.",
"type": "string"
},
"direction": {
"description": "Sort direction",
"description": "Order direction. If provided, the 'orderBy' also needs to be provided.",
"enum": [
"asc",
"desc"
"ASC",
"DESC"
],
"type": "string"
},
Expand All @@ -21,15 +25,18 @@
},
"type": "array"
},
"orderBy": {
"description": "Order issues by field. If provided, the 'direction' also needs to be provided.",
"enum": [
"CREATED_AT",
"UPDATED_AT"
],
"type": "string"
},
"owner": {
"description": "Repository owner",
"type": "string"
},
"page": {
"description": "Page number for pagination (min 1)",
"minimum": 1,
"type": "number"
},
"perPage": {
"description": "Results per page for pagination (min 1, max 100)",
"maximum": 100,
Expand All @@ -44,21 +51,11 @@
"description": "Filter by date (ISO 8601 timestamp)",
"type": "string"
},
"sort": {
"description": "Sort order",
"enum": [
"created",
"updated",
"comments"
],
"type": "string"
},
"state": {
"description": "Filter by state",
"description": "Filter by state, by default both open and closed issues are returned when not provided",
"enum": [
"open",
"closed",
"all"
"OPEN",
"CLOSED"
],
"type": "string"
}
Expand Down
Loading
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy