Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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 deletions README.md
Original file line number Diff line number Diff 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 deletions pkg/github/__toolsnaps__/update_project_item.snap
Original file line number Diff line number Diff 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": "The numeric ID of the project item to update (not the issue or pull request ID).",
"description": "The unique identifier of the project item. This is not 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 deletions pkg/github/minimal_types.go
Original file line number Diff line number Diff 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 Down Expand 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