Skip to content

Commit 9787684

Browse files
committed
re-add actions toolset
1 parent 7d0d78b commit 9787684

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

pkg/github/tools.go

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -276,25 +276,25 @@ func DefaultToolsetGroup(readOnly bool, getClient GetClientFn, getGQLClient GetG
276276
// toolsets.NewServerTool(ListDiscussionCategories(getGQLClient, t)),
277277
// )
278278

279-
// actions := toolsets.NewToolset(ToolsetMetadataActions.ID, ToolsetMetadataActions.Description).
280-
// AddReadTools(
281-
// toolsets.NewServerTool(ListWorkflows(getClient, t)),
282-
// toolsets.NewServerTool(ListWorkflowRuns(getClient, t)),
283-
// toolsets.NewServerTool(GetWorkflowRun(getClient, t)),
284-
// toolsets.NewServerTool(GetWorkflowRunLogs(getClient, t)),
285-
// toolsets.NewServerTool(ListWorkflowJobs(getClient, t)),
286-
// toolsets.NewServerTool(GetJobLogs(getClient, t, contentWindowSize)),
287-
// toolsets.NewServerTool(ListWorkflowRunArtifacts(getClient, t)),
288-
// toolsets.NewServerTool(DownloadWorkflowRunArtifact(getClient, t)),
289-
// toolsets.NewServerTool(GetWorkflowRunUsage(getClient, t)),
290-
// ).
291-
// AddWriteTools(
292-
// toolsets.NewServerTool(RunWorkflow(getClient, t)),
293-
// toolsets.NewServerTool(RerunWorkflowRun(getClient, t)),
294-
// toolsets.NewServerTool(RerunFailedJobs(getClient, t)),
295-
// toolsets.NewServerTool(CancelWorkflowRun(getClient, t)),
296-
// toolsets.NewServerTool(DeleteWorkflowRunLogs(getClient, t)),
297-
// )
279+
actions := toolsets.NewToolset(ToolsetMetadataActions.ID, ToolsetMetadataActions.Description).
280+
AddReadTools(
281+
toolsets.NewServerTool(ListWorkflows(getClient, t)),
282+
toolsets.NewServerTool(ListWorkflowRuns(getClient, t)),
283+
toolsets.NewServerTool(GetWorkflowRun(getClient, t)),
284+
toolsets.NewServerTool(GetWorkflowRunLogs(getClient, t)),
285+
toolsets.NewServerTool(ListWorkflowJobs(getClient, t)),
286+
toolsets.NewServerTool(GetJobLogs(getClient, t, contentWindowSize)),
287+
toolsets.NewServerTool(ListWorkflowRunArtifacts(getClient, t)),
288+
toolsets.NewServerTool(DownloadWorkflowRunArtifact(getClient, t)),
289+
toolsets.NewServerTool(GetWorkflowRunUsage(getClient, t)),
290+
).
291+
AddWriteTools(
292+
toolsets.NewServerTool(RunWorkflow(getClient, t)),
293+
toolsets.NewServerTool(RerunWorkflowRun(getClient, t)),
294+
toolsets.NewServerTool(RerunFailedJobs(getClient, t)),
295+
toolsets.NewServerTool(CancelWorkflowRun(getClient, t)),
296+
toolsets.NewServerTool(DeleteWorkflowRunLogs(getClient, t)),
297+
)
298298

299299
securityAdvisories := toolsets.NewToolset(ToolsetMetadataSecurityAdvisories.ID, ToolsetMetadataSecurityAdvisories.Description).
300300
AddReadTools(
@@ -366,7 +366,7 @@ func DefaultToolsetGroup(readOnly bool, getClient GetClientFn, getGQLClient GetG
366366
// tsg.AddToolset(orgs)
367367
// tsg.AddToolset(users)
368368
// tsg.AddToolset(pullRequests)
369-
// tsg.AddToolset(actions)
369+
tsg.AddToolset(actions)
370370
tsg.AddToolset(codeSecurity)
371371
tsg.AddToolset(secretProtection)
372372
// tsg.AddToolset(dependabot)

0 commit comments

Comments
 (0)