From 41b732eb80fbc914483098b84f37d3309468a3a8 Mon Sep 17 00:00:00 2001 From: qwerty287 <80460567+qwerty287@users.noreply.github.com> Date: Sun, 12 Jan 2025 11:00:32 +0200 Subject: [PATCH] Apply changed files filter to closed PR (#4711) --- pipeline/frontend/yaml/constraint/constraint.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipeline/frontend/yaml/constraint/constraint.go b/pipeline/frontend/yaml/constraint/constraint.go index aade4bef2..891db304f 100644 --- a/pipeline/frontend/yaml/constraint/constraint.go +++ b/pipeline/frontend/yaml/constraint/constraint.go @@ -169,7 +169,7 @@ func (c *Constraint) Match(m metadata.Metadata, global bool, env map[string]stri c.Instance.Match(m.Sys.Host) // changed files filter apply only for pull-request and push events - if m.Curr.Event == metadata.EventPull || m.Curr.Event == metadata.EventPush { + if m.Curr.Event == metadata.EventPull || m.Curr.Event == metadata.EventPullClosed || m.Curr.Event == metadata.EventPush { match = match && c.Path.Match(m.Curr.Commit.ChangedFiles, m.Curr.Commit.Message) }