Skip to content

Commit e159a6f

Browse files
committed
internal/task: switch to using LUCI trybots by default
Per https://groups.google.com/g/golang-dev/c/H65LelTvAXQ. Also move the golang.org email mention before google.com because it has higher precedence in case both match. Change-Id: I2ed0624226af6db12f6fd264384b5e3f9c3c557d Reviewed-on: https://go-review.googlesource.com/c/build/+/525656 Reviewed-by: Heschi Kreinick <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]>
1 parent 066ec55 commit e159a6f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

internal/task/gerrit.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ import (
1717

1818
type GerritClient interface {
1919
// CreateAutoSubmitChange creates a change with the given metadata and
20-
// contents, sets Run-TryBots and Auto-Submit, and returns its change ID.
20+
// contents, starts trybots with auto-submit enabled, and returns its change ID.
2121
// If the content of a file is empty, that file will be deleted from the repository.
2222
// If the requested contents match the state of the repository, no change
2323
// is created and the returned change ID will be empty.
24-
// Reviewers is the username part of a google.com or golang.org email address.
24+
// Reviewers is the username part of a golang.org or google.com email address.
2525
CreateAutoSubmitChange(ctx *wf.TaskContext, input gerrit.ChangeInput, reviewers []string, contents map[string]string) (string, error)
2626
// Submitted checks if the specified change has been submitted or failed
2727
// trybots. If the CL is submitted, returns the submitted commit hash.
@@ -104,8 +104,8 @@ func (c *RealGerritClient) CreateAutoSubmitChange(ctx *wf.TaskContext, input ger
104104
}
105105
if err := c.Client.SetReview(ctx, changeID, "current", gerrit.ReviewInput{
106106
Labels: map[string]int{
107-
"Run-TryBot": 1,
108-
"Auto-Submit": 1,
107+
"Commit-Queue": 1,
108+
"Auto-Submit": 1,
109109
},
110110
Reviewers: reviewerInputs,
111111
}); err != nil {

0 commit comments

Comments
 (0)