cmd/gopherbot: remove auto-submit restriction
Run the Auto-Submit action alongside everything else now.
Updates golang/go#48021
Change-Id: If7a109bfe0dc64e5b488713415193129e102640a
Reviewed-on: https://go-review.googlesource.com/c/build/+/383274
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Trust: Roland Shoemaker <roland@golang.org>
Run-TryBot: Roland Shoemaker <roland@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
diff --git a/cmd/gopherbot/gopherbot.go b/cmd/gopherbot/gopherbot.go
index 0e26ffb..27b8b54 100644
--- a/cmd/gopherbot/gopherbot.go
+++ b/cmd/gopherbot/gopherbot.go
@@ -2261,12 +2261,6 @@
//
// See golang.org/issue/48021.
func (b *gopherbot) autoSubmitCLs(ctx context.Context) error {
- // We only run this task if it was explicitly requested via
- // the --only-run flag.
- if *onlyRun == "" {
- return nil
- }
-
return b.corpus.Gerrit().ForeachProjectUnsorted(func(gp *maintner.GerritProject) error {
if gp.Server() != "go.googlesource.com" {
return nil