GranularUpdateIssueBody creates a tool to update an issue's body.
(t translations.TranslationHelperFunc)
| 218 | |
| 219 | // GranularUpdateIssueBody creates a tool to update an issue's body. |
| 220 | func 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. |
| 240 | func GranularUpdateIssueAssignees(t translations.TranslationHelperFunc) inventory.ServerTool { |