go-github icon indicating copy to clipboard operation
go-github copied to clipboard

Unable to filter artifacts by name in golang

Open muhardanz opened this issue 1 year ago • 4 comments

Unable to filter artifacts by name in golang when listing them using the package: github.com/google/go-github/v43/github

The github.Client ->Actions.ListArtifacts() only has ListOptions to support pagination. There is no reference to filter via the name query parameter

The only way to do this is to use the API directly via: repos/<<OWNER>>/<<REPO>>/actions/artifacts?name=<<ARTIFACT_NAME>> which does support filtering by name

muhardanz avatar Oct 18 '24 03:10 muhardanz