MCPcopy
hub / github.com/cli/cli / Run

Struct Run

pkg/cmd/run/shared/shared.go:89–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87var SingleRunFields = append(RunFields, "jobs")
88
89type Run struct {
90 Name string `json:"name"` // the semantics of this field are unclear
91 DisplayTitle string `json:"display_title"`
92 CreatedAt time.Time `json:"created_at"`
93 UpdatedAt time.Time `json:"updated_at"`
94 StartedAt time.Time `json:"run_started_at"`
95 Status Status
96 Conclusion Conclusion
97 Event string
98 ID int64
99 workflowName string // cache column
100 WorkflowID int64 `json:"workflow_id"`
101 Number int64 `json:"run_number"`
102 Attempt uint64 `json:"run_attempt"`
103 HeadBranch string `json:"head_branch"`
104 JobsURL string `json:"jobs_url"`
105 HeadCommit Commit `json:"head_commit"`
106 HeadSha string `json:"head_sha"`
107 URL string `json:"html_url"`
108 HeadRepository Repo `json:"head_repository"`
109 Jobs []Job `json:"-"` // populated by GetJobs
110}
111
112func (r *Run) StartedTime() time.Time {
113 if r.StartedAt.IsZero() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected