MCPcopy
hub / github.com/github/github-mcp-server / GranularUpdateIssueBody

Function GranularUpdateIssueBody

pkg/github/issues_granular.go:220–237  ·  view source on GitHub ↗

GranularUpdateIssueBody creates a tool to update an issue's body.

(t translations.TranslationHelperFunc)

Source from the content-addressed store, hash-verified

218
219// GranularUpdateIssueBody creates a tool to update an issue's body.
220func GranularUpdateIssueBody(t translations.TranslationHelperFunc) inventory.ServerTool {
221 return issueUpdateTool(t,
222 "update_issue_body",
223 "Update the body content of an existing issue.",
224 "Update Issue Body",
225 map[string]*jsonschema.Schema{
226 "body": {Type: "string", Description: "The new body content for the issue"},
227 },
228 []string{"body"},
229 func(args map[string]any) (*github.IssueRequest, error) {
230 body, err := RequiredParam[string](args, "body")
231 if err != nil {
232 return nil, err
233 }
234 return &github.IssueRequest{Body: &body}, nil
235 },
236 )
237}
238
239// GranularUpdateIssueAssignees creates a tool to update an issue's assignees.
240func GranularUpdateIssueAssignees(t translations.TranslationHelperFunc) inventory.ServerTool {

Callers 2

AllToolsFunction · 0.85

Calls 1

issueUpdateToolFunction · 0.85

Tested by 1