(args map[string]any)
| 747 | } |
| 748 | |
| 749 | func requiredCommentNodeID(args map[string]any) (string, error) { |
| 750 | commentNodeID, err := RequiredParam[string](args, "commentNodeID") |
| 751 | if err != nil { |
| 752 | return "", err |
| 753 | } |
| 754 | if strings.TrimSpace(commentNodeID) == "" { |
| 755 | return "", fmt.Errorf("commentNodeID cannot be blank") |
| 756 | } |
| 757 | return commentNodeID, nil |
| 758 | } |
| 759 | |
| 760 | func replyToDiscussionComment(ctx context.Context, client *githubv4.Client, args map[string]any) (*mcp.CallToolResult, any, error) { |
| 761 | commentNodeID, err := requiredCommentNodeID(args) |
no outgoing calls
no test coverage detected