87a1110c15
Sort all JSON object keys alphabetically at every level in toolsnaps by unmarshaling and remarshaling. This leverages Go's built-in behavior where json.Marshal automatically sorts map keys alphabetically, ensuring consistent field ordering and eliminating noop churn in diffs. Co-authored-by: SamMorrowDrums <4811358+SamMorrowDrums@users.noreply.github.com>
64 lines
1.4 KiB
Plaintext
64 lines
1.4 KiB
Plaintext
{
|
|
"annotations": {
|
|
"title": "Edit pull request"
|
|
},
|
|
"description": "Update an existing pull request in a GitHub repository.",
|
|
"inputSchema": {
|
|
"properties": {
|
|
"base": {
|
|
"description": "New base branch name",
|
|
"type": "string"
|
|
},
|
|
"body": {
|
|
"description": "New description",
|
|
"type": "string"
|
|
},
|
|
"draft": {
|
|
"description": "Mark pull request as draft (true) or ready for review (false)",
|
|
"type": "boolean"
|
|
},
|
|
"maintainer_can_modify": {
|
|
"description": "Allow maintainer edits",
|
|
"type": "boolean"
|
|
},
|
|
"owner": {
|
|
"description": "Repository owner",
|
|
"type": "string"
|
|
},
|
|
"pullNumber": {
|
|
"description": "Pull request number to update",
|
|
"type": "number"
|
|
},
|
|
"repo": {
|
|
"description": "Repository name",
|
|
"type": "string"
|
|
},
|
|
"reviewers": {
|
|
"description": "GitHub usernames to request reviews from",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"state": {
|
|
"description": "New state",
|
|
"enum": [
|
|
"open",
|
|
"closed"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"title": {
|
|
"description": "New title",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"owner",
|
|
"repo",
|
|
"pullNumber"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"name": "update_pull_request"
|
|
} |