| // Copyright 2016 The Go Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style |
| // license that can be found in the LICENSE file. |
| "golang.org/x/build/gerrit" |
| "golang.org/x/net/context" |
| func fetchCLs(ctx context.Context, client *gerrit.Client, reviewers *Reviewers, goReleaseCycle int, q string) ([]*CL, error) { |
| cis, err := client.QueryChanges(ctx, "-project:scratch -message:do-not-review "+q, gerrit.QueryChangesOpt{ |
| "DETAILED_ACCOUNTS", // fill out Owner.AuthorInfo, etc |
| cl := ParseCL(ci, reviewers, goReleaseCycle) |
| if cl.Closed || cl.DoNotReview { |