From b7d7be1d600874e81702dfb90180c3af56b69d23 Mon Sep 17 00:00:00 2001 From: Jason Underhill Date: Wed, 6 Oct 2021 09:15:25 +0100 Subject: [PATCH] fix ci pipeline view incorrect timestamp being used Fixes #858 --- commands/ci/view/view.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/ci/view/view.go b/commands/ci/view/view.go index c89031de..55f8c131 100644 --- a/commands/ci/view/view.go +++ b/commands/ci/view/view.go @@ -107,7 +107,7 @@ func drawView(opts ViewOpts) error { root := tview.NewPages() root.SetBorderPadding(1, 1, 2, 2). SetBorder(true). - SetTitle(fmt.Sprintf(" Pipeline #%d triggered %s by %s ", opts.Commit.LastPipeline.ID, utils.TimeToPrettyTimeAgo(*opts.Commit.AuthoredDate), opts.Commit.AuthorName)) + SetTitle(fmt.Sprintf(" Pipeline #%d triggered %s by %s ", opts.Commit.LastPipeline.ID, utils.TimeToPrettyTimeAgo(*opts.Commit.LastPipeline.CreatedAt), opts.Commit.AuthorName)) boxes = make(map[string]*tview.TextView) jobsCh := make(chan []*gitlab.Job)