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

Function GranularUpdateIssueAssignees

pkg/github/issues_granular.go:240–264  ·  view source on GitHub ↗

GranularUpdateIssueAssignees creates a tool to update an issue's assignees.

(t translations.TranslationHelperFunc)

Source from the content-addressed store, hash-verified

238
239// GranularUpdateIssueAssignees creates a tool to update an issue's assignees.
240func GranularUpdateIssueAssignees(t translations.TranslationHelperFunc) inventory.ServerTool {
241 return issueUpdateTool(t,
242 "update_issue_assignees",
243 "Update the assignees of an existing issue. This replaces the current assignees with the provided list.",
244 "Update Issue Assignees",
245 map[string]*jsonschema.Schema{
246 "assignees": {
247 Type: "array",
248 Description: "GitHub usernames to assign to this issue",
249 Items: &jsonschema.Schema{Type: "string"},
250 },
251 },
252 []string{"assignees"},
253 func(args map[string]any) (*github.IssueRequest, error) {
254 if _, ok := args["assignees"]; !ok {
255 return nil, fmt.Errorf("missing required parameter: assignees")
256 }
257 assignees, err := OptionalStringArrayParam(args, "assignees")
258 if err != nil {
259 return nil, err
260 }
261 return &github.IssueRequest{Assignees: &assignees}, nil
262 },
263 )
264}
265
266// labelWithIntent represents the object form of a label entry, allowing a
267// rationale, confidence level, and/or suggest flag to be sent alongside the label name.

Callers 2

AllToolsFunction · 0.85

Calls 2

issueUpdateToolFunction · 0.85
OptionalStringArrayParamFunction · 0.85

Tested by 1