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

Function GranularUpdateIssueTitle

pkg/github/issues_granular.go:200–217  ·  view source on GitHub ↗

GranularUpdateIssueTitle creates a tool to update an issue's title.

(t translations.TranslationHelperFunc)

Source from the content-addressed store, hash-verified

198
199// GranularUpdateIssueTitle creates a tool to update an issue's title.
200func 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.
220func GranularUpdateIssueBody(t translations.TranslationHelperFunc) inventory.ServerTool {

Callers 2

AllToolsFunction · 0.85

Calls 1

issueUpdateToolFunction · 0.85

Tested by 1