Skip to content

Commit 0b1b090

Browse files
committed
re-add notifications toolset
1 parent 51b7a40 commit 0b1b090

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

pkg/github/tools.go

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -256,17 +256,17 @@ func DefaultToolsetGroup(readOnly bool, getClient GetClientFn, getGQLClient GetG
256256
toolsets.NewServerTool(ListDependabotAlerts(getClient, t)),
257257
)
258258

259-
// notifications := toolsets.NewToolset(ToolsetMetadataNotifications.ID, ToolsetMetadataNotifications.Description).
260-
// AddReadTools(
261-
// toolsets.NewServerTool(ListNotifications(getClient, t)),
262-
// toolsets.NewServerTool(GetNotificationDetails(getClient, t)),
263-
// ).
264-
// AddWriteTools(
265-
// toolsets.NewServerTool(DismissNotification(getClient, t)),
266-
// toolsets.NewServerTool(MarkAllNotificationsRead(getClient, t)),
267-
// toolsets.NewServerTool(ManageNotificationSubscription(getClient, t)),
268-
// toolsets.NewServerTool(ManageRepositoryNotificationSubscription(getClient, t)),
269-
// )
259+
notifications := toolsets.NewToolset(ToolsetMetadataNotifications.ID, ToolsetMetadataNotifications.Description).
260+
AddReadTools(
261+
toolsets.NewServerTool(ListNotifications(getClient, t)),
262+
toolsets.NewServerTool(GetNotificationDetails(getClient, t)),
263+
).
264+
AddWriteTools(
265+
toolsets.NewServerTool(DismissNotification(getClient, t)),
266+
toolsets.NewServerTool(MarkAllNotificationsRead(getClient, t)),
267+
toolsets.NewServerTool(ManageNotificationSubscription(getClient, t)),
268+
toolsets.NewServerTool(ManageRepositoryNotificationSubscription(getClient, t)),
269+
)
270270

271271
// discussions := toolsets.NewToolset(ToolsetMetadataDiscussions.ID, ToolsetMetadataDiscussions.Description).
272272
// AddReadTools(
@@ -370,7 +370,7 @@ func DefaultToolsetGroup(readOnly bool, getClient GetClientFn, getGQLClient GetG
370370
tsg.AddToolset(codeSecurity)
371371
tsg.AddToolset(dependabot)
372372
tsg.AddToolset(secretProtection)
373-
// tsg.AddToolset(notifications)
373+
tsg.AddToolset(notifications)
374374
// tsg.AddToolset(experiments)
375375
// tsg.AddToolset(discussions)
376376
tsg.AddToolset(gists)

0 commit comments

Comments
 (0)