aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTaras Madan <tarasmadan@google.com>2023-07-03 12:32:02 +0200
committerTaras Madan <tarasmadan@google.com>2023-07-04 07:24:44 +0000
commit6f968005cfbedc23e8ce67b2042a1f203252bb81 (patch)
treeced6019f962072b5de2667373dda5a2c0430ab36
parent6e553898b1a72d31248a221bb0bff5bc62fce879 (diff)
dashboard/app: reintroduce uiCommit
-rw-r--r--dashboard/app/main.go15
1 files 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),