release-approval pipeline: fix zuul-excluding regexp

The release-approval pipeline uses a username filter in the
comment-added trigger so that comments from 'zuul' username would
not trigger it. Unfortunately, the regexp also matched usernames
which contained a dot, like 'rico.lin'.

Fix the regexp so that it matches 'ttx', 'rico.lin', 'zuulfoo' and
'zuul.bar', but not 'zuul'.

See tests for the old and new regexp at:
http://paste.openstack.org/show/791583/

Change-Id: I6834f71b52570310735f202984af8f7f6ce701a1
This commit is contained in:
Thierry Carrez 2020-04-03 11:55:56 +02:00
parent f2d3939433
commit eef574707e
1 changed files with 1 additions and 1 deletions

View File

@ -243,7 +243,7 @@
gerrit:
- event: patchset-created
- event: comment-added
username: ^(?!zuul\b)\b\w+$
username: ^(?!^zuul$)\S+$
success:
gerrit:
PTL-Approved: 1