zuul/releasenotes/notes/implied-branch-exact-match-74cd3f227a2f6361.yaml
James E. Blair 79c6717cea Fix implied branch matchers with regex chars
If a project had a branch with a "+" in the name (or some other
special regex chars), then implied branch matchers would not match
the branch and jobs would not run.  Instead of treating implied
branch matchers as regexes, treat them as requiring exact matches.

To facilitate creating the correct type of branch matcher, create
them in the configloader instead of in the model classes.

Change-Id: I0421c5a446d0b75194096b1d8f0e0866dae3b8f0
2022-03-31 13:52:34 -07:00

11 lines
434 B
YAML

---
fixes:
- |
Projects and jobs on branches whose names have special characters
in regular expressions could fail to match changes as intended.
Implied branch matchers automatically generated from branch names
are now treated as requiring exact matches. Any user-specified
branch matcher (including in :attr:`job.branches` and
:attr:`pragma.implied-branches`) are still treated as regular
expressions.