fix(clbot): Noping autosubmitted message

Change-Id: I6b7e086d2f10751f2f8b8c90eded01edcbfabadb
Reviewed-on: https://cl.tvl.fyi/c/depot/+/4317
Tested-by: BuildkiteCI
Reviewed-by: tazjin <mail@tazj.in>
Autosubmit: grfn <grfn@gws.fyi>
This commit is contained in:
Griffin Smith 2021-12-13 21:36:39 -05:00 committed by clbot
parent c7ebb34f8f
commit 15e3afccef

View file

@ -254,11 +254,7 @@ func main() {
url := patchSetURL(e.Change, e.PatchSet)
if submitter != owner && submitter == "clbot" {
// Ping CL author on IRC for autosubmitted messages, as this
// is not necessarily an action they would otherwise notice.
// We avoid pinging only for actions triggered by the same
// user.
parsedMsg = fmt.Sprintf("CL/%d by %s autosubmitted - %s - %s", e.Change.Number, owner, e.Change.Subject, url)
parsedMsg = nopingAll(owner, fmt.Sprintf("CL/%d by %s autosubmitted - %s - %s", e.Change.Number, owner, e.Change.Subject, url))
} else {
parsedMsg = nopingAll(owner, fmt.Sprintf("CL/%d applied by %s - %s - %s", e.Change.Number, owner, e.Change.Subject, url))
}