Skip to content

Conversation

JoannaaKL
Copy link
Contributor

@JoannaaKL JoannaaKL commented Sep 29, 2025

This PR adds:

  • tool to update project items
  • tool to delete project items
  • tool to add project items

Last chunk of work to add tools wrapping Projects V2 https://docs.github.com/en/rest/projects/items?apiVersion=2022-11-28

Implements #44

@JoannaaKL JoannaaKL changed the title Add add_project_item tool Add tools to add, update and delete project items Sep 29, 2025
@JoannaaKL JoannaaKL marked this pull request as ready for review September 29, 2025 19:01
@JoannaaKL JoannaaKL requested a review from a team as a code owner September 29, 2025 19:01
@Copilot Copilot AI review requested due to automatic review settings September 29, 2025 19:01
Copy link
Contributor

@Copilot 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 PR adds write operations for GitHub project items, enabling users to create, update, and delete project items programmatically. The implementation follows the existing pattern for read-only operations and includes comprehensive test coverage.

  • Add three new write tools: AddProjectItem, DeleteProjectItem, and UpdateProjectItem
  • Each tool supports both user and organization project contexts with proper parameter validation
  • Comprehensive test coverage with various success and error scenarios

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
pkg/github/tools.go Registers the new write tools in the toolset group
pkg/github/projects.go Implements the three new project item manipulation functions with proper error handling
pkg/github/projects_test.go Adds comprehensive test coverage for AddProjectItem including edge cases
pkg/github/toolsnaps/add_project_item.snap Generated snapshot for tool schema validation
README.md Updates documentation with the new tool descriptions and parameters

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

JoannaaKL and others added 2 commits September 29, 2025 21:03
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@JoannaaKL JoannaaKL force-pushed the add-project-write-tools branch from b52fc1d to f4bbd39 Compare September 29, 2025 19:04
<summary>Projects</summary>

- **add_project_item** - Add project item
- `item_id`: The numeric ID of the issue or pull request to add to the project. (number, required)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

item_id here means pr id below specifically something else, would this benefit from a new distinct name, or below (not the issue or pull request ID).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It can mean either an issue id or a pr id, depending on the item type

@JoannaaKL JoannaaKL merged commit 6793b9d into github:main Sep 30, 2025
10 checks passed
nickytonline pushed a commit to nickytonline/github-mcp-http that referenced this pull request Oct 4, 2025
* Add add_project_item tool

* Add tools to update and delete project items

* Update pkg/github/projects.go

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update pkg/github/projects.go

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Add tests

* Lint the code

* Fix req params

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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.

2 participants