Files
github--github-mcp-server/pkg/github/__toolsnaps__/update_issue.snap
Roberto Nacu b6486a3817 Add specifying state change reason to update_issue tool (#1073)
* add state_reason param

* add close as duplicate functionality

* refactor and improve tests

* fix state reason validation logic and update tests

* move state and state reason handling to gql

* fix marshal failures

* address latest feedback
2025-09-12 16:04:00 +02:00

81 lines
1.8 KiB
Plaintext

{
"annotations": {
"title": "Edit issue",
"readOnlyHint": false
},
"description": "Update an existing issue in a GitHub repository.",
"inputSchema": {
"properties": {
"assignees": {
"description": "New assignees",
"items": {
"type": "string"
},
"type": "array"
},
"body": {
"description": "New description",
"type": "string"
},
"duplicate_of": {
"description": "Issue number that this issue is a duplicate of. Only used when state_reason is 'duplicate'.",
"type": "number"
},
"issue_number": {
"description": "Issue number to update",
"type": "number"
},
"labels": {
"description": "New labels",
"items": {
"type": "string"
},
"type": "array"
},
"milestone": {
"description": "New milestone number",
"type": "number"
},
"owner": {
"description": "Repository owner",
"type": "string"
},
"repo": {
"description": "Repository name",
"type": "string"
},
"state": {
"description": "New state",
"enum": [
"open",
"closed"
],
"type": "string"
},
"state_reason": {
"description": "Reason for the state change. Ignored unless state is changed.",
"enum": [
"completed",
"not_planned",
"duplicate"
],
"type": "string"
},
"title": {
"description": "New title",
"type": "string"
},
"type": {
"description": "New issue type",
"type": "string"
}
},
"required": [
"owner",
"repo",
"issue_number"
],
"type": "object"
},
"name": "update_issue"
}