aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/bisect
diff options
context:
space:
mode:
authorPedro Lopes <pedrolopes@google.com>2020-07-28 15:55:14 -0500
committerDmitry Vyukov <dvyukov@google.com>2020-07-31 17:18:29 +0200
commit242b0eb219dbb269deacdae76de2f8b0b788ac40 (patch)
tree2a1350d88d2550069a295ca7b093b00664209e64 /pkg/bisect
parent68aca71e8de884b64dc78a5d5406ca232460c1cf (diff)
pkg: get and store Maintainers data
Create a struct on pkg/vcs to store data of syzkaller email recipients and update its users. The struct contains default name, email, and a label to divide user into To and Cc when sending the emails.
Diffstat (limited to 'pkg/bisect')
-rw-r--r--pkg/bisect/bisect.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/bisect/bisect.go b/pkg/bisect/bisect.go
index 281969b5d..cf6bae5bc 100644
--- a/pkg/bisect/bisect.go
+++ b/pkg/bisect/bisect.go
@@ -180,7 +180,8 @@ func runImpl(cfg *Config, repo vcs.Repo, inst instance.Env) (*Result, error) {
}
com := res.Commits[0]
env.log("first %v commit: %v %v", what, com.Hash, com.Title)
- env.log("cc: %q", com.CC)
+ env.log("recipients (to): %q", com.Recipients.GetEmails(vcs.To))
+ env.log("recipients (cc): %q", com.Recipients.GetEmails(vcs.Cc))
if res.Report != nil {
env.log("crash: %v\n%s", res.Report.Title, res.Report.Report)
}