Commit aede8e7
committed
fix: add DestructiveHint and OpenWorldHint to label_write annotations
The label_write tool supports a delete method that permanently removes
a label and all its associations from every issue/PR in the repository.
However, it only set ReadOnlyHint: false and did not signal the
destructive nature of this operation to MCP clients.
Add DestructiveHint: true and OpenWorldHint: true to match the pattern
used by other destructive tools in the codebase (actions_run_trigger,
projects_write, discussion_comment_write, remove_sub_issue).
Fixes #27231 parent 9430064 commit aede8e7
3 files changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
229 | | - | |
230 | | - | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
231 | 233 | | |
232 | 234 | | |
233 | 235 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
| 250 | + | |
| 251 | + | |
250 | 252 | | |
251 | 253 | | |
252 | 254 | | |
| |||
0 commit comments