diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2023-04-25 14:24:03 +0200 |
|---|---|---|
| committer | Aleksandr Nogikh <wp32pw@gmail.com> | 2023-04-27 11:42:09 +0200 |
| commit | e14f82fbf0a7ce4362317cd5036f193716d05906 (patch) | |
| tree | 932c565696d848ed87c24d59f2da22dec3e89138 /dashboard/app/reporting_email.go | |
| parent | e7f18c19fecebc6f1c55caed7b1145144079da16 (diff) | |
dashboard: list sample commands at the bottom of bug reports
This should make commands more visible to the users and help those who
don't remember the exact syntax and don't want to always visit the
documentation page.
Ignore sample commands during incoming message parsing.
Diffstat (limited to 'dashboard/app/reporting_email.go')
| -rw-r--r-- | dashboard/app/reporting_email.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/dashboard/app/reporting_email.go b/dashboard/app/reporting_email.go index 6038a8539..257b41a0d 100644 --- a/dashboard/app/reporting_email.go +++ b/dashboard/app/reporting_email.go @@ -538,6 +538,14 @@ func excludeSampleCommands(msg *email.Email) { switch cmd.Command { case email.CmdFix: ok = cmd.Args != "exact-commit-title" + case email.CmdTest: + ok = cmd.Args != "git://repo/address.git branch-or-commit-hash" + case email.CmdSet: + ok = cmd.Args != "subsystems: new-subsystem" + case email.CmdUnset: + ok = cmd.Args != "some-label" + case email.CmdDup: + ok = cmd.Args != "exact-subject-of-another-report" } if ok { newCommands = append(newCommands, cmd) |
