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

Method Create

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

Create creates one artifact on an issue and returns it. The API doesn't return a new artifact's description.

(repo ghrepo.Interface, issueNumber int, artifactType, name, body string)

Source from the content-addressed store, hash-verified

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)
42 // Update saves a new version of one artifact on an issue and returns the
43 // artifact. A nil name or body keeps the current one. The API can't change
44 // an artifact's type.

Callers 3

TestCreateFunction · 0.95
createRunFunction · 0.65
writeMethod · 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

TestCreateFunction · 0.76