Skip to content

Commit

Permalink
Apply changed files filter to closed PR (woodpecker-ci#4711)
Browse files Browse the repository at this point in the history
  • Loading branch information
qwerty287 authored Jan 12, 2025
1 parent 5e75e4e commit 41b732e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pipeline/frontend/yaml/constraint/constraint.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 41b732e

Please sign in to comment.