diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2017-08-17 19:09:07 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2017-08-17 19:42:11 +0200 |
| commit | 172189e9551b768d48c6d5c038fbf3d5cd88aa8e (patch) | |
| tree | b03dcab8c156938bd4ac02def77a15a326a04550 /dashboard/dashapi/dashapi.go | |
| parent | 2dfba870d0da6e4638fd58c47099bdea9495ac25 (diff) | |
dashboard/app: heavylifting of email reporting
- save Message-ID and use In-Reply-To in subsequent messages
- remember additional CC entries added manually
- don't mail to maintainers if maintainers list is empty
- improve mail formatting and add a footer
- implement upstream/fix/dup/invalid commands over email
- add tests
Diffstat (limited to 'dashboard/dashapi/dashapi.go')
| -rw-r--r-- | dashboard/dashapi/dashapi.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/dashboard/dashapi/dashapi.go b/dashboard/dashapi/dashapi.go index 4871f97ad..ddc20ebe4 100644 --- a/dashboard/dashapi/dashapi.go +++ b/dashboard/dashapi/dashapi.go @@ -136,9 +136,11 @@ func (dash *Dashboard) LogError(name, msg string, args ...interface{}) { type BugReport struct { Config []byte ID string - First bool // Set for first report for this bug. + ExtID string // arbitrary reporting ID forwarded from BugUpdate.ExtID + First bool // Set for first report for this bug. Title string Maintainers []string + CC []string // additional CC emails CompilerID string KernelRepo string KernelBranch string @@ -152,11 +154,13 @@ type BugReport struct { type BugUpdate struct { ID string + ExtID string Link string Status BugStatus ReproLevel ReproLevel DupOf string FixCommits []string // Titles of commits that fix this bug. + CC []string // Additional emails to add to CC list in future emails. } type BugUpdateReply struct { @@ -182,6 +186,7 @@ const ( BugStatusUpstream BugStatusInvalid BugStatusDup + BugStatusUpdate // aux info update (i.e. ExtID/Link/CC) ) const ( |
