aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/html
diff options
context:
space:
mode:
authorZubin Mithra <zsm@chromium.org>2019-08-08 12:35:23 -0700
committerDmitry Vyukov <dvyukov@google.com>2019-08-30 19:50:12 -0700
commitbad3cce26cf7f426903060995fd9fde0532ff2af (patch)
tree487a25b4a6fc81d62a5f38146c060ec2da1631f7 /pkg/html
parentbcd7bcc2968d1db4d4eb16c50afa76bdcffb6302 (diff)
dashboard/app: allow reporting of BisectFix results
* Modify mail_bisect_result.txt to allow for sending fix bisection results. * Modify BisectResult to have a Fix field; introduce selectBisect for use within the template for choosing between BisectCause/BisectFix fields. * Modify bisectFromJob() to return BisectResult with Fix field set if relevant. * Modify the tests inside bisect_test.go to account for bisect fix related reporting emails. * Modify incomingMail() to ignore any emails from syzbot itself.
Diffstat (limited to 'pkg/html')
-rw-r--r--pkg/html/html.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkg/html/html.go b/pkg/html/html.go
index 9a43b0dba..1199c5ab0 100644
--- a/pkg/html/html.go
+++ b/pkg/html/html.go
@@ -51,6 +51,14 @@ var Funcs = template.FuncMap{
"formatTagHash": formatTagHash,
"formatCommitTableTitle": formatCommitTableTitle,
"formatList": formatStringList,
+ "selectBisect": selectBisect,
+}
+
+func selectBisect(rep *dashapi.BugReport) *dashapi.BisectResult {
+ if rep.BisectFix != nil {
+ return rep.BisectFix
+ }
+ return rep.BisectCause
}
func link(url, text string) template.HTML {