Skip to content

Commit 91b179b

Browse files
committed
Refactor tests
1 parent 6b6bc17 commit 91b179b

3 files changed

Lines changed: 138 additions & 212 deletions

File tree

pkg/github/__toolsnaps__/discussion_comment_write.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"annotations": {
3+
"destructiveHint": true,
34
"title": "Manage discussion comments"
45
},
56
"description": "Write operations for discussion comments.\nSupports adding top-level comments, replying to existing comments, updating comment content, deleting comments, and marking or unmarking comments as the answer.",

pkg/github/discussions.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -593,8 +593,9 @@ func DiscussionCommentWrite(t translations.TranslationHelperFunc) inventory.Serv
593593
Description: t("TOOL_DISCUSSION_COMMENT_WRITE_DESCRIPTION", `Write operations for discussion comments.
594594
Supports adding top-level comments, replying to existing comments, updating comment content, deleting comments, and marking or unmarking comments as the answer.`),
595595
Annotations: &mcp.ToolAnnotations{
596-
Title: t("TOOL_DISCUSSION_COMMENT_WRITE_USER_TITLE", "Manage discussion comments"),
597-
ReadOnlyHint: false,
596+
Title: t("TOOL_DISCUSSION_COMMENT_WRITE_USER_TITLE", "Manage discussion comments"),
597+
ReadOnlyHint: false,
598+
DestructiveHint: jsonschema.Ptr(true),
598599
},
599600
InputSchema: &jsonschema.Schema{
600601
Type: "object",

0 commit comments

Comments
 (0)