- Notifications
You must be signed in to change notification settings - Fork3k
projects: serialization & pagination updates#1390
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 ourterms of service andprivacy 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
e65f52e toda66054CompareThere 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 pull request updates the GitHub Projects API integration to enhance pagination support, improve filtering capabilities, and standardize response formats. The changes involve restructuring API responses to include pagination metadata alongside results, refining parameter descriptions, and removing an unused prompt component.
Key changes:
- Added cursor-based pagination with
afterandbeforeparameters, and wrapped responses in objects containing both data andpageInfo - Refined parameter descriptions and constraints (e.g., max 50 items per page) for better API clarity
- Removed the
ManageProjectItemsPromptfunction and its registration from the toolset
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| pkg/github/tools.go | Removed registration of ManageProjectItemsPrompt from project toolset |
| pkg/github/projects_test.go | Updated tests to handle new response structure with pageInfo, fixed field names, and refined error message assertions |
| pkg/github/projects.go | Added pagination helpers, updated endpoints to return structured responses with pageInfo, removed ManageProjectItemsPrompt function, added new types for fields and pagination |
| pkg/github/toolsnaps/*.snap | Updated tool schemas to include new pagination parameters and refined descriptions |
| README.md | Updated documentation to reflect new pagination parameters and improved descriptions |
💡Add Copilot custom instructions for smarter, more guided reviews.Learn how to get started.
This pull request updates the GitHub Projects API documentation, tool schemas, and unit tests to improve support for pagination, advanced filtering, and response formatting. The changes ensure more accurate descriptions, tighter parameter validation, and consistent output structures for project-related endpoints.