Skip to content

Commit d798f7f

Browse files
committed
Initial fixes
1 parent ed76813 commit d798f7f

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

pkg/github/tools.go

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,9 @@ func DefaultToolsetGroup(readOnly bool, getClient GetClientFn, getGQLClient GetG
122122
toolsets.NewServerTool(GetDiscussion(getGQLClient, t)),
123123
toolsets.NewServerTool(GetDiscussionComments(getGQLClient, t)),
124124
toolsets.NewServerTool(ListDiscussionCategories(getGQLClient, t)),
125-
)
126-
127-
actions := toolsets.NewToolset("actions", "GitHub Actions workflows and CI/CD operations").
125+
)
126+
127+
actions := toolsets.NewToolset("actions", "GitHub Actions workflows and CI/CD operations").
128128
AddReadTools(
129129
toolsets.NewServerTool(ListWorkflows(getClient, t)),
130130
toolsets.NewServerTool(ListWorkflowRuns(getClient, t)),
@@ -166,13 +166,7 @@ func DefaultToolsetGroup(readOnly bool, getClient GetClientFn, getGQLClient GetG
166166
tsg.AddToolset(experiments)
167167
tsg.AddToolset(discussions)
168168

169-
// Enable the requested features
170-
171-
if err := tsg.EnableToolsets(passedToolsets); err != nil {
172-
return nil, err
173-
}
174-
175-
return tsg, nil
169+
return tsg
176170
}
177171

178172
// InitDynamicToolset creates a dynamic toolset that can be used to enable other toolsets, and so requires the server and toolset group as arguments

0 commit comments

Comments
 (0)