ci: prevent incorrect pattern matching for skipping ci command

Mergify matches `body-raw` as regular expression, but that makes it
difficult (if not impossible) to match the `[` in a string.

Fixes: #4751
Signed-off-by: Niels de Vos <ndevos@ibm.com>
This commit is contained in:
Niels de Vos 2024-08-09 12:22:34 +02:00 committed by mergify[bot]
parent d06497cf32
commit 2fd92573f4

View File

@ -469,7 +469,8 @@ pull_request_rules:
# the PR as Draft so that CI jobs do not automatically run anymore. # the PR as Draft so that CI jobs do not automatically run anymore.
- name: detect [skip ci] in the PR description - name: detect [skip ci] in the PR description
conditions: conditions:
- "body-raw~=[skip ci]" # this should be \[skip\W+ci\], but Mergify does not accept that
- "body-raw~=skip ci"
actions: actions:
edit: edit:
draft: true draft: true