Skip to content

Commit a661dcd

Browse files
committed
re-add discussions toolset
1 parent e7aed27 commit a661dcd

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

pkg/github/tools.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -268,13 +268,13 @@ func DefaultToolsetGroup(readOnly bool, getClient GetClientFn, getGQLClient GetG
268268
// toolsets.NewServerTool(ManageRepositoryNotificationSubscription(getClient, t)),
269269
// )
270270

271-
// discussions := toolsets.NewToolset(ToolsetMetadataDiscussions.ID, ToolsetMetadataDiscussions.Description).
272-
// AddReadTools(
273-
// toolsets.NewServerTool(ListDiscussions(getGQLClient, t)),
274-
// toolsets.NewServerTool(GetDiscussion(getGQLClient, t)),
275-
// toolsets.NewServerTool(GetDiscussionComments(getGQLClient, t)),
276-
// toolsets.NewServerTool(ListDiscussionCategories(getGQLClient, t)),
277-
// )
271+
discussions := toolsets.NewToolset(ToolsetMetadataDiscussions.ID, ToolsetMetadataDiscussions.Description).
272+
AddReadTools(
273+
toolsets.NewServerTool(ListDiscussions(getGQLClient, t)),
274+
toolsets.NewServerTool(GetDiscussion(getGQLClient, t)),
275+
toolsets.NewServerTool(GetDiscussionComments(getGQLClient, t)),
276+
toolsets.NewServerTool(ListDiscussionCategories(getGQLClient, t)),
277+
)
278278

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

0 commit comments

Comments
 (0)