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

Method Update

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

Update saves a new version of one artifact on an issue and returns the artifact. A nil name or body keeps the current one. The API can't change an artifact's type.

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

Source from the content-addressed store, hash-verified

43 // artifact. A nil name or body keeps the current one. The API can't change
44 // an artifact's type.
45 Update(repo ghrepo.Interface, issueNumber int, number int, name, body *string) (*Artifact, error)
46}
47
48// maxPageSize is the most artifacts one request asks for.

Callers 3

TestUpdateFunction · 0.95
editRunFunction · 0.65
restoreVersionFunction · 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

TestUpdateFunction · 0.76