| Index: go/src/infra/monorail/ext.go
|
| diff --git a/go/src/infra/monorail/ext.go b/go/src/infra/monorail/ext.go
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..1531119417529421af880c116f15ab0f969931e1
|
| --- /dev/null
|
| +++ b/go/src/infra/monorail/ext.go
|
| @@ -0,0 +1,15 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +package monorail
|
| +
|
| +// FindCC finds a CC'ed person by name.
|
| +func (i *Issue) FindCC(name string) *AtomPerson {
|
| + for _, cc := range i.Cc {
|
| + if cc.Name == name {
|
| + return cc
|
| + }
|
| + }
|
| + return nil
|
| +}
|
|
|