From fa9318812de4158c495d20f4acd09c99443a38aa Mon Sep 17 00:00:00 2001 From: Noah Date: Sun, 7 Apr 2024 14:23:10 -0500 Subject: [PATCH] feat(times): Add repository column to times table (fix #19) --- times.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/times.go b/times.go index 060cfc4..baaf45e 100644 --- a/times.go +++ b/times.go @@ -53,7 +53,8 @@ func times() { var total_time time.Duration columns := []table.Column{ - {Title: "Server", Width: 10}, + {Title: "Server", Width: 15}, + {Title: "Repository", Width: 15}, {Title: "User", Width: 8}, {Title: "Time", Width: 8}, {Title: "Created at", Width: 11}, @@ -66,6 +67,7 @@ func times() { } rows = append(rows, table.Row{ t.server.servername, + t.Issue.Repository.Name, t.UserName, dur.String(), t.Created.Format(time.DateOnly), @@ -74,7 +76,7 @@ func times() { } tv := timesviewer{ total_time: total_time, - length: 50, + length: 70, } tab := table.New( table.WithColumns(columns),