Add tool for project fields and items#1145
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
Adds a new get_project_field tool for retrieving specific project fields from GitHub projects for both users and organizations. This PR implements issue #44 by creating functionality to fetch individual project field details by field ID.
- Implements
GetProjectFieldfunction with support for user and org projects - Adds comprehensive test coverage for the new tool including error cases
- Updates existing
list_project_fieldstool to use correct numeric type for project numbers
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| pkg/github/projects.go | Adds GetProjectField function and fixes projectNumber type in ListProjectFields |
| pkg/github/projects_test.go | Adds comprehensive test cases for GetProjectField tool |
| pkg/github/toolsnaps/get_project_field.snap | Tool snapshot for new get_project_field tool |
| pkg/github/toolsnaps/list_project_fields.snap | Updated snapshot reflecting projectNumber type change |
| README.md | Updated documentation to reflect projectNumber type change |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
848c5c1 to
a3d585d
Compare
a3d585d to
e76e309
Compare
kerobbi
reviewed
Sep 29, 2025
6112541 to
004edc0
Compare
…ols' into add-discussion-tools
…ols' into add-discussion-tools
…ols' into add-discussion-tools
…ols' into add-discussion-tools
…ols' into add-discussion-tools
kerobbi
previously approved these changes
Sep 29, 2025
Contributor
kerobbi
left a comment
There was a problem hiding this comment.
Just a non blocking nit, everything else looks solid!
2019984 to
32d7809
Compare
kerobbi
approved these changes
Sep 29, 2025
nickytonline
pushed a commit
to nickytonline/github-mcp-http
that referenced
this pull request
Oct 4, 2025
* Add get project fields tool * Data types * Docs * Update projectNumber's type * Add list_project_items tool * Add get_project_item tool * Return minimal project * Remove unused per_page
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 pr adds:
get_project_fieldtool for user and orgget_project_itemtool for user and orglist_project_itemstool for user and orgUpdates:
projectNumbertool param toproject_numberAfter this PR is merged last chunk of project tools to be added are:
add_project_itemdelete_project_itemupdate_project_itemIt's worth noting that we are returning minimal project v2 and not the full response.
Implements #44