Skip to content
6 changes: 6 additions & 0 deletions docs/feature-flags.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,12 @@ as output formatting) won't appear here.
- `repo`: Repository name (string, required)
- `sub_issue_id`: The ID of the sub-issue to add. ID is not the same as issue number (number, required)

- **batch_update_issue_labels** - Batch Update Issue Labels
- **OAuth Challenge Scopes**: `repo`
- `operations`: One entry per issue, in any order. Each entry requires issue_number plus at least one non-empty of add or remove (arrays of label names). Duplicate issue numbers are rejected. (object[], required)
- `owner`: Repository owner (username or organization) (string, required)
- `repo`: Repository name (string, required)

- **create_issue** - Create Issue
- **OAuth Challenge Scopes**: `repo`
- `body`: Issue body content (optional) (string, optional)
Expand Down
124 changes: 124 additions & 0 deletions pkg/github/__toolsnaps__/batch_update_issue_labels.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
{
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
"openWorldHint": true,
"readOnlyHint": false,
"title": "Batch Update Issue Labels"
},
"description": "Apply label changes to multiple issues in one call. Each entry in operations targets one issue and can add labels, remove labels, or both. Labels not named in the operation are left untouched. Invalid input fails the whole call before any change is applied; per-issue API errors are reported individually.",
"icons": [
{
"mimeType": "image/png",
"src": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABmJLR0QA/wD/AP+gvaeTAAAC2UlEQVRIicWVMUyTaRjHf/+vVUpOJOdilOYoUvVreq2CDmLOwdlAS5xMbrrhBifjYG7QjYuJw108nZx1huLgYlw0QshxChUK2koxHHcuCmgsFfieG0or3kGPSoz/8X3f5/97nvfN8z7wmaVqm9FodFfR/EnMugy5giCAwYwgI9Ff9Hl9L9Lp1zUBgsGO+rqGwnlhF4CdwBSyAUwvS1G220zHBSFgHtmVxYWvfp2ZGSj8LyAcjgfZphTQZtAr7OdsZvSP9RIJR+LtQhcNusF+d1aUfPp05M8NAavmg8AOk3cmN56+s1Hpa7U/cviUYbcw3jgex9ZCKoBgsKM+0PDu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A+tB7mypG+OCZ3hbahPgRPguAR9LihaicEu9WcKxClzOi/fU1wPAk7rjgX0uEfNG3cs7mJjtE+wA5/olpZQEHgNf6K2NJyW4NeD7v7c4WptjSc0svlMjdzyM2fbdOyOA7x/T+7mzGj9H8xgIWuquevpw4HmsivkxwBdC/WJRsBKLqqPOHgH8aqybtcJlF0m1WLndUToJ5V31q9r3NOYk7Wh1Wa0PyK3HzA3l/4H3uzIrwFNgCThF7/x/AH5EylngOnAe6AAvgXcppd9DEWRE08DdeIou/RVgJaXUGYQzUfsL+zmwV7BtIq0AAAAASUVORK5CYII=\r",
"theme": "dark"
}
],
"inputSchema": {
"properties": {
"operations": {
"description": "One entry per issue, in any order. Each entry requires issue_number plus at least one non-empty of add or remove (arrays of label names). Duplicate issue numbers are rejected.",
"items": {
"additionalProperties": false,
"properties": {
"add": {
"description": "Label names to add to this issue (GitHub creates missing labels implicitly)",
"items": {
"minLength": 1,
"type": "string"
},
"type": "array"
},
"issue_number": {
"description": "The issue number to update",
"minimum": 1,
"type": "number"
},
"remove": {
"description": "Label names to remove from this issue",
"items": {
"minLength": 1,
"type": "string"
},
"type": "array"
}
},
"required": [
"issue_number"
],
"type": "object"
},
"minItems": 1,
"type": "array"
},
"owner": {
"description": "Repository owner (username or organization)",
"type": "string",
"x-mcp-header": "owner"
},
"repo": {
"description": "Repository name",
"type": "string",
"x-mcp-header": "repo"
}
},
"required": [
"owner",
"repo",
"operations"
],
"type": "object"
},
"name": "batch_update_issue_labels",
"outputSchema": {
"additionalProperties": false,
"properties": {
"results": {
"items": {
"additionalProperties": false,
"properties": {
"applied": {
"type": "boolean"
},
"error": {
"type": "string"
},
"issue_number": {
"type": "integer"
},
"labels": {
"items": {
"type": "string"
},
"type": [
"null",
"array"
]
}
},
"required": [
"issue_number",
"applied"
],
"type": "object"
},
"type": [
"null",
"array"
]
}
},
"required": [
"results"
],
"type": [
"null",
"object"
]
}
}
Loading