projects: serialization & pagination updates#1390
Merged
Conversation
e65f52e to
da66054
Compare
Contributor
There was a problem hiding this comment.
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.
JoannaaKL
previously approved these changes
Nov 11, 2025
* add server instructions * Update instructions.go Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
kerobbi
approved these changes
Nov 14, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.