-
Notifications
You must be signed in to change notification settings - Fork 2.9k
projects: update tools to support pagination, improve prompts #1352
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR enhances the GitHub Projects V2 integration by adding advanced pagination support, improving response structures, refining query capabilities, and updating test coverage to match the new implementation. The changes focus on providing more robust pagination handling and clearer field filtering capabilities.
Key changes:
- Added cursor-based pagination support (
after,beforeparameters) withpageInfoin responses - Changed response format to include
pageInfometadata alongside data arrays - Updated field filtering to exclude special/system data types from responses
- Refactored field ID handling from array to comma-separated string format
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| pkg/github/projects.go | Core implementation: adds pagination options extraction, pageInfo builder, filterSpecialTypes function, updated response structures with pageInfo, and comprehensive query documentation |
| pkg/github/projects_test.go | Test updates: modified mock data to include required fields (node_id), updated assertions to validate new response structure with pageInfo, simplified field query parameter handling |
| pkg/github/toolsnaps/*.snap | Snapshot updates: documents new pagination parameters and updated descriptions for tool schemas |
| README.md | Documentation updates: adds pagination parameters and extensive query syntax documentation for projects tools |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: JoannaaKL <joannaakl@github.com>
This PR updates the tool/argument descriptions for projects related tools to better enable tool selection and project item filter.
Additionally, this PR introduces pagination for
list_*operations to enable effective querying.