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

Add tools to add, update and delete project items#1152

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 7 commits intogithub:mainfromJoannaaKL:add-project-write-tools
Sep 30, 2025

Conversation

JoannaaKL
Copy link
Contributor

@JoannaaKLJoannaaKL commentedSep 29, 2025
edited
Loading

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 V2https://docs.github.com/en/rest/projects/items?apiVersion=2022-11-28

Implements#44

@JoannaaKLJoannaaKL changed the titleAdd add_project_item toolAdd tools to add, update and delete project itemsSep 29, 2025
@JoannaaKLJoannaaKL marked this pull request as ready for reviewSeptember 29, 2025 19:01
@JoannaaKLJoannaaKL requested a review froma team as acode ownerSeptember 29, 2025 19:01
@CopilotCopilotAI review requested due to automatic review settingsSeptember 29, 2025 19:01
Copy link
Contributor

@CopilotCopilotAI 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
FileDescription
pkg/github/tools.goRegisters the new write tools in the toolset group
pkg/github/projects.goImplements the three new project item manipulation functions with proper error handling
pkg/github/projects_test.goAdds comprehensive test coverage for AddProjectItem including edge cases
pkg/github/toolsnaps/add_project_item.snapGenerated snapshot for tool schema validation
README.mdUpdates documentation with the new tool descriptions and parameters

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

JoannaaKLand others added2 commitsSeptember 29, 2025 21:03
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
<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
ContributorAuthor

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

@JoannaaKLJoannaaKL merged commit6793b9d intogithub:mainSep 30, 2025
10 checks passed
nickytonline pushed a commit to nickytonline/github-mcp-http that referenced this pull requestOct 4, 2025
* Add add_project_item tool* Add tools to update and delete project items* Update pkg/github/projects.goCo-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>* Update pkg/github/projects.goCo-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 freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

Copilot code reviewCopilotCopilot left review comments

@tonytrgtonytrgtonytrg 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.

2 participants
@JoannaaKL@tonytrg

[8]ページ先頭

©2009-2025 Movatter.jp