MCPcopy Create free account
hub / github.com/cli/cli / List

Method List

pkg/cmd/issue/artifact/client/client.go:33–33  ·  view source on GitHub ↗

List returns the artifacts on an issue in the order the API returns them, which is number order. An empty artifactType lists every type, and a limit of 0 lists every artifact.

(repo ghrepo.Interface, issueNumber int, artifactType string, limit int)

Source from the content-addressed store, hash-verified

31 // them, which is number order. An empty artifactType lists every type,
32 // and a limit of 0 lists every artifact.
33 List(repo ghrepo.Interface, issueNumber int, artifactType string, limit int) ([]Artifact, error)
34 // Get returns one artifact on an issue, with its edit history.
35 Get(repo ghrepo.Interface, issueNumber int, number int) (*ArtifactWithVersions, error)
36 // Delete deletes one artifact from an issue. The API can't restore a

Callers 3

TestListFunction · 0.95
listArtifactsFunction · 0.65
downloadRunFunction · 0.65

Implementers 2

ArtifactClientMockpkg/cmd/issue/artifact/client/client_m
artifactClientpkg/cmd/issue/artifact/client/client.g

Calls

no outgoing calls

Tested by 1

TestListFunction · 0.76