Skip to content

List workflow runs for a repository by SHA #2687

@alexellis

Description

@alexellis

Hi, I want to trigger a workflow for a given SHA, then query the ID of the run, to eventually collect the logs and status.

This is available in the API now, however the latest version of go-github doesn't have it available in the struct yet.

https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#list-workflow-runs-for-a-repository

// ListWorkflowRunsOptions specifies optional parameters to ListWorkflowRuns.
type ListWorkflowRunsOptions struct {
	Actor   string `url:"actor,omitempty"`
	Branch  string `url:"branch,omitempty"`
	Event   string `url:"event,omitempty"`
	Status  string `url:"status,omitempty"`
	Created string `url:"created,omitempty"`
	ListOptions
}

I don't know how to contribute to this library, or whether external contributions are welcome/harder for the maintainers than adding this themselves.

What would be a good next step to get this in?

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