aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTaras Madan <tarasmadan@google.com>2023-06-28 11:14:53 +0200
committerTaras Madan <tarasmadan@google.com>2023-06-28 13:24:49 +0200
commitca69c785c2ed2872a7c1a427fc446a9d363a984f (patch)
tree2daba47b2f78d8832e79248217e5b6bcbc3645c0
parent76ba8519c0196eee66ff8ddb6b3eb1129b083389 (diff)
dashboard/app: merge dashapi.Commit and uiCommit
3/6 fields on uiCommit currently used
-rw-r--r--dashboard/app/main.go13
1 files changed, 2 insertions, 11 deletions
diff --git a/dashboard/app/main.go b/dashboard/app/main.go
index 6fd406b6e..e971dfa3a 100644
--- a/dashboard/app/main.go
+++ b/dashboard/app/main.go
@@ -220,15 +220,6 @@ type uiBuild struct {
KernelConfigLink string
}
-type uiCommit struct {
- Hash string
- Title string
- Link string
- Author string
- CC []string
- Date time.Time
-}
-
type uiBugDiscussion struct {
Subject string
Link string
@@ -314,7 +305,7 @@ type uiBug struct {
Link string
ExternalLink string
CreditEmail string
- Commits []*uiCommit
+ Commits []*dashapi.Commit
PatchedOn []string
MissingOn []string
NumManagers int
@@ -1581,7 +1572,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, &uiCommit{
+ uiBug.Commits = append(uiBug.Commits, &dashapi.Commit{
Hash: info.Hash,
Title: com,
Link: vcs.CommitLink(cfg.Repos[0].URL, info.Hash),