MCPcopy Index your code
hub / github.com/github/github-mcp-server / requiredCommentNodeID

Function requiredCommentNodeID

pkg/github/discussions.go:749–758  ·  view source on GitHub ↗
(args map[string]any)

Source from the content-addressed store, hash-verified

747}
748
749func 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
760func replyToDiscussionComment(ctx context.Context, client *githubv4.Client, args map[string]any) (*mcp.CallToolResult, any, error) {
761 commentNodeID, err := requiredCommentNodeID(args)

Callers 5

replyToDiscussionCommentFunction · 0.85
updateDiscussionCommentFunction · 0.85
deleteDiscussionCommentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected