Merged
Conversation
added 2 commits
October 22, 2025 16:13
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds support for custom field selection in GitHub Projects V2 items, addressing issue #44. Users can now specify which field IDs to include when listing or retrieving project items, with only the title field returned by default if no fields are specified.
Key Changes:
- Added optional
fieldsparameter tolist_project_itemsandget_project_itemtools for selecting specific custom fields - Introduced
ManageProjectItemsPromptto guide users through project workflows including field discovery and updates - Refactored type system to distinguish between field definitions (
projectV2Field) and field values on items (projectV2ItemFieldValue)
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| pkg/github/tools.go | Registered the new ManageProjectItemsPrompt with the projects toolset |
| pkg/github/projects_test.go | Added test coverage for field parameter validation in list and get operations |
| pkg/github/projects.go | Implemented field selection logic, refactored options types, and added the ManageProjectItemsPrompt |
| pkg/github/minimal_types.go | Updated MinimalProjectItem to use projectV2ItemFieldValue type for fields |
| pkg/github/toolsnaps/list_project_items.snap | Updated schema snapshot to include fields parameter |
| pkg/github/toolsnaps/get_project_item.snap | Updated schema snapshot to include fields parameter |
| README.md | Documented the new fields parameter for both tools |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
JoannaaKL
reviewed
Oct 23, 2025
JoannaaKL
approved these changes
Oct 23, 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.
Towards: #44
This PR adds an optional
fieldsparameter tolist_project_itemsandget_project_itemtools, allowing users to specify which custom field IDs to include in responses. Previously, only the title field was returned by default.The implementation includes a new
ManageProjectItemsPromptthat provides step-by-step guidance for working with GitHub Projects, including discovering projects, viewing available fields, querying items with specific field values, and updating field values on project items.The type system is updated to distinguish between
projectV2Field(field definitions) andprojectV2FieldValues(field values on items), ensuring proper serialization of field data. Comprehensive test coverage validates field selection functionality across both organization and user-owned projects.