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

Method Delete

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

Delete deletes one artifact from an issue. The API can't restore a deleted artifact.

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

Source from the content-addressed store, hash-verified

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
39 // Create creates one artifact on an issue and returns it. The API doesn't
40 // return a new artifact's description.
41 Create(repo ghrepo.Interface, issueNumber int, artifactType, name, body string) (*Artifact, error)

Callers 4

TestDeleteFunction · 0.95
deleteRunFunction · 0.65
deleteRunFunction · 0.65
newDeleteCmdFunction · 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

TestDeleteFunction · 0.76