Skip to content

Commit 308bfca

Browse files
committed
Annotate granular update_issue tools as destructive
Sets destructiveHint: true on the seven granular update_issue_* tools (title, body, assignees, labels, milestone, state, type) so the IFC client engine can apply egress policies before invocation. The unified issue_write tool is covered separately by #2470. Refs github/copilot-mcp-core#1623.
1 parent 3a4bc26 commit 308bfca

8 files changed

Lines changed: 9 additions & 9 deletions

pkg/github/__toolsnaps__/update_issue_assignees.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"annotations": {
3-
"destructiveHint": false,
3+
"destructiveHint": true,
44
"openWorldHint": true,
55
"title": "Update Issue Assignees"
66
},

pkg/github/__toolsnaps__/update_issue_body.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"annotations": {
3-
"destructiveHint": false,
3+
"destructiveHint": true,
44
"openWorldHint": true,
55
"title": "Update Issue Body"
66
},

pkg/github/__toolsnaps__/update_issue_labels.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"annotations": {
3-
"destructiveHint": false,
3+
"destructiveHint": true,
44
"openWorldHint": true,
55
"title": "Update Issue Labels"
66
},

pkg/github/__toolsnaps__/update_issue_milestone.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"annotations": {
3-
"destructiveHint": false,
3+
"destructiveHint": true,
44
"openWorldHint": true,
55
"title": "Update Issue Milestone"
66
},

pkg/github/__toolsnaps__/update_issue_state.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"annotations": {
3-
"destructiveHint": false,
3+
"destructiveHint": true,
44
"openWorldHint": true,
55
"title": "Update Issue State"
66
},

pkg/github/__toolsnaps__/update_issue_title.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"annotations": {
3-
"destructiveHint": false,
3+
"destructiveHint": true,
44
"openWorldHint": true,
55
"title": "Update Issue Title"
66
},

pkg/github/__toolsnaps__/update_issue_type.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"annotations": {
3-
"destructiveHint": false,
3+
"destructiveHint": true,
44
"openWorldHint": true,
55
"title": "Update Issue Type"
66
},

pkg/github/issues_granular.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func issueUpdateTool(
5353
Annotations: &mcp.ToolAnnotations{
5454
Title: t("TOOL_"+strings.ToUpper(name)+"_USER_TITLE", title),
5555
ReadOnlyHint: false,
56-
DestructiveHint: jsonschema.Ptr(false),
56+
DestructiveHint: jsonschema.Ptr(true),
5757
OpenWorldHint: jsonschema.Ptr(true),
5858
},
5959
InputSchema: &jsonschema.Schema{
@@ -332,7 +332,7 @@ func GranularUpdateIssueType(t translations.TranslationHelperFunc) inventory.Ser
332332
Annotations: &mcp.ToolAnnotations{
333333
Title: t("TOOL_UPDATE_ISSUE_TYPE_USER_TITLE", "Update Issue Type"),
334334
ReadOnlyHint: false,
335-
DestructiveHint: jsonschema.Ptr(false),
335+
DestructiveHint: jsonschema.Ptr(true),
336336
OpenWorldHint: jsonschema.Ptr(true),
337337
},
338338
InputSchema: &jsonschema.Schema{

0 commit comments

Comments
 (0)