Skip to content

Commit 26f65c3

Browse files
fix: template of Other runs in tkn-pac describe command
Before this patch the output of other runs in the tkn pac describe command was not aligned properly Hence, with this patch it fixes and aligns the output Signed-off-by: PuneetPunamiya <[email protected]>
1 parent 5d8a119 commit 26f65c3

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

pkg/cmd/tknpac/describe/templates/describe.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
{{ $.ColorScheme.Underline "Other Runs:" }}
3434

35-
{{ $.ColorScheme.Bold "STATUS:" }} {{ $.ColorScheme.Bold "Event" }} {{ $.ColorScheme.Bold "Branch" }} {{ $.ColorScheme.Bold "SHA" }} {{ $.ColorScheme.Bold "STARTED TIME" }} {{ $.ColorScheme.Bold "DURATION" }} {{ $.ColorScheme.Bold "PIPELINERUN" }}
35+
{{ $.ColorScheme.Bold "STATUS" }} {{ $.ColorScheme.Bold "Event" }} {{ $.ColorScheme.Bold "Branch" }} {{ $.ColorScheme.Bold "SHA" }} {{ $.ColorScheme.Bold "STARTED TIME" }} {{ $.ColorScheme.Bold "DURATION" }} {{ $.ColorScheme.Bold "PIPELINERUN" }}
3636
{{- range $i, $st := (slice .Statuses 1 (len .Statuses)) }}
3737
{{ formatStatus $st $.ColorScheme $.Clock }}
3838
{{- end }}

pkg/cmd/tknpac/describe/testdata/TestDescribe-live_run_and_repository_run.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ Duration: ---
1515

1616
Other Runs:
1717

18-
STATUS: Event Branch SHA STARTED TIME DURATION PIPELINERUN
19-
Success propseryouplaboun TargetBranch SHA 16 minutes ago 1 minute pipelinerun1
18+
STATUS Event Branch SHA STARTED TIME DURATION PIPELINERUN
19+
Success propseryouplaboun TargetBranch SHA 16 minutes ago 1 minute pipelinerun1

pkg/cmd/tknpac/describe/testdata/TestDescribe-multiple_repo_status.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ Duration: 1 minute
1515

1616
Other Runs:
1717

18-
STATUS: Event Branch SHA STARTED TIME DURATION PIPELINERUN
18+
STATUS Event Branch SHA STARTED TIME DURATION PIPELINERUN
1919
Success pull_request TargetBranch SHA2 18 minutes ago 1 minute pipelinerun2
2020
Success push PushBranch SHA 20 minutes ago 1 minute pipelinerun3

0 commit comments

Comments
 (0)