60 lines
1.9 KiB
Plaintext
60 lines
1.9 KiB
Plaintext
{
|
|
"annotations": {
|
|
"destructiveHint": true,
|
|
"title": "Modify GitHub Project items"
|
|
},
|
|
"description": "Add, update, or delete project items in a GitHub Project.",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"required": [
|
|
"method",
|
|
"owner_type",
|
|
"owner",
|
|
"project_number"
|
|
],
|
|
"properties": {
|
|
"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."
|
|
},
|
|
"item_type": {
|
|
"type": "string",
|
|
"description": "The item's type, either issue or pull_request. Required for 'add_project_item' method.",
|
|
"enum": [
|
|
"issue",
|
|
"pull_request"
|
|
]
|
|
},
|
|
"method": {
|
|
"type": "string",
|
|
"description": "The method to execute",
|
|
"enum": [
|
|
"add_project_item",
|
|
"update_project_item",
|
|
"delete_project_item"
|
|
]
|
|
},
|
|
"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."
|
|
},
|
|
"owner_type": {
|
|
"type": "string",
|
|
"description": "Owner type",
|
|
"enum": [
|
|
"user",
|
|
"org"
|
|
]
|
|
},
|
|
"project_number": {
|
|
"type": "number",
|
|
"description": "The project's 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."
|
|
}
|
|
}
|
|
},
|
|
"name": "projects_write"
|
|
} |