diff --git a/internal/tui/panel.go b/internal/tui/panel.go index 4b62271..d0911c2 100644 --- a/internal/tui/panel.go +++ b/internal/tui/panel.go @@ -74,7 +74,7 @@ func RenderVisual(tabs []*v1alpha1.DashboardTab, githubToken string) error { // GitHub panel rendering setPanelDefaultStyle(githubPanel.Box) - githubPanel.SetTitle(formatTitle("Github Issue")) + githubPanel.SetTitle(formatTitle("Github Issue Exists!")) githubPanel.SetWrap(true) // Final position bottom panel for information @@ -181,6 +181,11 @@ func updateGitHubPanel(tab *v1alpha1.DashboardTab, currentTest *v1alpha1.TestRes if tab.TabState == v1alpha1.FAILING_STATUS { templateFile, prefixTitle = "template/failure.tmpl", "Failing Test" } + // TODO: add status of "GITHUB_ISSUE_EXISTS" and load different template + // if tab.TabState == v1alpha1.GITHUB_ISSUE_EXISTS_STATUS { + templateFile, prefixTitle = "template/github-issue-exists.tmpl", "GitHub Issue Exists" + // } + template, err := renderTemplate(issue, templateFile) if err != nil { position.SetText(fmt.Sprintf("[red]error: %v", err.Error())) diff --git a/internal/tui/template/github-issue-exists.tmpl b/internal/tui/template/github-issue-exists.tmpl new file mode 100644 index 0000000..eee1041 --- /dev/null +++ b/internal/tui/template/github-issue-exists.tmpl @@ -0,0 +1,8 @@ +### GitHub Issue Title + +ClusterLoaderV2.access-tokens: [step: 02] Creating ServiceAccounts + +### GitHub Issue URL + +https://testgrid.k8s.io/sig-release-master-informing#ec2-master-scale-performance +