Skip to content

Conversation

@tmelliottjr
Copy link
Contributor

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.

@tmelliottjr tmelliottjr requested a review from a team as a code owner November 11, 2025 15:20
Copilot AI review requested due to automatic review settings November 11, 2025 15:20
@tmelliottjr tmelliottjr force-pushed the tmelliottjr/update-projects-tools branch from e65f52e to da66054 Compare November 11, 2025 15:21
Copilot finished reviewing on behalf of tmelliottjr November 11, 2025 15:22
Copy link
Contributor

Copilot AI left a 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 after and before parameters, and wrapped responses in objects containing both data and pageInfo
  • Refined parameter descriptions and constraints (e.g., max 50 items per page) for better API clarity
  • Removed the ManageProjectItemsPrompt function 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
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 kerobbi merged commit e903346 into main Nov 14, 2025
16 checks passed
@kerobbi kerobbi deleted the tmelliottjr/update-projects-tools branch November 14, 2025 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants