diff options
| author | Taras Madan <tarasmadan@google.com> | 2024-07-04 13:59:32 +0200 |
|---|---|---|
| committer | Taras Madan <tarasmadan@google.com> | 2024-07-04 15:07:46 +0000 |
| commit | 7d7fe8807550c6e02def380d335ae0230f1e495c (patch) | |
| tree | 098b8004a1b20584ea34356440f3f866f553b63c /dashboard/app/main.go | |
| parent | 87735313feed904c37a0650a70ade96294f3b997 (diff) | |
dashboard/app: introduce mainRepoBranch
Diffstat (limited to 'dashboard/app/main.go')
| -rw-r--r-- | dashboard/app/main.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dashboard/app/main.go b/dashboard/app/main.go index 1e16525c8..e070992ac 100644 --- a/dashboard/app/main.go +++ b/dashboard/app/main.go @@ -1911,14 +1911,14 @@ func createUIBug(c context.Context, bug *Bug, state *ReportingState, managers [] updateBugBadness(c, uiBug) if len(bug.Commits) != 0 { for i, com := range bug.Commits { - cfg := getNsConfig(c, bug.Namespace) + mainNsRepo, mainNsBranch := getNsConfig(c, bug.Namespace).mainRepoBranch() info := bug.getCommitInfo(i) uiBug.Commits = append(uiBug.Commits, &uiCommit{ Hash: info.Hash, Title: com, - Link: vcs.CommitLink(cfg.Repos[0].URL, info.Hash), - Repo: cfg.Repos[0].URL, - Branch: cfg.Repos[0].Branch, + Link: vcs.CommitLink(mainNsRepo, info.Hash), + Repo: mainNsRepo, + Branch: mainNsBranch, }) } for _, mgr := range managers { |
