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

Struct Artifact

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

Artifact is an issue artifact as the REST API returns it. The API can return null for the users and timestamps, so those are pointers.

Source from the content-addressed store, hash-verified

41// Artifact is an issue artifact as the REST API returns it. The API can return
42// null for the users and timestamps, so those are pointers.
43type Artifact struct {
44 // ID is the API's global artifact ID. Commands address an artifact by its
45 // issue and Number instead.
46 ID int64 `json:"id"`
47 Number int `json:"number"`
48 Type string `json:"type"`
49 Name string `json:"name"`
50 Body string `json:"body"`
51 BodyHTML string `json:"body_html"`
52 Description string `json:"description"`
53 Creator *Actor `json:"creator"`
54 UpdatedByActor *Actor `json:"updated_by_actor"`
55 CreatedAt *time.Time `json:"created_at"`
56 UpdatedAt *time.Time `json:"updated_at"`
57 // URL is the artifact's page on GitHub, from the API's html_url.
58 URL string `json:"html_url"`
59}
60
61// Actor is a user who created or updated an artifact, or saved one of its
62// versions.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected