mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-01-15 03:55:28 +00:00
Apply changed files filter to closed PR (#4711)
This commit is contained in:
parent
5e75e4ec9c
commit
41b732eb80
1 changed files with 1 additions and 1 deletions
|
@ -169,7 +169,7 @@ func (c *Constraint) Match(m metadata.Metadata, global bool, env map[string]stri
|
||||||
c.Instance.Match(m.Sys.Host)
|
c.Instance.Match(m.Sys.Host)
|
||||||
|
|
||||||
// changed files filter apply only for pull-request and push events
|
// 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)
|
match = match && c.Path.Match(m.Curr.Commit.ChangedFiles, m.Curr.Commit.Message)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue