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 update project item tool#1194

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
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
Show all changes
18 commits
Select commitHold shift + click to select a range
6d77cde
Add update project item tool
JoannaaKLOct 8, 2025
b221d70
Update docs
JoannaaKLOct 8, 2025
6ed0475
Add tests and tool snaps
JoannaaKLOct 8, 2025
554bccf
Merge branch 'main' into add-update_project_item-tool
JoannaaKLOct 8, 2025
2bf55a6
Remove unnecessary comments
JoannaaKLOct 9, 2025
5447a1d
Formatting and fixes
JoannaaKLOct 9, 2025
aa4d088
Merge remote-tracking branch 'refs/remotes/origin/add-update_project_…
JoannaaKLOct 9, 2025
a01042f
Merge branch 'main' into add-update_project_item-tool
JoannaaKLOct 9, 2025
f3414a9
Extract error messages to const
JoannaaKLOct 9, 2025
3f37f45
Merge remote-tracking branch 'refs/remotes/origin/add-update_project_…
JoannaaKLOct 9, 2025
eb4d7c4
Fix json tag
JoannaaKLOct 9, 2025
d835623
Rename field
JoannaaKLOct 9, 2025
b8fc431
Merge branch 'main' into add-update_project_item-tool
JoannaaKLOct 9, 2025
2032557
Update params
JoannaaKLOct 9, 2025
402eb90
Update test
JoannaaKLOct 9, 2025
f48befc
Merge remote-tracking branch 'refs/remotes/origin/add-update_project_…
JoannaaKLOct 9, 2025
d1ba41f
Update tool example
JoannaaKLOct 9, 2025
fc68db5
.
JoannaaKLOct 9, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletionsREADME.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -806,6 +806,13 @@ The following sets of tools are available (all are on by default):
- `per_page`: Number of results per page (max 100, default: 30) (number, optional)
- `query`: Filter projects by a search query (matches title and description) (string, optional)

- **update_project_item** - Update project item
- `item_id`: The unique identifier of the project item. This is not the issue or pull request ID. (number, required)
- `owner`: If owner_type == user it is the handle for the GitHub user account. If owner_type == org it is the name of the organization. The name is not case sensitive. (string, required)
- `owner_type`: Owner type (string, required)
- `project_number`: The project's number. (number, required)
- `updated_field`: Object consisting of the ID of the project field to update and the new value for the field. To clear the field, set "value" to null. Example: {"id": 123456, "value": "New Value"} (object, required)

</details>

<details>
Expand Down
13 changes: 7 additions & 6 deletionspkg/github/__toolsnaps__/update_project_item.snap
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -6,12 +6,8 @@
"description": "Update a specific Project item for a user or org",
"inputSchema": {
"properties": {
"fields": {
"description": "A list of field updates to apply.",
"type": "array"
},
"item_id": {
"description": "Thenumeric ID of the project item to update (not the issue or pull request ID).",
"description": "Theunique identifier of the project item. This isnot the issue or pull request ID.",
"type": "number"
},
"owner": {
Expand All@@ -29,14 +25,19 @@
"project_number": {
"description": "The project's number.",
"type": "number"
},
"updated_field": {
"description": "Object consisting of the ID of the project field to update and the new value for the field. To clear the field, set \"value\" to null. Example: {\"id\": 123456, \"value\": \"New Value\"}",
"properties": {},
"type": "object"
}
},
"required": [
"owner_type",
"owner",
"project_number",
"item_id",
"fields"
"updated_field"
],
"type": "object"
},
Expand Down
4 changes: 4 additions & 0 deletionspkg/github/minimal_types.go
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -134,6 +134,8 @@ type MinimalProject struct {
type MinimalProjectItem struct {
ID *int64 `json:"id,omitempty"`
NodeID *string `json:"node_id,omitempty"`
Title *string `json:"title,omitempty"`
Description *string `json:"description,omitempty"`
ProjectNodeID *string `json:"project_node_id,omitempty"`
ContentNodeID *string `json:"content_node_id,omitempty"`
ProjectURL *string `json:"project_url,omitempty"`
Expand DownExpand Up@@ -192,6 +194,8 @@ func convertToMinimalProjectItem(item *projectV2Item) *MinimalProjectItem {
return &MinimalProjectItem{
ID: item.ID,
NodeID: item.NodeID,
Title: item.Title,
Description: item.Description,
ProjectNodeID: item.ProjectNodeID,
ContentNodeID: item.ContentNodeID,
ProjectURL: item.ProjectURL,
Expand Down
Loading
Loading

[8]ページ先頭

©2009-2025 Movatter.jp