Skip to content

Commit b7b8890

Browse files
committed
fix invalid schema, re-add gists toolset to server
1 parent 2cbf5fc commit b7b8890

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

pkg/github/gists.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -273,19 +273,19 @@ func UpdateGist(getClient GetClientFn, t translations.TranslationHelperFunc) (mc
273273
Properties: map[string]*jsonschema.Schema{
274274
"gist_id": {
275275
Type: "string",
276-
Description: "ID of the gist to update",
276+
Description: t("TOOL_UPDATE_GIST_GIST_ID_DESCRIPTION", "ID of the gist to update"),
277277
},
278278
"description": {
279279
Type: "string",
280-
Description: "Updated description of the gist",
280+
Description: t("TOOL_UPDATE_GIST_DESCRIPTION_DESCRIPTION", "Updated description of the gist"),
281281
},
282282
"filename": {
283283
Type: "string",
284-
Description: "Filename to update or create",
284+
Description: t("TOOL_UPDATE_GIST_FILENAME_DESCRIPTION", "Filename to update or create"),
285285
},
286286
"content": {
287287
Type: "string",
288-
Description: "Content for the file",
288+
Description: t("TOOL_UPDATE_GIST_CONTENT_DESCRIPTION", "Content for the file"),
289289
},
290290
},
291291
Required: []string{"gist_id", "filename", "content"},

pkg/github/tools.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -313,15 +313,15 @@ func DefaultToolsetGroup(readOnly bool, getClient GetClientFn, getGQLClient GetG
313313
toolsets.NewServerTool(GetTeamMembers(getGQLClient, t)),
314314
)
315315

316-
// gists := toolsets.NewToolset(ToolsetMetadataGists.ID, ToolsetMetadataGists.Description).
317-
// AddReadTools(
318-
// toolsets.NewServerTool(ListGists(getClient, t)),
319-
// toolsets.NewServerTool(GetGist(getClient, t)),
320-
// ).
321-
// AddWriteTools(
322-
// toolsets.NewServerTool(CreateGist(getClient, t)),
323-
// toolsets.NewServerTool(UpdateGist(getClient, t)),
324-
// )
316+
gists := toolsets.NewToolset(ToolsetMetadataGists.ID, ToolsetMetadataGists.Description).
317+
AddReadTools(
318+
toolsets.NewServerTool(ListGists(getClient, t)),
319+
toolsets.NewServerTool(GetGist(getClient, t)),
320+
).
321+
AddWriteTools(
322+
toolsets.NewServerTool(CreateGist(getClient, t)),
323+
toolsets.NewServerTool(UpdateGist(getClient, t)),
324+
)
325325

326326
// projects := toolsets.NewToolset(ToolsetMetadataProjects.ID, ToolsetMetadataProjects.Description).
327327
// AddReadTools(
@@ -372,7 +372,7 @@ func DefaultToolsetGroup(readOnly bool, getClient GetClientFn, getGQLClient GetG
372372
// tsg.AddToolset(notifications)
373373
// tsg.AddToolset(experiments)
374374
// tsg.AddToolset(discussions)
375-
// tsg.AddToolset(gists)
375+
tsg.AddToolset(gists)
376376
// tsg.AddToolset(securityAdvisories)
377377
// tsg.AddToolset(projects)
378378
// tsg.AddToolset(stargazers)

0 commit comments

Comments
 (0)