You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pkg/github/actions.go
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -531,7 +531,7 @@ func ListWorkflowJobs(getClient GetClientFn, t translations.TranslationHelperFun
531
531
}
532
532
533
533
// GetJobLogs creates a tool to download logs for a specific workflow job or efficiently get all failed job logs for a workflow run
534
-
funcGetJobLogs(getClientGetClientFn, t translations.TranslationHelperFunc, contextWindowSizeint) (tool mcp.Tool, handler server.ToolHandlerFunc) {
534
+
funcGetJobLogs(getClientGetClientFn, t translations.TranslationHelperFunc, contentWindowSizeint) (tool mcp.Tool, handler server.ToolHandlerFunc) {
535
535
returnmcp.NewTool("get_job_logs",
536
536
mcp.WithDescription(t("TOOL_GET_JOB_LOGS_DESCRIPTION", "Download logs for a specific workflow job or efficiently get all failed job logs for a workflow run")),
537
537
mcp.WithToolAnnotation(mcp.ToolAnnotation{
@@ -614,18 +614,18 @@ func GetJobLogs(getClient GetClientFn, t translations.TranslationHelperFunc, con
614
614
615
615
iffailedOnly&&runID>0 {
616
616
// Handle failed-only mode: get logs for all failed jobs in the workflow run
content, originalLength, httpResp, err:=downloadLogContent(ctx, url.String(), tailLines, contextWindowSize) //nolint:bodyclose // Response body is closed in downloadLogContent, but we need to return httpResp
725
+
content, originalLength, httpResp, err:=downloadLogContent(ctx, url.String(), tailLines, contentWindowSize) //nolint:bodyclose // Response body is closed in downloadLogContent, but we need to return httpResp
726
726
iferr!=nil {
727
727
// To keep the return value consistent wrap the response as a GitHub Response
0 commit comments