| Index: appengine/cmd/milo/resp/build.go
|
| diff --git a/appengine/cmd/milo/resp/build.go b/appengine/cmd/milo/resp/build.go
|
| index 8eac13ae5557362e3441a10f492149523aefd632..75e4c7f464a274f27d6ed5042bcdced8b09a087f 100644
|
| --- a/appengine/cmd/milo/resp/build.go
|
| +++ b/appengine/cmd/milo/resp/build.go
|
| @@ -139,6 +139,16 @@ const (
|
| WaitingDependency // 100 Brown
|
| )
|
|
|
| +// Terminal returns true if the step status won't change.
|
| +func (s Status) Terminal() bool {
|
| + switch s {
|
| + case Success, Failure, InfraFailure, Warning, DependencyFailure:
|
| + return true
|
| + default:
|
| + return false
|
| + }
|
| +}
|
| +
|
| // MarshalJSON renders enums into String rather than an int when marshalling.
|
| func (s Status) MarshalJSON() ([]byte, error) {
|
| return json.Marshal(s.String())
|
|
|