Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

projects: add item field support#1282

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

Merged
JoannaaKL merged 3 commits intomainfromtmelliottjr/add-project-item-fields-support
Oct 23, 2025

Conversation

@tmelliottjr
Copy link
Contributor

@tmelliottjrtmelliottjr commentedOct 22, 2025
edited
Loading

Towards:#44

This PR adds an optionalfields parameter tolist_project_items andget_project_item tools, 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 newManageProjectItemsPrompt that 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 betweenprojectV2Field (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.

@tmelliottjrtmelliottjr marked this pull request as ready for reviewOctober 22, 2025 20:21
@tmelliottjrtmelliottjr requested a review froma team as acode ownerOctober 22, 2025 20:21
CopilotAI review requested due to automatic review settingsOctober 22, 2025 20:21
Copy link
Contributor

CopilotAI 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 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 optionalfields parameter tolist_project_items andget_project_item tools for selecting specific custom fields
  • IntroducedManageProjectItemsPrompt to 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
FileDescription
pkg/github/tools.goRegistered the new ManageProjectItemsPrompt with the projects toolset
pkg/github/projects_test.goAdded test coverage for field parameter validation in list and get operations
pkg/github/projects.goImplemented field selection logic, refactored options types, and added the ManageProjectItemsPrompt
pkg/github/minimal_types.goUpdated MinimalProjectItem to use projectV2ItemFieldValue type for fields
pkg/github/toolsnaps/list_project_items.snapUpdated schema snapshot to include fields parameter
pkg/github/toolsnaps/get_project_item.snapUpdated schema snapshot to include fields parameter
README.mdDocumented the new fields parameter for both tools

Tip: Customize your code reviews with copilot-instructions.md.Create the file orlearn how to get started.

@JoannaaKLJoannaaKL merged commitaf2e93b intomainOct 23, 2025
18 checks passed
@JoannaaKLJoannaaKL deleted the tmelliottjr/add-project-item-fields-support branchOctober 23, 2025 13:32
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@stephenotalorastephenotalorastephenotalora left review comments

Copilot code reviewCopilotCopilot left review comments

@JoannaaKLJoannaaKLJoannaaKL approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@tmelliottjr@stephenotalora@JoannaaKL

[8]ページ先頭

©2009-2025 Movatter.jp