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
@@ -643,15 +666,15 @@ For single job logs, provide job_id. For all failed jobs in a run, provide run_i
643
666
},
644
667
"job_id": {
645
668
Type: "number",
646
-
Description: "The unique identifier of the workflow job. Required when getting logs for a single job.",
669
+
Description: "The unique identifier of the workflow job. Provide either job_id or run_id, not both.",
647
670
},
648
671
"run_id": {
649
672
Type: "number",
650
-
Description: "The unique identifier of the workflow run. Required when failed_only is true to get logs for all failed jobs in the run.",
673
+
Description: "The unique identifier of the workflow run. Provide either run_id or job_id, not both.",
651
674
},
652
675
"failed_only": {
653
676
Type: "boolean",
654
-
Description: "When true, gets logs for all failed jobs in the workflow run specified by run_id. Requires run_id to be provided.",
677
+
Description: "When true, only returns logs for failed jobs. With job_id, the job must have failed. With run_id, only failed jobs in the run are included.",
655
678
},
656
679
"return_content": {
657
680
Type: "boolean",
@@ -711,23 +734,18 @@ For single job logs, provide job_id. For all failed jobs in a run, provide run_i
711
734
returnnil, nil, fmt.Errorf("failed to get GitHub client: %w", err)
712
735
}
713
736
714
-
// Validate parameters
715
-
iffailedOnly&&runID==0 {
716
-
returnutils.NewToolResultError("run_id is required when failed_only is true"), nil, nil
737
+
ifjobID>0&&runID>0 {
738
+
returnutils.NewToolResultError("provide either job_id or run_id, not both"), nil, nil
717
739
}
718
-
if!failedOnly&&jobID==0 {
719
-
returnutils.NewToolResultError("job_id is required when failed_only is false"), nil, nil
740
+
ifjobID==0&&runID==0 {
741
+
returnutils.NewToolResultError("one of job_id or run_id must be provided"), nil, nil
720
742
}
721
743
722
-
iffailedOnly&&runID>0 {
723
-
// Handle failed-only mode: get logs for all failed jobs in the workflow run
0 commit comments