| Index: milo/appengine/buildbot/console.go
|
| diff --git a/milo/appengine/buildbot/console.go b/milo/appengine/buildbot/console.go
|
| index a6d9a0ee5006399e25edef254a57f0e6152fba98..068c861db4847568fddd27081fc4f1f3b05d891b 100644
|
| --- a/milo/appengine/buildbot/console.go
|
| +++ b/milo/appengine/buildbot/console.go
|
| @@ -13,6 +13,7 @@ import (
|
| log "github.com/luci/luci-go/common/logging"
|
| "github.com/luci/luci-go/common/sync/parallel"
|
| "github.com/luci/luci-go/milo/api/resp"
|
| + "github.com/luci/luci-go/milo/appengine/common/model"
|
|
|
| "golang.org/x/net/context"
|
| )
|
| @@ -66,16 +67,15 @@ func GetConsoleBuilds(
|
| return err
|
| }
|
| t2 := clock.Now(c)
|
| - var currentStatus *resp.Status
|
| + var currentStatus *model.Status
|
| for j, commit := range commits {
|
| for _, build := range builds {
|
| if build.Sourcestamp.Revision == commit {
|
| results[j][i] = &resp.ConsoleBuild{
|
| - Link: &resp.Link{
|
| - Label: strings.Join(build.Text, " "),
|
| - URL: fmt.Sprintf(
|
| - "/buildbot/%s/%s/%d", master, builderName, build.Number),
|
| - },
|
| + Link: resp.NewLink(
|
| + strings.Join(build.Text, " "),
|
| + fmt.Sprintf("/buildbot/%s/%s/%d", master, builderName, build.Number),
|
| + ),
|
| Status: build.toStatus(),
|
| }
|
| currentStatus = &results[j][i].Status
|
|
|