@@ -211,10 +211,10 @@ func (s *ActionsService) GetWorkflowRunAttempt(ctx context.Context, owner, repo
211
211
// GetWorkflowRunAttemptLogs gets a redirect URL to download a plain text file of logs for a workflow run for attempt number.
212
212
//
213
213
// GitHub API docs: https://docs.github.com/en/rest/actions/workflow-runs#download-workflow-run-attempt-logs
214
- func (s * ActionsService ) GetWorkflowRunAttemptLogs (ctx context.Context , owner , repo string , runID int64 , attemptNumber int , followRedirects bool ) (* url.URL , * Response , error ) {
214
+ func (s * ActionsService ) GetWorkflowRunAttemptLogs (ctx context.Context , owner , repo string , runID int64 , attemptNumber int , maxRedirects int ) (* url.URL , * Response , error ) {
215
215
u := fmt .Sprintf ("repos/%v/%v/actions/runs/%v/attempts/%v/logs" , owner , repo , runID , attemptNumber )
216
216
217
- resp , err := s .client .roundTripWithOptionalFollowRedirect (ctx , u , followRedirects )
217
+ resp , err := s .client .roundTripWithOptionalFollowRedirect (ctx , u , maxRedirects )
218
218
if err != nil {
219
219
return nil , nil , err
220
220
}
@@ -287,10 +287,10 @@ func (s *ActionsService) CancelWorkflowRunByID(ctx context.Context, owner, repo
287
287
// GetWorkflowRunLogs gets a redirect URL to download a plain text file of logs for a workflow run.
288
288
//
289
289
// GitHub API docs: https://docs.github.com/en/rest/actions/workflow-runs#download-workflow-run-logs
290
- func (s * ActionsService ) GetWorkflowRunLogs (ctx context.Context , owner , repo string , runID int64 , followRedirects bool ) (* url.URL , * Response , error ) {
290
+ func (s * ActionsService ) GetWorkflowRunLogs (ctx context.Context , owner , repo string , runID int64 , maxRedirects int ) (* url.URL , * Response , error ) {
291
291
u := fmt .Sprintf ("repos/%v/%v/actions/runs/%v/logs" , owner , repo , runID )
292
292
293
- resp , err := s .client .roundTripWithOptionalFollowRedirect (ctx , u , followRedirects )
293
+ resp , err := s .client .roundTripWithOptionalFollowRedirect (ctx , u , maxRedirects )
294
294
if err != nil {
295
295
return nil , nil , err
296
296
}
0 commit comments