Skip to content

Add support for downloading step logs for a workflow job #4710

Open

Description

@55408suga

go-github supports downloading the logs of a whole workflow job (ActionsService.GetWorkflowJobLogs), but not the logs of a single step:

It is in the api.github.com and GHEC descriptions.

I'd like to work on this, following the GetWorkflowJobLogs pattern:

  • Add ActionsService.GetWorkflowJobStepLogs, which takes jobID, stepNumber, and maxRedirects, and returns the redirect URL like GetWorkflowJobLogs.
  • Use int64 for stepNumber to match TaskStep.Number.
  • Reuse the existing getWorkflowJobLogsWithRateLimit and getWorkflowJobLogsWithoutRateLimit helpers, since they already take the request URL.

Could it be assigned to me?

I used AI assistance to investigate the API docs and existing code and to help draft this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions