Merge pull request #2244 from appleboy/fix2

Fix drone filter func
This commit is contained in:
Brad Rydzewski 2018-02-19 13:01:05 -08:00 committed by GitHub
commit 909053ba5b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -34,7 +34,7 @@ func loop(c *cli.Context) error {
Labels: map[string]string{
"platform": c.String("platform"),
},
Expr: c.String("drone-filter"),
Expr: c.String("filter"),
}
hostname := c.String("hostname")

View file

@ -527,6 +527,7 @@ func (s *DroneServer) Next(c oldcontext.Context, req *proto.NextRequest) (*proto
}
filter := rpc.Filter{
Labels: req.GetFilter().GetLabels(),
Expr: req.GetFilter().GetExpr(),
}
res := new(proto.NextReply)