Skip to content

Commit

Permalink
render the run header in output
Browse files Browse the repository at this point in the history
This is an attempt to address issue #19.
  • Loading branch information
mdb committed Nov 15, 2022
1 parent fb5911b commit 948ae3c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/dispatch/shared.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ func renderRun(out io.Writer, cs *iostreams.ColorScheme, client api.RESTClient,
return nil, fmt.Errorf("failed to get run: %w", err)
}

run.workflowName = ""

jobs, err := getJobs(client, repo, run.ID)
if err != nil {
return nil, fmt.Errorf("failed to get jobs: %w", err)
Expand Down Expand Up @@ -139,6 +141,7 @@ func renderRun(out io.Writer, cs *iostreams.ColorScheme, client api.RESTClient,
return nil, fmt.Errorf("failed to get annotations: %w", annotationErr)
}

fmt.Fprintln(out, shared.RenderRunHeader(cs, *run, "", ""))
fmt.Fprintln(out)

if len(jobs) == 0 {
Expand Down

0 comments on commit 948ae3c

Please sign in to comment.