From 9c724e30b4dcb145afc9010904fbb86757c57508 Mon Sep 17 00:00:00 2001 From: Gregory Boddin Date: Tue, 5 Dec 2017 21:19:21 +0100 Subject: [PATCH] Added Refspec back to constraints --- pipeline/frontend/yaml/constraint.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pipeline/frontend/yaml/constraint.go b/pipeline/frontend/yaml/constraint.go index 1b1c8b1..066ca5f 100644 --- a/pipeline/frontend/yaml/constraint.go +++ b/pipeline/frontend/yaml/constraint.go @@ -19,6 +19,7 @@ type ( Event Constraint Branch Constraint Status Constraint + Refspec Constraint Matrix ConstraintMap Local types.BoolTrue } @@ -43,6 +44,7 @@ func (c *Constraints) Match(metadata frontend.Metadata) bool { c.Environment.Match(metadata.Curr.Target) && c.Event.Match(metadata.Curr.Event) && c.Branch.Match(metadata.Curr.Commit.Branch) && + c.Refspec.Match(metadata.Curr.Commit.Refspec) && c.Repo.Match(metadata.Repo.Name) && c.Ref.Match(metadata.Curr.Commit.Ref) && c.Instance.Match(metadata.Sys.Host) &&