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

Method Get

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

Get returns one artifact on an issue, with its edit history.

(repo ghrepo.Interface, issueNumber int, number int)

Source from the content-addressed store, hash-verified

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
37 // deleted artifact.
38 Delete(repo ghrepo.Interface, issueNumber int, number int) error

Callers 6

TestGetFunction · 0.95
deleteRunFunction · 0.65
viewRunFunction · 0.65
downloadRunFunction · 0.65
printBodyFunction · 0.65
editRunFunction · 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

TestGetFunction · 0.76