⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content
Draft
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
21 changes: 10 additions & 11 deletions pkg/github/__toolsnaps__/projects_get.snap
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,17 @@
"description": "Get details about specific GitHub Projects resources.\nUse this tool to get details about individual projects, project fields, and project items by their unique IDs.\n",
"inputSchema": {
"type": "object",
"required": [
"method",
"owner_type",
"owner",
"project_number"
],
"properties": {
"field_id": {
"type": "number",
"description": "The field's ID. Required for 'get_project_field' method."
},
"fields": {
"type": "array",
"description": "Specific list of field IDs to include in the response when getting a project item (e.g. [\"102589\", \"985201\", \"169875\"]). If not provided, only the title field is included. Only used for 'get_project_item' method.",
"items": {
"type": "string"
}
},
"description": "Specific list of field IDs to include in the response when getting a project item (e.g. [\"102589\", \"985201\", \"169875\"]). If not provided, only the title field is included. Only used for 'get_project_item' method."
},
"item_id": {
"type": "number",
Expand All @@ -39,11 +33,11 @@
},
"owner": {
"type": "string",
"description": "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."
"description": "The owner (user or organization login). The name is not case sensitive."
},
"owner_type": {
"type": "string",
"description": "Owner type",
"description": "Owner type (user or org). If not provided, will be automatically detected.",
"enum": [
"user",
"org"
Expand All @@ -53,7 +47,12 @@
"type": "number",
"description": "The project's number."
}
}
},
"required": [
"method",
"owner",
"project_number"
]
},
"name": "projects_get"
}
19 changes: 9 additions & 10 deletions pkg/github/__toolsnaps__/projects_list.snap
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@
"description": "Tools for listing GitHub Projects resources.\nUse this tool to list projects for a user or organization, or list project fields and items for a specific project.\n",
"inputSchema": {
"type": "object",
"required": [
"method",
"owner_type",
"owner"
],
"properties": {
"after": {
"type": "string",
Expand All @@ -22,10 +17,10 @@
},
"fields": {
"type": "array",
"description": "Field IDs to include when listing project items (e.g. [\"102589\", \"985201\"]). CRITICAL: Always provide to get field values. Without this, only titles returned. Only used for 'list_project_items' method.",
"items": {
"type": "string"
}
},
"description": "Field IDs to include when listing project items (e.g. [\"102589\", \"985201\"]). CRITICAL: Always provide to get field values. Without this, only titles returned. Only used for 'list_project_items' method."
},
"method": {
"type": "string",
Expand All @@ -38,11 +33,11 @@
},
"owner": {
"type": "string",
"description": "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."
"description": "The owner (user or organization login). The name is not case sensitive."
},
"owner_type": {
"type": "string",
"description": "Owner type",
"description": "Owner type (user or org). If not provided, will automatically try both.",
"enum": [
"user",
"org"
Expand All @@ -60,7 +55,11 @@
"type": "string",
"description": "Filter/query string. For list_projects: filter by title text and state (e.g. \"roadmap is:open\"). For list_project_items: advanced filtering using GitHub's project filtering syntax."
}
}
},
"required": [
"method",
"owner"
]
},
"name": "projects_list"
}
35 changes: 25 additions & 10 deletions pkg/github/__toolsnaps__/projects_write.snap
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,22 @@
"description": "Add, update, or delete project items in a GitHub Project.",
"inputSchema": {
"type": "object",
"required": [
"method",
"owner_type",
"owner",
"project_number"
],
"properties": {
"issue_number": {
"type": "number",
"description": "The issue number (use when item_type is 'issue' for 'add_project_item' method). Provide either issue_number or pull_request_number."
},
"item_id": {
"type": "number",
"description": "The project item ID. Required for 'update_project_item' and 'delete_project_item' methods. For add_project_item, this is the numeric ID of the issue or pull request to add."
"description": "The project item ID. Required for 'update_project_item' and 'delete_project_item' methods."
},
"item_owner": {
"type": "string",
"description": "The owner (user or organization) of the repository containing the issue or pull request. Required for 'add_project_item' method."
},
"item_repo": {
"type": "string",
"description": "The name of the repository containing the issue or pull request. Required for 'add_project_item' method."
},
"item_type": {
"type": "string",
Expand All @@ -36,11 +42,11 @@
},
"owner": {
"type": "string",
"description": "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."
"description": "The project owner (user or organization login). The name is not case sensitive."
},
"owner_type": {
"type": "string",
"description": "Owner type",
"description": "Owner type (user or org). If not provided, will be automatically detected.",
"enum": [
"user",
"org"
Expand All @@ -50,11 +56,20 @@
"type": "number",
"description": "The project's number."
},
"pull_request_number": {
"type": "number",
"description": "The pull request number (use when item_type is 'pull_request' for 'add_project_item' method). Provide either issue_number or pull_request_number."
},
"updated_field": {
"type": "object",
"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\"}. Required for 'update_project_item' method."
}
}
},
"required": [
"method",
"owner",
"project_number"
]
},
"name": "projects_write"
}
1 change: 1 addition & 0 deletions pkg/github/minimal_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ type MinimalProject struct {
Number *int `json:"number,omitempty"`
ShortDescription *string `json:"short_description,omitempty"`
DeletedBy *MinimalUser `json:"deleted_by,omitempty"`
OwnerType string `json:"owner_type,omitempty"`
}

// Helper functions
Expand Down
Loading