From 6f968005cfbedc23e8ce67b2042a1f203252bb81 Mon Sep 17 00:00:00 2001 From: Taras Madan Date: Mon, 3 Jul 2023 12:32:02 +0200 Subject: dashboard/app: reintroduce uiCommit --- dashboard/app/main.go | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/dashboard/app/main.go b/dashboard/app/main.go index f680563bb..1c0b3ca27 100644 --- a/dashboard/app/main.go +++ b/dashboard/app/main.go @@ -290,6 +290,17 @@ type uiJobList struct { Jobs []*uiJob } +type uiCommit struct { + Hash string + Repo string + Branch string + Title string + Link string + Author string + CC []string + Date time.Time +} + type uiBug struct { Namespace string Title string @@ -307,7 +318,7 @@ type uiBug struct { Link string ExternalLink string CreditEmail string - Commits []*dashapi.Commit + Commits []*uiCommit PatchedOn []string MissingOn []string NumManagers int @@ -1574,7 +1585,7 @@ func createUIBug(c context.Context, bug *Bug, state *ReportingState, managers [] for i, com := range bug.Commits { cfg := config.Namespaces[bug.Namespace] info := bug.getCommitInfo(i) - uiBug.Commits = append(uiBug.Commits, &dashapi.Commit{ + uiBug.Commits = append(uiBug.Commits, &uiCommit{ Hash: info.Hash, Title: com, Link: vcs.CommitLink(cfg.Repos[0].URL, info.Hash), -- cgit mrf-deployment