Versions in this module Expand all Collapse all v1 v1.8.2 Apr 14, 2021 v0 v0.3.0 Apr 14, 2021 v0.2.43 Apr 14, 2021 v0.2.42 Apr 14, 2021 v0.2.41 Apr 14, 2021 v0.2.5 Apr 14, 2021 v0.2.4 Apr 14, 2021 v0.2.3 Apr 14, 2021 v0.2.2 Apr 14, 2021 v0.2.1 Apr 14, 2021 v0.2.0 Apr 13, 2021 v0.1.0 Apr 13, 2021 Changes in this version + const ActionRequired + const AnnotationFailure + const AnnotationWarning + const Cancelled + const Completed + const Failure + const InProgress + const Neutral + const Queued + const Requested + const Skipped + const Stale + const StartupFailure + const Success + const TimedOut + const Waiting + var FailedJobAnnotations []Annotation = []Annotation + var TestRuns []Run = []Run + var WorkflowRuns []Run = []Run + func AnnotationSymbol(cs *iostreams.ColorScheme, a Annotation) string + func IsFailureState(c Conclusion) bool + func PromptForRun(cs *iostreams.ColorScheme, runs []Run) (string, error) + func PullRequestForRun(client *api.Client, repo ghrepo.Interface, run Run) (int, error) + func RenderAnnotations(cs *iostreams.ColorScheme, annotations []Annotation) string + func RenderJobs(cs *iostreams.ColorScheme, jobs []Job, verbose bool) string + func RenderRunHeader(cs *iostreams.ColorScheme, run Run, ago, prNumber string) string + func Symbol(cs *iostreams.ColorScheme, status Status, conclusion Conclusion) (string, colorFunc) + type Annotation struct + JobName string + Level Level + Message string + Path string + StartLine int + func GetAnnotations(client *api.Client, repo ghrepo.Interface, job Job) ([]Annotation, error) + type Artifact struct + DownloadURL string + Expired bool + Name string + Size uint32 + func ListArtifacts(httpClient *http.Client, repo ghrepo.Interface, runID string) ([]Artifact, error) + type CheckRun struct + ID int + type Commit struct + Message string + type Conclusion string + type Job struct + CompletedAt time.Time + Conclusion Conclusion + ID int + Name string + RunID int + StartedAt time.Time + Status Status + Steps Steps + URL string + var FailedJob Job = Job{ ... } + var SuccessfulJob Job = Job{ ... } + func GetJobs(client *api.Client, repo ghrepo.Interface, run Run) ([]Job, error) + type JobsPayload struct + Jobs []Job + type Level string + type Repo struct + Name string + Owner struct{ ... } + type Run struct + Conclusion Conclusion + CreatedAt time.Time + Event string + HeadBranch string + HeadCommit Commit + HeadRepository Repo + HeadSha string + ID int + JobsURL string + Name string + Status Status + URL string + UpdatedAt time.Time + var FailedRun Run = TestRun("failed", 1234, Completed, Failure) + var SuccessfulRun Run = TestRun("successful", 3, Completed, Success) + func GetRun(client *api.Client, repo ghrepo.Interface, runID string) (*Run, error) + func GetRuns(client *api.Client, repo ghrepo.Interface, limit int) ([]Run, error) + func GetRunsByWorkflow(client *api.Client, repo ghrepo.Interface, limit, workflowID int) ([]Run, error) + func GetRunsWithFilter(client *api.Client, repo ghrepo.Interface, limit int, f func(Run) bool) ([]Run, error) + func TestRun(name string, id int, s Status, c Conclusion) Run + func (r Run) CommitMsg() string + type RunsPayload struct + TotalCount int + WorkflowRuns []Run + type Status string + type Step struct + Conclusion Conclusion + Log *zip.File + Name string + Number int + Status Status + type Steps []Step + func (s Steps) Len() int + func (s Steps) Less(i, j int) bool + func (s Steps) Swap(i, j int)