GranularUpdateIssueTitle creates a tool to update an issue's title.
(t translations.TranslationHelperFunc)
| 198 | |
| 199 | // GranularUpdateIssueTitle creates a tool to update an issue's title. |
| 200 | func GranularUpdateIssueTitle(t translations.TranslationHelperFunc) inventory.ServerTool { |
| 201 | return issueUpdateTool(t, |
| 202 | "update_issue_title", |
| 203 | "Update the title of an existing issue.", |
| 204 | "Update Issue Title", |
| 205 | map[string]*jsonschema.Schema{ |
| 206 | "title": {Type: "string", Description: "The new title for the issue"}, |
| 207 | }, |
| 208 | []string{"title"}, |
| 209 | func(args map[string]any) (*github.IssueRequest, error) { |
| 210 | title, err := RequiredParam[string](args, "title") |
| 211 | if err != nil { |
| 212 | return nil, err |
| 213 | } |
| 214 | return &github.IssueRequest{Title: &title}, nil |
| 215 | }, |
| 216 | ) |
| 217 | } |
| 218 | |
| 219 | // GranularUpdateIssueBody creates a tool to update an issue's body. |
| 220 | func GranularUpdateIssueBody(t translations.TranslationHelperFunc) inventory.ServerTool { |