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

Method UploadTarget

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

UploadTarget is IsPullRequest for a command that uploads files with --attach. Its one lookup also returns what an upload needs to know about repo.

(repo ghrepo.Interface, number int)

Source from the content-addressed store, hash-verified

27 // --attach. Its one lookup also returns what an upload needs to know
28 // about repo.
29 UploadTarget(repo ghrepo.Interface, number int) (*UploadTarget, error)
30 // List returns the artifacts on an issue in the order the API returns
31 // them, which is number order. An empty artifactType lists every type,
32 // and a limit of 0 lists every artifact.

Callers 2

TestUploadTargetFunction · 0.95
CheckUploadTargetFunction · 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

TestUploadTargetFunction · 0.76